remove topLevelAwait experiment
This commit is contained in:
+1
-1
@@ -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
@@ -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];
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -69,8 +69,5 @@ module.exports = (env, argv) => {
|
||||
'react-intl': 'ReactIntl',
|
||||
'tinode-sdk': 'Tinode',
|
||||
},
|
||||
experiments: {
|
||||
topLevelAwait: true
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user