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

This commit is contained in:
sct
2021-01-22 14:02:02 +00:00
parent 083a74a686
commit e044146aa5
3 changed files with 7 additions and 0 deletions

View File

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

View File

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

View File

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