Use correct language code for Portuguese

This commit is contained in:
Benji Grant 2023-06-11 01:04:31 +10:00
parent 5df088752d
commit 3e290b77e1
6 changed files with 2 additions and 2 deletions

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', 'it', 'ja', 'ko', 'pl', 'pt', 'pt-BR', 'ru', 'en-GB', 'de', 'es', 'fr', 'hi', 'id', 'it', 'ja', 'ko', 'pl', 'pt-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 => ({
@ -85,7 +85,7 @@ export const languageDetails: Record<typeof languages[number], LanguageDetails>
weekStart: 1, weekStart: 1,
timeFormat: '12h', timeFormat: '12h',
}, },
'pt': { // Portuguese (Portugal) 'pt-PT': { // Portuguese (Portugal)
name: 'Português (do Portugal)', name: 'Português (do Portugal)',
weekStart: 0, weekStart: 0,
timeFormat: '24h', timeFormat: '24h',