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

How to change language? #36

Closed yangye1n closed 2 years ago

yangye1n commented 2 years ago

Hi, thank you for your contribution on miscale lovelace, but I don't know how to config this card to make it shown as Chinese, could you help me

dckiller51 commented 2 years ago

the language is automatic depending on your system. You will find on the link the translated languages.

https://github.com/dckiller51/lovelace-body-miscale-card/tree/main/src/localize/languages

yangye1n commented 2 years ago

the language is automatic depending on your system. You will find on the link the translated languages.

https://github.com/dckiller51/lovelace-body-miscale-card/tree/main/src/localize/languages

Actually, in my iPhone it shows ZH-HANS, but on my pc it didnot work, still shows English

dckiller51 commented 2 years ago

1) Try to switch your system to English 2) you go to the page of your card you do "update" (f5) 3) delivery of your system in Chinese 4) you go to the page of your map you are "updated" (f5)

yangye1n commented 2 years ago
  1. Try to switch your system to English
  2. you go to the page of your card you do "update" (f5)
  3. delivery of your system in Chinese
  4. you go to the page of your map you are "updated" (f5)

I tried step 1 , I switch to ENGLISH and switch back to Chinese, it did work! Thank you!

dckiller51 commented 2 years ago

Great