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

Localization for modes none, eco, away, sleep, home, comfort #405

Open
Ceaus opened this issue Oct 23, 2023 · 4 comments
Open

Localization for modes none, eco, away, sleep, home, comfort #405

Ceaus opened this issue Oct 23, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@Ceaus
Copy link

Ceaus commented Oct 23, 2023

Is your feature request related to a problem? Please describe.
I have HomeAssistant in my local language, but the modes of Simple Thermostat are only displayed in English.
I would really like to see NONE, ECO, AWAY, SLEEP and COMFORT in my own language.

How can I get this to work?

@Ceaus Ceaus added the enhancement New feature or request label Oct 23, 2023
@cfergeau
Copy link

You can translate this yourself with something like:

      control:
        hvac:
          heat:
            name: Allumé
          'off':
            name: Éteint
        preset:
          Full power: false
          Manufacturer specific: false
          Energy heat:
            name: Éco
            icon: false
          none:
            name: Normal
            icon: false

The card shows "heat/off" for the hvac controls, and "Full Power", "Manufacturer specific", "Energy heat" and "none" for the presets. This changes the hvac controls to "Allumé"/"Éteint", hides the "Full Power" and "Manufacturer specific" presets, and translated the other 2 to "Éco" and "Normal"

@Ceaus
Copy link
Author

Ceaus commented Jan 28, 2024

Thanks for the suggestion. It does require that anyone looking to change the defaults needs to start translating and hack config files. Which seems odd particularly as this is a front-end/UX issue. From a UX perspective having sensible defaults aligned with the local language seems the better choice. Is there any way to localize the indicators outside of coding the config file? I'd sign up myself instantly to provide for a Dutch translation.

Edit: And let's not forget the users who don't speak English - There are plenty of countries where English is not in the top 5. The world is a big place!
Just as a reminder: I had to dig into the Developer Tools > Entities page to understand which values where available, so that I could program an automation.

@cfergeau
Copy link

I'm just a user who started using simple-thermostat this weekend, I don't know if there are better ways of handling translations ^^

@Ceaus
Copy link
Author

Ceaus commented Jan 29, 2024

As illustration: here are the default thermostat and the Simple Thermostat vertically stacked. Notice how the default has localized settings name (I didn't put them there). So it's apparently possible to localize UI elements. Whereas Simple Thermostat only has the English variants.

Screenshot_20240129_203235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants