mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 10:05:59 -05:00
Merge pull request #507 from LLK/issue/506-pt-br
Handle Brazilian Portuguese
This commit is contained in:
commit
ce9200b2f1
1 changed files with 2 additions and 2 deletions
|
@ -89,9 +89,9 @@ export default class Localization {
|
|||
currentLocale = localizationCookie;
|
||||
}
|
||||
var topLevel = currentLocale.split('-')[0];
|
||||
if (topLevel === 'zh') {
|
||||
if (topLevel === 'zh' || topLevel === 'pt') {
|
||||
// need to handle locale in addition to language code for Chinese,
|
||||
// ensure it's lower case to match filename
|
||||
// and Portuguese, ensure it's lower case to match filename
|
||||
topLevel = currentLocale.toLowerCase();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue