Merge pull request #507 from LLK/issue/506-pt-br

Handle Brazilian Portuguese
This commit is contained in:
chrisgarrity 2021-08-30 14:54:22 -04:00 committed by GitHub
commit ce9200b2f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}