-
Notifications
You must be signed in to change notification settings - Fork 48
Usability Improvement: Improved naming for devices, entities and states + Multi-Language support (DE for now) #327
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
Conversation
…inary_sensor, button, number, select and switch
| @@ -1,32 +0,0 @@ | |||
| { | |||
| "config": { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the config flow structure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sfstar , thanks for reviewing and testing!
To my understanding the strings.json is not needed in custom integrations, as it is only a duplicate of translations/en.json. Therefore I removed it and did all updates in en.json.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your reply,
Based on the documentation and my vague recollection the strings.json was required to define the overall structure of the translations while the translations en.json / de.json etc contain the language specific values for those strings.
Have you seen any issues with the translations for the config flow / setup flow?
|
Thank you for opening this PR and contributing your time to this project. |
|
Thanks for testing! |
…rcase. Fix findings of ruff validator: cast without quotes
|
@sfstar : I just fixed the findings of hassfest and ruff. I can have another look after your next approval. :-) |
|
Great I've approved the worklows to run so that all findings can be verified. |
|
Regarding the hassfest finding. I will be able to further look at this PR coming wednesday. |
|
This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days |
|
This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days |
Breaking change
No breaking change
Proposed change
Replace register names by wording used in Venus OS and enable multi-language support for Victron devices, entities and their states.
Observations independant of this PR (will check/create separate tickets):
--> Translations have already been created for all entity types and duplicates (translations in type sensor) can be removed when the observations above are fixed.
Type of change
Additional information
Checklist
ruff format custom_components/victron)