dckiller51 / lovelace-body-miscale-card

Card for data of Xiaomi scales in the Lovelace user interface of Home Assistant The card is linked to the Bodymiscale custom components for Xiaomi scales. https://github.com/dckiller51/bodymiscale
MIT License
81 stars 23 forks source link

Custom language set manually. #35

Open urtaevS opened 2 years ago

urtaevS commented 2 years ago

I have english local on my OS. How i can setup manually Ru translation for lovelace-body-miscale-card? Thanks advance!

bcutter commented 9 months ago

I also don't know how to set language manually. I expect some language: DE config option.

In my case DE is not shown unfortunately...

dckiller51 commented 9 months ago

Je ne sais pas non plus comment définir la langue manuellement. J'attends une language: DEoption de configuration.

Dans mon cas, DE n'est malheureusement pas affiché...

Unfortunately I was not able to define it manually. It is based on the language of your homeassistant. If your homeassistant is in German your card should be too. I already have problems to solve it switch your homeassistant to English then go to the card page refresh F5 then switch back to German return to the card page refresh with F5.

bcutter commented 9 months ago

switch your homeassistant to English then go to the card page refresh F5 then switch back to German return to the card page refresh with F5.

That neat workaround actually - worked 👍 If possible I still vote for a config option. There might be use-cases - like initially described in this issue - one wants to set another language for this card than the rest of HA frontend.

dckiller51 commented 9 months ago

passez votre homeassistant en anglais puis allez sur la page de la carte actualisez F5 puis revenez en allemand revenez à la page de la carte actualisez avec F5.

En fait, cette solution de contournement intéressante a fonctionné 👍 Si possible, je vote toujours pour une option de configuration. Il peut y avoir des cas d'utilisation - comme décrit initialement dans ce numéro - où l'on souhaite définir une autre langue pour cette carte que le reste de l'interface HA.

If you have a card that has this option, I would like to study it to adapt it. For my part, I couldn't find it during my searches.

bcutter commented 9 months ago

Can't find one.

Seems like one needs to perform that workaround over and over again which is VERY annoying:

After updating to 5.9.5, now the language is again defaulted to English on all instances. Really, I can't do the language switch hack on EVERY device/browser I use on every update...

image

There needs to be a smarter / more stable solution to this. A fixed language setting could be one...