ibz0q / better-moment-card

Customizable digital date/time for Lovelace.
GNU General Public License v3.0
9 stars 0 forks source link

Language according to the language profile configured in home assistant? #2

Open GuyBiot opened 1 week ago

GuyBiot commented 1 week ago

Is it possible to have the language followed according to the language profile configured in home assistant? thanks

ibz0q commented 1 week ago

Do you mean locales?

day.js is the date/time framework but would require all locale files into the package. I would need to consider what this means for performance, maybe alternatively offer a 'all-locales' download option.

Which format do you intend to display date/time? Can you provide an example.

GuyBiot commented 1 week ago

I liked being able to display the day of the week as well as the month in French. Many integrations use the HA language profile.

Thank you

Le mercredi 2 octobre 2024 à 07:54, ibz0q @.***> a écrit :

Do you mean local locales? If so it is possible, day.js is the date/time framework but would require packaging all locale files into the package which may create bloat on download/load times.

I would need to consider what this means, maybe alternatively offer a 'all-locales' download option.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ibz0q commented 1 week ago

This is now under development https://github.com/ibz0q/better-moment-card/tree/locale-support

EddyK69 commented 3 days ago

Would love to see dutch local support

ibz0q commented 3 hours ago

This feature has now been released and is ready for testing.