Quantcast
Channel: ESPHome - Home Assistant Community
Viewing all articles
Browse latest Browse all 1486

It.strftime Language localization

$
0
0

@fra290 wrote:

hi all.
anybody have localize the output of strftime in lambda?
I want ot translate the name of days and months in italian
I have test this:

setlocale(LC_ALL, "it-IT");
it.strftime(X, Y, id(font), textAllign::TOP_CENTER, "%B", id(current_time).now());

no error in compiling but the text is alwais in english…
any idea?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>