nicufarmache / lovelace-big-slider-card

A card with a big slider for light entities in Home Assistant
MIT License
77 stars 11 forks source link

Localization does not work #40

Open cicero200272 opened 1 year ago

cicero200272 commented 1 year ago

Checklist:

Release with the issue: 1.1.4

Last working release (if known): n/a

Browser and Operating System:

Description of problem: Lights that are switched off appear as "off" although it should read "aus" (German locale). HA is set to Germany/German in settings.

Javascript errors shown in the web inspector (if applicable):

Additional information:

jensrossbach commented 1 year ago

Looks like the card uses some own localization which only supports English and Romanian. But for the standard values like 'on', 'off' etc., the card should make use of Home Assistant's localization capabilities.

nicufarmache commented 1 year ago

You're right. I'm going to change it to use the HA localisation in the next version

nicufarmache commented 1 year ago

I just found out that there is a new localisation api available from version 2023.9 https://developers.home-assistant.io/blog/2023/08/29/hass-format-state/