support brazilian portugese
This commit is contained in:
parent
9689ef72a1
commit
1b6c217226
5 changed files with 5 additions and 5 deletions
|
@ -129,6 +129,7 @@ const LANGUAGES = {
|
|||
pl: ['Polish', 'Polski'],
|
||||
ps: ['Pashto', 'پښتو'],
|
||||
pt: ['Portuguese', 'Português'],
|
||||
'pt-BR': ['Portuguese (Brazil)', 'Português (Brasil)'],
|
||||
qu: ['Quechua', 'Runa Simi'],
|
||||
rm: ['Raeto Romance', 'Rumantsch'],
|
||||
rn: ['Kirundi', 'Kirundi'],
|
||||
|
|
|
@ -22,6 +22,7 @@ const SUPPORTED_BROWSER_LANGUAGES = {
|
|||
pa: 'pa',
|
||||
pl: 'pl',
|
||||
pt: 'pt',
|
||||
'pt-BR': 'pt-BR',
|
||||
ro: 'ro',
|
||||
ru: 'ru',
|
||||
sr: 'sr',
|
||||
|
|
|
@ -22,6 +22,7 @@ const SUPPORTED_LANGUAGES = {
|
|||
pa: LANGUAGES.pa[1],
|
||||
pl: LANGUAGES.pl[1],
|
||||
pt: LANGUAGES.pt[1],
|
||||
'pt-BR': LANGUAGES['pt-BR'][1],
|
||||
ro: LANGUAGES.ro[1],
|
||||
ru: LANGUAGES.ru[1],
|
||||
sr: LANGUAGES.sr[1],
|
||||
|
|
|
@ -2,7 +2,4 @@
|
|||
|
||||
export const SUB_LANG_CODE_LEN = 5;
|
||||
|
||||
export const SUPPORTED_SUB_LANGUAGE_CODES = [
|
||||
'zh-CN',
|
||||
'zh-TW',
|
||||
];
|
||||
export const SUPPORTED_SUB_LANGUAGE_CODES = ['zh-CN', 'zh-TW', 'pt-BR'];
|
||||
|
|
|
@ -70,7 +70,7 @@ export const selectHomepageData = createSelector(
|
|||
selectHomepageCode,
|
||||
(homepageCode) => {
|
||||
// homepages = { 'en': homepageFile, ... }
|
||||
return homepages[homepageCode];
|
||||
return homepages[homepageCode] || homepages['en'];
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue