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

Add translations - German #126

Open gianklug opened 2 years ago

gianklug commented 2 years ago

Is there already support for different languages? I'd be happy to provide german translations.

asosnovsky commented 2 years ago

This may take some time to do right, I currently didn't implement any internationalisation yet.

asosnovsky commented 2 years ago

Some thoughts on this. I don't think we need a library or anything.

Just need to collect all the texts into a single json file and use a hook+provider to serve the json. Ideally the jsons will leave in the api and be retrieved via api calls. This way we can set an environment variable that would be configured by the user for this.

asosnovsky commented 2 years ago

In relation to https://github.com/asosnovsky/Shortumation/issues/89

Need to probably have some sort of templating for node description. Although this can be done on a second iteration on this. First whoever picks this up should focus on providing a way to translate the easy stuff like "delete automation" etc

asosnovsky commented 2 years ago

@gianklug added translations ability now. Take a look at this PR for adding new translations :) https://github.com/asosnovsky/Shortumation/pull/155