ioBroker.js-controller
ioBroker.js-controller copied to clipboard
Request: Different languages for properties states
Request Is it possible to store different languages ββon an object for the states properties analog to the languages for names properties?
Example:
{
type: 'state',
common: {
type: 'number',
role: 'value',
name: {
en: 'Tamper deactivated',
de: 'Sabotage deaktivieren'
},
read: true,
write: true,
states: {
en: { 0: 'off', 1: 'on' },
de: { 0: 'Aus', 1: 'An' }
},
min: 0,
max: 1
}
}
No, it is not. Have to think about if this would make sense. You could achieve this by creating the object according to the current configured language by reading system.config.
Thanks, thinking about it. It would be great to provide this feature to one of the next versions. I found in the ioBroker Forum someone else who asked for the same "language state feature". I am not totally alone :-)