mirror of https://github.com/node-red/node-red.git
add optional lang select
parent
9b1c114c3f
commit
4943bde3d4
|
|
@ -33,7 +33,7 @@ module.exports = {
|
|||
*/
|
||||
init: function(settings) {
|
||||
log.init(settings);
|
||||
i18n.init();
|
||||
i18n.init(settings);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ function init() {
|
|||
suffix: '__'
|
||||
}
|
||||
};
|
||||
var lang = getCurrentLocale();
|
||||
var lang = settings.lang || getCurrentLocale();
|
||||
if (lang) {
|
||||
opt.lng = lang;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -248,6 +248,8 @@ module.exports = {
|
|||
// their values. Setting this to true will cause the keys to be listed.
|
||||
exportGlobalContextKeys: false,
|
||||
|
||||
// Uncomment the following to run node-red in your preferred language:
|
||||
// lang: "de",
|
||||
|
||||
// Context Storage
|
||||
// The following property can be used to enable context storage. The configuration
|
||||
|
|
|
|||
Loading…
Reference in New Issue