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

Issue with translation again #50

Open
Opontios opened this issue Dec 4, 2023 · 3 comments
Open

Issue with translation again #50

Opontios opened this issue Dec 4, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Opontios
Copy link

Opontios commented Dec 4, 2023

I have red all the issue reports about the translation and can't understand the following. The author states that there is no way yet to set the translation language manually, it follows the system settings. But despite that there are a lot of language files in the 'translation' folder of the custom component. In my setup I have only one entry that can't be translated, it's shown in the screenshot. This entry (State of the BMI interpretation) is translated in the corresponding language file, but not updated in the card. Actually, the card is not using the language files at all, because even if you delete the language file and clear the cache of the browser the card stays translated with that only entry missing, as in the screenshot. So how it actually works and how it can be corrected?
Bodymiscale

@Opontios Opontios added the bug Something isn't working label Dec 4, 2023
@dckiller51
Copy link
Owner

I will look at the error. There is an automatic translation depending on the HA system language and if someone provided the translation in their language. Now it may happen that a person does not translate 100% so translations will be missing. In this case English takes over. At first glance I didn't see any errors, I will test in my environment.

@Opontios
Copy link
Author

Opontios commented Dec 6, 2023

I will look at the error. There is an automatic translation depending on the HA system language and if someone provided the translation in their language. Now it may happen that a person does not translate 100% so translations will be missing. In this case English takes over. At first glance I didn't see any errors, I will test in my environment.

Thanks for the quick reply! And thanks for the grate job done with this component.
As I mentioned before, the translation file includes those states. But how exactly the card reads those entries? If I delete the translation file and clear the cash the translation is still there.
Bodymiscale2

@dckiller51
Copy link
Owner

@Opontios Sorry for my late return. I changed computers and had some difficulty reinstalling the card in development mode. I did some tests and I have the overweight translation. As is often the case, I advise you to switch to English and go to the card page to press F5. Switch back to the language of your choice, then F5 again on the card page.
Capture d'écran 2023-12-16 111625

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants