Apply i18n namespace fix to runtime component

This commit is contained in:
Nick O'Leary 2021-12-01 15:15:08 +00:00
parent 7cb8f97ef1
commit 33af5cd7c6
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 2 additions and 2 deletions

View File

@ -136,8 +136,6 @@ function getCurrentLocale() {
function init(settings) {
if (!initPromise) {
// Keep this as a 'when' promise as top-level red.js uses 'otherwise'
// and embedded users of NR may have copied that.
initPromise = new Promise((resolve,reject) => {
i18n.use(MessageFileLoader);
var opt = {
@ -146,6 +144,8 @@ function init(settings) {
defaultNS: "runtime",
ns: [],
fallbackLng: defaultLang,
keySeparator: ".",
nsSeparator: ":",
interpolation: {
unescapeSuffix: 'HTML',
escapeValue: false,