Petro31 / easy-time-jinja

Easy Time calculations for Home Assistant templates
MIT License
68 stars 25 forks source link

custom_time_attr bug #8

Closed Pulpyyyy closed 1 year ago

Pulpyyyy commented 1 year ago

Hello

Testing macros I found something strange image With 0 , Day should be in singular instead of plural. Even better :

Petro31 commented 1 year ago

In English 0 is followed by plural nouns.

For today and tomorrow, a new macro is required. It's something I'm currently working on.

Pulpyyyy commented 1 year ago

Great news So 0 days, 1 day ? French's grammar is weird, but English's one isn't bad either.

Petro31 commented 1 year ago

So 0 days, 1 day ?

Yeah, at least in English this is how it's done. That's what I modeled it after. I do not know about other languages, but I would assume it would be the same.

Petro31 commented 1 year ago

new macro in 1.0.7