-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Added Dutch, Norwegian and Swedish translations. #306
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #306 +/- ##
=======================================
Coverage 99.48% 99.48%
=======================================
Files 14 14
Lines 1760 1761 +1
=======================================
+ Hits 1751 1752 +1
Misses 9 9 ☔ View full report in Codecov by Sentry. |
@corvy, the file name |
@corvy, @CasparTheBridge, I have done a pre-release v1.12.0-dev1. Can you check if it looks ok? |
Hmm. Realized that if you set For example, the entity Not sure that is desirable. The documentation of the integration assumed English Entity IDs, and if someone creates a new issue, it will be complicated for me to understand which entity is which... Maybe there is a way to keep the Entity IDs in English, while the entity name is being translated. Anyone who knows? |
The translation works well at least. 👍 Agree that the entity names should not be translated but I guess that is not a showstopper. Have no idea how to overcome that. |
Found a problem in my setup with this implemented. The attribute names changed, and since I have quite a few automations running that listens for changes in the attributes that becomes a problem. At least it should be mentioned as a breaking change I guess. Example, before this worked: Now this must be changed to: And so forth ... no big deal, but I did not notice until about a day and a half ... meanwhile my car did not charge :O |
Thanks for reporting. That's not a wanted consequence. I think I can modify so that the previous attribute names will be used. |
I am fine either way, but I think it would be good for the users to know. Of course having the untranslated strings as attributes would probably make it more consistent across installations and make it easier from a templating perspective I guess. |
Hmm. It was not possilbe to change back to the previous state attribute names. When the state attribute names are translated, the "translation key", ( So if state attribute names should be translated, it will be a breaking change... |
Yes, I still think its the right move. Just warn about breaking change. Its a really easy fix when you know about it. |
Yes, I also think it is better to do it properly now, even though it will be an backward-incompatible change. Also, I have now done a v1.12.0-dev2 that makes sure the entity IDs always will be in English. |
Good call. I will test. |
dev2 works fine here, incl Had to change some templates because of the changed attributes, but nothing big. I guess that anyone who uses templates will be fine changing them as well 😉 |
For me also, works fine 🤙 |
No description provided.