ioBroker / adapter-dev

All Dev-Dependencies an adapter developer needs
MIT License
3 stars 5 forks source link

extend translate to support backend i18n #267

Open mcm1957 opened 2 weeks ago

mcm1957 commented 2 weeks ago

Adaptercore now supports i18n translations. npm run translate should be extended to support those files.

Filenaming is is i18n/langugae.json

Details see adapter-core docu

Apollon77 commented 2 weeks ago

Ad what exactly "npm run translate" should do?

mcm1957 commented 2 weeks ago

The same functionality as it does for admin/i18n translations. Take the english text and create the other languages.

Or is there some other tool to create the i18n files ???

Apollon77 commented 2 weeks ago

So yes "npm run translate ./i18n" or such ... so with a custom path ... makes sense