-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add unit of measurement localization #25
Comments
That's right. There is no unit of measurement for the number of earthquakes. The only units of measurement are those listed here. For this reason I chose to force a constant in English "quakes" as the unit of measurement. (another word that could be used would be "events") |
is it not possible to create a translation file for the unit of measurement? |
I have no idea, but I can suggest a much quicker way that solves your problem. Just add something similar (see the code below) to the yaml configuration file, then choose restart and quick restart and you will have the unit of measurement that is inserted in the entity customization (my entity ID is
|
oh yes, I know, I already did. my intention was to help those who use this extension, making their life easier (specially for newbies) |
I have no idea if it can be done with the translation of the state or just the attributes, I should try when I have more free time. |
the sensor is great in English but in the other languages (currently it/pt) it is inconsistent, I wanted to open a PR but I didn't understand how to do it, I only found the translation files
The text was updated successfully, but these errors were encountered: