andkov / project-agrus

MIT License
0 stars 0 forks source link

should we avoid "locales"? #13

Open wibeasley opened 2 years ago

wibeasley commented 2 years ago

@andkov, tell me if you've had other/better experiences. I was thinking we could use locales and strftime() to avoid the explicit translations of month_01... month_12 in the config file.

> strftime(as.Date("2020-08-01"), "%b")
[1] "Aug"

But it appears that the value passed to Sys.setlocales() is different for different OSes. So at this point, it's probably best to continue spelling out each month for each language.