mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Apply i18n namespace fix to runtime component
This commit is contained in:
parent
7cb8f97ef1
commit
33af5cd7c6
@ -136,8 +136,6 @@ function getCurrentLocale() {
|
|||||||
|
|
||||||
function init(settings) {
|
function init(settings) {
|
||||||
if (!initPromise) {
|
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) => {
|
initPromise = new Promise((resolve,reject) => {
|
||||||
i18n.use(MessageFileLoader);
|
i18n.use(MessageFileLoader);
|
||||||
var opt = {
|
var opt = {
|
||||||
@ -146,6 +144,8 @@ function init(settings) {
|
|||||||
defaultNS: "runtime",
|
defaultNS: "runtime",
|
||||||
ns: [],
|
ns: [],
|
||||||
fallbackLng: defaultLang,
|
fallbackLng: defaultLang,
|
||||||
|
keySeparator: ".",
|
||||||
|
nsSeparator: ":",
|
||||||
interpolation: {
|
interpolation: {
|
||||||
unescapeSuffix: 'HTML',
|
unescapeSuffix: 'HTML',
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user