ioBroker.js-controller icon indicating copy to clipboard operation
ioBroker.js-controller copied to clipboard

Request: Different languages for properties states

Open schmupu opened this issue 1 year ago β€’ 2 comments

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
            }
        }

schmupu avatar Jun 02 '23 06:06 schmupu

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.

foxriver76 avatar Jun 02 '23 06:06 foxriver76

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 :-)

schmupu avatar Jun 03 '23 05:06 schmupu