feat(i18n): add Brazilian Portuguese locale (#2073)
Co-authored-by: userquin <userquin@gmail.com> Co-authored-by: emanuelpina <emanuelpina@users.noreply.github.com>
This commit is contained in:
parent
454ad18f1b
commit
77717c960c
4 changed files with 1017 additions and 635 deletions
|
@ -11,6 +11,7 @@ interface LocaleObjectData extends LocaleObject {
|
|||
|
||||
const countryLocaleVariants: Record<string, LocaleObjectData[]> = {
|
||||
ar: [
|
||||
// ar.json contains ar-EG translations
|
||||
// { code: 'ar-DZ', name: 'Arabic (Algeria)' },
|
||||
// { code: 'ar-BH', name: 'Arabic (Bahrain)' },
|
||||
{ code: 'ar-EG', name: 'العربية' },
|
||||
|
@ -30,10 +31,12 @@ const countryLocaleVariants: Record<string, LocaleObjectData[]> = {
|
|||
// { code: 'ar-YE', name: 'Arabic (Yemen)' },
|
||||
],
|
||||
en: [
|
||||
// en.json contains en-US translations
|
||||
{ code: 'en-US', name: 'English (US)' },
|
||||
{ code: 'en-GB', name: 'English (UK)' },
|
||||
],
|
||||
ca: [
|
||||
// ca.json contains ca-ES translations
|
||||
// { code: 'ca-AD', name: 'Català (Andorra)' },
|
||||
{ code: 'ca-ES', name: 'Català (Espanya)' },
|
||||
{ code: 'ca-valencia', name: 'Català (valencià)' },
|
||||
|
@ -41,6 +44,7 @@ const countryLocaleVariants: Record<string, LocaleObjectData[]> = {
|
|||
// { code: 'ca-IT', name: 'Català (Itàlia)' },
|
||||
],
|
||||
es: [
|
||||
// es.json contains es-ES translations
|
||||
// { code: 'es-AR', name: 'Español (Argentina)' },
|
||||
// { code: 'es-BO', name: 'Español (Bolivia)' },
|
||||
// { code: 'es-CL', name: 'Español (Chile)' },
|
||||
|
@ -63,6 +67,11 @@ const countryLocaleVariants: Record<string, LocaleObjectData[]> = {
|
|||
// { code: 'es-UY', name: 'Español (Uruguay)' },
|
||||
// { code: 'es-VE', name: 'Español (Venezuela)' },
|
||||
],
|
||||
pt: [
|
||||
// pt.json contains pt-PT translations
|
||||
{ code: 'pt-PT', name: 'Português (Portugal)' },
|
||||
{ code: 'pt-BR', name: 'Português (Brasil)' },
|
||||
],
|
||||
}
|
||||
|
||||
const locales: LocaleObjectData[] = [
|
||||
|
@ -165,8 +174,8 @@ const locales: LocaleObjectData[] = [
|
|||
},
|
||||
},
|
||||
{
|
||||
code: 'pt-PT',
|
||||
file: 'pt-PT.json',
|
||||
code: 'pt',
|
||||
file: 'pt.json',
|
||||
name: 'Português',
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue