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

Chinese support json #15

Closed sasukebinbin closed 2 years ago

sasukebinbin commented 2 years ago

Kindly help to add Chinese translate. Attached cn.json.

cn.json.zip

dckiller51 commented 2 years ago

Kindly help to add Chinese translate. Attached cn.json.

cn.json.zip

Hello, thank you for your contribution. You can try version 5.6.3 via hacs

sasukebinbin commented 2 years ago

Hi just updated. But not auto change base on HA setting. How to manually set language?

dckiller51 commented 2 years ago

The language in HA is cn ?

sasukebinbin commented 2 years ago

Yes

dckiller51 commented 2 years ago

Can you give me another card for which it works?

sasukebinbin commented 2 years ago

What you mean another card?

dckiller51 commented 2 years ago

I would like to verify that this is cn I wonder if it is not zh_cn? So with a card for which it works for you I could compare.

sasukebinbin commented 2 years ago

custom:mini-media-player

sasukebinbin commented 2 years ago

Is this what you want? image

sasukebinbin commented 2 years ago

It will show chinese text to ask enter Text for speach

dckiller51 commented 2 years ago

I think it is rather zh-Hant.json or zh-Hans.json https://github.com/home-assistant/core/tree/dev/homeassistant/components/media_player/translations

sasukebinbin commented 2 years ago

Got you. cn.json is just a name I define myself. From the link I think the name should be zh-Hans. s = Simplified Chinese t = Traditionoal Chinese

sasukebinbin commented 2 years ago

My Ha is set to Simplified Chinese

dckiller51 commented 2 years ago

简体中文 ?

sasukebinbin commented 2 years ago

Yes

dckiller51 commented 2 years ago

I just pushed it works now

sasukebinbin commented 2 years ago

I updated but still cannot show. I have tried clear cache and open in private window. And also uninstall and reinstall in hacs.. But nothing changed.

sasukebinbin commented 2 years ago

Please help if have time. Thanks a lot

dckiller51 commented 2 years ago

Please help if have time. Thanks a lot

sorry i left for work

sasukebinbin commented 2 years ago

Np. I resolved by reinstall via hacs. Thanks. Hope the user button can work soon.