HASwitchPlate / openHASP

HomeAutomation Switchplate based on lvgl for ESP32
https://www.openhasp.com
MIT License
695 stars 179 forks source link

Language support #782

Closed dl5dla closed 1 month ago

dl5dla commented 1 month ago

Hi, I have the following entry in pages.jsonl to show the date on each page: {"page":00,"id":02,"obj":"label","x":000,"y":000,"w":480,"h":032,"text":"Sun, 18. Jan 2024","template":"%a, %e. %b %Y","text_color":"#FFFFFF","align":"center", "enabled":0, "text_font":24}

Instead of the English version ("Sun, 18. Jan 2024") I would like to switch to the German version ("So, 18. Jan 2024"), but I did not find any option to use the German translation. Is this somehow possible?

And, more general, is it possible to switch the gui to German language? I used the web installer (https://nightly.openhasp.com/) to install openHASP (0.7.0-rc12 cd34d89), but I did not find any option in the configuration to change the language afterwards.. Answered here: (https://github.com/HASwitchPlate/openHASP/discussions/784)

BTW, I am using openHASP without Homeassistant.

Regards, Peter

fvanroie commented 1 month ago

afaik ESP-IDF implements the strftime function in English only. You need to implement a custom strftime function for other languages.