mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Handle Brazilian Portuguese
We need special handling for languages where we use locale (zh and pt), pt was missing from the code.
This commit is contained in:
parent
2a40e17247
commit
50541dd940
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