feat(lang): add support for Portuguese (Portugal) language

pull/722/head
sct 4 years ago
parent 083a74a686
commit e044146aa5

@ -57,6 +57,10 @@ const availableLanguages: AvailableLanguageObject = {
code: 'pt-BR', code: 'pt-BR',
display: 'Portuguese (Brazil)', display: 'Portuguese (Brazil)',
}, },
'pt-PT': {
code: 'pt-PT',
display: 'Portuguese (Portugal)',
},
sr: { sr: {
code: 'sr', code: 'sr',
display: 'Serbian', display: 'Serbian',

@ -11,6 +11,7 @@ export type AvailableLocales =
| 'es' | 'es'
| 'it' | 'it'
| 'pt-BR' | 'pt-BR'
| 'pt-PT'
| 'sr' | 'sr'
| 'sv' | 'sv'
| 'zh-Hant'; | 'zh-Hant';

@ -38,6 +38,8 @@ const loadLocaleData = (locale: AvailableLocales): Promise<any> => {
return import('../i18n/locale/it.json'); return import('../i18n/locale/it.json');
case 'pt-BR': case 'pt-BR':
return import('../i18n/locale/pt_BR.json'); return import('../i18n/locale/pt_BR.json');
case 'pt-PT':
return import('../i18n/locale/pt_PT.json');
case 'sr': case 'sr':
return import('../i18n/locale/sr.json'); return import('../i18n/locale/sr.json');
case 'sv': case 'sv':

Loading…
Cancel
Save