Add support for Italian and Portuguese (from Portugal)

This commit is contained in:
Benji Grant 2023-06-11 00:55:37 +10:00
parent 41ae58671c
commit 5df088752d

View file

@ -5,7 +5,7 @@ export const defaultNS = 'common'
export const cookieName = 'i18next' export const cookieName = 'i18next'
export const languages = [ export const languages = [
fallbackLng, 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 ] as const
export const getOptions = (lng = fallbackLng, ns: InitOptions['ns'] = defaultNS): InitOptions => ({ export const getOptions = (lng = fallbackLng, ns: InitOptions['ns'] = defaultNS): InitOptions => ({
@ -65,6 +65,11 @@ export const languageDetails: Record<typeof languages[number], LanguageDetails>
weekStart: 1, weekStart: 1,
timeFormat: '24h', timeFormat: '24h',
}, },
'it': { // Italian
name: 'Italiano',
weekStart: 1,
timeFormat: '24h',
},
'ja': { // Japanese 'ja': { // Japanese
name: '日本語', name: '日本語',
weekStart: 0, weekStart: 0,
@ -80,6 +85,11 @@ export const languageDetails: Record<typeof languages[number], LanguageDetails>
weekStart: 1, weekStart: 1,
timeFormat: '12h', timeFormat: '12h',
}, },
'pt': { // Portuguese (Portugal)
name: 'Português (do Portugal)',
weekStart: 0,
timeFormat: '24h',
},
'pt-BR': { // Portuguese (Brazil) 'pt-BR': { // Portuguese (Brazil)
name: 'Português (do Brasil)', name: 'Português (do Brasil)',
weekStart: 0, weekStart: 0,