Updated spanish language string label to avoid confusion

Fixed bug where if no locale was set, it would *not* default to English
This commit is contained in:
Isaac Grynsztein
2020-03-20 16:18:51 -04:00
parent ce2f294a3d
commit 0ac87fe86d
2 changed files with 4 additions and 1 deletions

View File

@@ -13,6 +13,9 @@ if (environment.production) {
}
const locale = localStorage.getItem('locale');
if (!locale) {
localStorage.setItem('locale', 'en');
}
if (locale && locale !== 'en') {
getTranslations(`./assets/i18n/messages.${locale}.json`).then(
(data: ParsedTranslationBundle) => {