mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle [html] data-i18n prefixes in config node dialog
This commit is contained in:
parent
6249083431
commit
a4a29ceb3c
@ -628,7 +628,13 @@ RED.editor = (function() {
|
|||||||
$("#dialog-config-form").find('[data-i18n]').each(function() {
|
$("#dialog-config-form").find('[data-i18n]').each(function() {
|
||||||
var current = $(this).attr("data-i18n");
|
var current = $(this).attr("data-i18n");
|
||||||
if (current.indexOf(":") === -1) {
|
if (current.indexOf(":") === -1) {
|
||||||
$(this).attr("data-i18n",ns+":"+current);
|
var prefix = "";
|
||||||
|
if (current.indexOf("[")===0) {
|
||||||
|
var parts = current.split("]");
|
||||||
|
prefix = parts[0]+"]";
|
||||||
|
current = parts[1];
|
||||||
|
}
|
||||||
|
$(this).attr("data-i18n",prefix+ns+":"+current);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user