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:
Chris Garrity 2021-08-30 14:37:49 -04:00
parent 2a40e17247
commit 50541dd940

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