From 50541dd940c55f829ab4db24a25cd7e9677e1237 Mon Sep 17 00:00:00 2001 From: Chris Garrity Date: Mon, 30 Aug 2021 14:37:49 -0400 Subject: [PATCH] Handle Brazilian Portuguese We need special handling for languages where we use locale (zh and pt), pt was missing from the code. --- src/utils/Localization.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/Localization.js b/src/utils/Localization.js index 894425f..eb56e0c 100644 --- a/src/utils/Localization.js +++ b/src/utils/Localization.js @@ -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(); }