Skip to content

Commit ce9200b

Browse files
authored
Merge pull request scratchfoundation#507 from LLK/issue/506-pt-br
Handle Brazilian Portuguese
2 parents 3c18ba8 + 50541dd commit ce9200b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/Localization.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ export default class Localization {
8989
currentLocale = localizationCookie;
9090
}
9191
var topLevel = currentLocale.split('-')[0];
92-
if (topLevel === 'zh') {
92+
if (topLevel === 'zh' || topLevel === 'pt') {
9393
// need to handle locale in addition to language code for Chinese,
94-
// ensure it's lower case to match filename
94+
// and Portuguese, ensure it's lower case to match filename
9595
topLevel = currentLocale.toLowerCase();
9696
}
9797

0 commit comments

Comments
 (0)