mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-24 16:17:55 -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;
|
currentLocale = localizationCookie;
|
||||||
}
|
}
|
||||||
var topLevel = currentLocale.split('-')[0];
|
var topLevel = currentLocale.split('-')[0];
|
||||||
if (topLevel === 'zh') {
|
if (topLevel === 'zh' || topLevel === 'pt') {
|
||||||
// need to handle locale in addition to language code for Chinese,
|
// 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();
|
topLevel = currentLocale.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue