support brazilian portugese

This commit is contained in:
zeppi 2021-04-14 11:06:05 -04:00 committed by jessopb
parent 9689ef72a1
commit 1b6c217226
5 changed files with 5 additions and 5 deletions

View file

@ -129,6 +129,7 @@ const LANGUAGES = {
pl: ['Polish', 'Polski'], pl: ['Polish', 'Polski'],
ps: ['Pashto', 'پښتو'], ps: ['Pashto', 'پښتو'],
pt: ['Portuguese', 'Português'], pt: ['Portuguese', 'Português'],
'pt-BR': ['Portuguese (Brazil)', 'Português (Brasil)'],
qu: ['Quechua', 'Runa Simi'], qu: ['Quechua', 'Runa Simi'],
rm: ['Raeto Romance', 'Rumantsch'], rm: ['Raeto Romance', 'Rumantsch'],
rn: ['Kirundi', 'Kirundi'], rn: ['Kirundi', 'Kirundi'],

View file

@ -22,6 +22,7 @@ const SUPPORTED_BROWSER_LANGUAGES = {
pa: 'pa', pa: 'pa',
pl: 'pl', pl: 'pl',
pt: 'pt', pt: 'pt',
'pt-BR': 'pt-BR',
ro: 'ro', ro: 'ro',
ru: 'ru', ru: 'ru',
sr: 'sr', sr: 'sr',

View file

@ -22,6 +22,7 @@ const SUPPORTED_LANGUAGES = {
pa: LANGUAGES.pa[1], pa: LANGUAGES.pa[1],
pl: LANGUAGES.pl[1], pl: LANGUAGES.pl[1],
pt: LANGUAGES.pt[1], pt: LANGUAGES.pt[1],
'pt-BR': LANGUAGES['pt-BR'][1],
ro: LANGUAGES.ro[1], ro: LANGUAGES.ro[1],
ru: LANGUAGES.ru[1], ru: LANGUAGES.ru[1],
sr: LANGUAGES.sr[1], sr: LANGUAGES.sr[1],

View file

@ -2,7 +2,4 @@
export const SUB_LANG_CODE_LEN = 5; export const SUB_LANG_CODE_LEN = 5;
export const SUPPORTED_SUB_LANGUAGE_CODES = [ export const SUPPORTED_SUB_LANGUAGE_CODES = ['zh-CN', 'zh-TW', 'pt-BR'];
'zh-CN',
'zh-TW',
];

View file

@ -70,7 +70,7 @@ export const selectHomepageData = createSelector(
selectHomepageCode, selectHomepageCode,
(homepageCode) => { (homepageCode) => {
// homepages = { 'en': homepageFile, ... } // homepages = { 'en': homepageFile, ... }
return homepages[homepageCode]; return homepages[homepageCode] || homepages['en'];
} }
); );