guify
guify copied to clipboard
How to update label?
I am trying to implement on-the-fly multi-language support by changing labels. I tried the following but it didn't work. Does anyone know a solution?
var web_text = ['label1','label2']
gui2.Register([
{
type: 'select',
label: web_text[0],
options: ["MANUAL", "AUTOGAIN", "AUTOEXPOSURE"],
onChange: (data) => {
console.log(data);
}
}
});
// other part of the code
web_text[0] = 'new label in other language'