jeroenterheerdt / HAsmartirrigation

Smart Irrigation custom component for Home Assistant
MIT License
301 stars 47 forks source link

Entity's attributes should not be translated to system locale #303

Closed juacas closed 7 months ago

juacas commented 7 months ago

What happened?

In a system with Spanish language configured the attributes of the entities are created in spanish.

image

That is, the attribute "Throughput " is named "Rendimiento", "Size" is named "Tamaño" and so on.

It is not that the user interface translates them but that the registed identifiers are translated.

If language is changed and a new zone is created, then the attributes of the new zone are named in the configured locale:

image

The attributes should be in english and have predictible names.

config_entry-smart_irrigation-22c9669138bc8113970248f8d2f1ba18.json.txt

How to reproduce

Change language and create a new zone. Inspect the schema of the new zone..

Relevant log output

No response

Which version are you running?

2023.9.2

Diagnostics file

Additional information

No response

jeroenterheerdt commented 7 months ago

Why not? This is by design.

juacas commented 7 months ago

Hi I can think of some arguments:

However, this is only a suggestion to improve your, otherwise, super useful component.

jeroenterheerdt commented 7 months ago

that makes sense, I can try to implement the translation according to the link you shared. thanks.