asosnovsky / Shortumation

[Not Maintained] A better way to write automations in home-assistant without having to install and run a seperate automation engine!
MIT License
300 stars 7 forks source link

Better description generation for multilingual #89

Open asosnovsky opened 2 years ago

asosnovsky commented 2 years ago

In general need to make sure all cases look clean and valid.

Triggers ...

Conditions

Actions

Related code

Function: https://github.com/asosnovsky/Shortumation/blob/main/webapp/src/utils/formatting.tsx#L27

Tests:

https://github.com/asosnovsky/Shortumation/blob/main/webapp/src/utils/formatting.test.ts

asosnovsky commented 2 years ago

Also relating this to https://github.com/asosnovsky/Shortumation/issues/126 need to think of how translations would fit this idea...