It shouldn’t be hard to adapt the example from the docs. Create a new data file that contains all weekdays in a language of your choice, e.g. wochentage.toml, which means weekdays in German:
1 September - Montag, 2 October - Dienstag, 3 November - Mittwoch? 8 December = Null?
Dear Digitalcraftsman, let us clearly: how to name it, in which folder to place all of it and is this code correctly work with .Date.Day?
I should double-check the documentation of the time package. .Date.Day refers to the nth day of the month, whereas .Date.Weekday corresponds to the nth weekday.
December = Null happened because weekdays have a zero-based index, whereas months are counted (intuitively) from one upwards.
Overall, the snippet is nearly the same as the one for the translations of month names that has been linked in the introductory post. It was mentioned that wochentage.toml is a data file. Maybe it wasn’t as obvious that it belongs in the data/ folder but the next time I’ll try to be more precise in the details