From 5df088752d30dad7c1b9f535f4349c6000a96d37 Mon Sep 17 00:00:00 2001 From: Benji Grant Date: Sun, 11 Jun 2023 00:55:37 +1000 Subject: [PATCH] Add support for Italian and Portuguese (from Portugal) --- frontend/src/i18n/options.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/i18n/options.ts b/frontend/src/i18n/options.ts index b66dabf..8ffc3bf 100644 --- a/frontend/src/i18n/options.ts +++ b/frontend/src/i18n/options.ts @@ -5,7 +5,7 @@ export const defaultNS = 'common' export const cookieName = 'i18next' export const languages = [ fallbackLng, - 'en-GB', 'de', 'es', 'fr', 'hi', 'id', 'ja', 'ko', 'pl', 'pt-BR', 'ru', + 'en-GB', 'de', 'es', 'fr', 'hi', 'id', 'it', 'ja', 'ko', 'pl', 'pt', 'pt-BR', 'ru', ] as const export const getOptions = (lng = fallbackLng, ns: InitOptions['ns'] = defaultNS): InitOptions => ({ @@ -65,6 +65,11 @@ export const languageDetails: Record weekStart: 1, timeFormat: '24h', }, + 'it': { // Italian + name: 'Italiano', + weekStart: 1, + timeFormat: '24h', + }, 'ja': { // Japanese name: '日本語', weekStart: 0, @@ -80,6 +85,11 @@ export const languageDetails: Record weekStart: 1, timeFormat: '12h', }, + 'pt': { // Portuguese (Portugal) + name: 'Português (do Portugal)', + weekStart: 0, + timeFormat: '24h', + }, 'pt-BR': { // Portuguese (Brazil) name: 'Português (do Brasil)', weekStart: 0,