Lua os.date() localization in context
![](https://secure.gravatar.com/avatar/1d447477da49fe58e8c66937296c304a.jpg?s=120&d=mm&r=g)
30 Apr
2019
30 Apr
'19
12:13 a.m.
Hi all, I would like to print the day name of a date in french using my current locale. In lua I can do:
os.setlocale('fr_FR.UTF-8',all) print(os.date("%A"))
But in a cld document it doesn't work. Context complains about using "os.locale in a supposedly locale neutral enviroment" and it prints the day name in english. How can I translate the day names without hardcoding everything? Thanks in advance. Best. -- Romain Diss
1934
Age (days ago)
1934
Last active (days ago)
0 comments
1 participants
participants (1)
-
Romain Diss