-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for different locales in strftime #78
Comments
Hi @tigroz! This is a good question. I'm using the native strftime for this functionality. At least in vanilla C, stuff like day of week is locale-specific, which is configured through I have no idea if the ESP32 SDK ships with locales other than English. I would hope it does, but I'm not seeing a ton of information about it. I'd be happy to experiment with this myself, but if you want to take a stab at it, might be worth just trying to toss an If this doesn't work, I'm afraid the best option is probably to work around it externally. So you'd have whatever is pushing your weather updates also push MQTT variables like |
No worries. In the best case, adding support for different locales should be easy. I'll try to find some time to play around with it. Happy to help with the other question. I'll move it to another issue, though. |
Unfortunately this didn't work. I'm guessing that the espressif SDK does not ship with other locales. If anyone knows of a way around this, please let me know. |
I am very impressed with the work you have done, I wanted to know if it is possible to use another language to display the names of the days of the week and the months (Italian) I have already changed some settings to display the temperature in Celsius, could you help me?
The text was updated successfully, but these errors were encountered: