Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Different languages for properties states #2276

Open
schmupu opened this issue Jun 2, 2023 · 2 comments
Open

Request: Different languages for properties states #2276

schmupu opened this issue Jun 2, 2023 · 2 comments

Comments

@schmupu
Copy link

schmupu commented Jun 2, 2023

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
            }
        }
@foxriver76
Copy link
Collaborator

foxriver76 commented Jun 2, 2023

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.

@schmupu
Copy link
Author

schmupu commented Jun 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants