PiotrMachowski/Home-Assistant-custom-components-Custom-Templates

[New Feature?] Translate to "default" language

Closed this issue · 8 comments

I use this "custom templates" and it work fine.

I would be very interested in having this feature without the need to "explicitly" specify the translation language, instead use the "default" language of the GUI/HA.
So if i specify a language as a Parameter it will be translated to this specific language, but if i don't use this Language Parameter it will be translated to the "default" language of the system. This makes it possible to change the language by changing the default HA language.

Do you think this is possible?

"explicitly" specify the translation language, instead use the "default" language of the GUI/HA.

This is already done in HA 2024.3 - see state_translated function in Docs.
In 2024.3 some functionality of this custom plugin was added to the HA core.

Thanks for the link, I actually overlooked or ignored this point! That helps me at least partially. 👍

@jkrasinger
I think the issue can be closed.

I'll keep it - I will add this feature to other functions

@ildar170975 and @PiotrMachowski : OK, I will leave this issue open for now.