remove topLevelAwait experiment

This commit is contained in:
or-else
2022-12-05 09:33:56 -08:00
parent 5fdcc65b5b
commit 3a002f224d
6 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const language = (params && params.hl) ||
// Make sure names like 'en_GB' and 'en-GB' consistently use '-'.
const normalized = language.replace('_', '-');
// Get the base language 'en' from a more specific 'en_GB' or 'en-US' as a partial fallback.
const baseLanguage = normalized.split(/[-]/)[0].toLowerCase();
const baseLanguage = normalized.split(/[-_]/)[0].toLowerCase();
// Try the full locale first, then the locale without the region code, fallback to 'en'.
// const htmlLang = messageLoader[normalized] ? language : messageLoader[baseLanguage] ? baseLanguage : 'en';
+1 -1
View File
@@ -2321,7 +2321,7 @@ const {
const language = params && params.hl || navigator.languages && navigator.languages[0] || navigator.language || navigator.userLanguage || 'en';
const normalized = language.replace('_', '-');
const baseLanguage = normalized.split(/[-]/)[0].toLowerCase();
const baseLanguage = normalized.split(/[-_]/)[0].toLowerCase();
const htmlLang = _messages_json__WEBPACK_IMPORTED_MODULE_3__[normalized] ? language : _messages_json__WEBPACK_IMPORTED_MODULE_3__[baseLanguage] ? baseLanguage : 'en';
const messages = _messages_json__WEBPACK_IMPORTED_MODULE_3__[htmlLang];
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-3
View File
@@ -69,8 +69,5 @@ module.exports = (env, argv) => {
'react-intl': 'ReactIntl',
'tinode-sdk': 'Tinode',
},
experiments: {
topLevelAwait: true
},
};
}