mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
add optional lang select
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user