bruxy70 / Garbage-Collection

🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
MIT License
382 stars 90 forks source link

Change langage #378

Closed Karine005 closed 2 years ago

Karine005 commented 2 years ago

Before you submit a new bug report, please check that

Write your question here

Hello, how can I change language for "today" and "tomorrow" ? Thanks you.

bruxy70 commented 2 years ago

Do not use verbose state and change the language on the front end. The easiest way is to use the garbage collection custom card I guess. Or make own template.

Karine005 commented 2 years ago

Thanks, but I'm already in french on the frontend. How can I do that with the card or with a template ?

bruxy70 commented 2 years ago

You can use the custom hui markdown card, or custom card templater or custom config template card or custom lovelace template entity row.

Karine005 commented 2 years ago

Ok, but which code should I write in these cards to have french ? (Excuse me I'm a beginner...) Thanks.

bruxy70 commented 2 years ago

In that case I'd suggest using the garbage collection card (available through HACS, that one has translation I think). Or if you'd like'd like to learn something new, I explain templates here https://www.youtube.com/watch?v=DCMRjfo723E https://www.youtube.com/watch?v=DCMRjfo723E. The date formatting is one of the examples.