SwiftDocOrg / swift-doc

A documentation generator for Swift projects
https://swiftdoc.org
MIT License
1.68k stars 100 forks source link

Add new parameter for date formats, and default to en_US #287

Closed f-meloni closed 3 years ago

f-meloni commented 3 years ago

Hello everyone 👋🏻

First of all, thank you for this great tool!

While I was generating some documentation I've noticed that it was using my locale, which makes the result odd, because uses an italian word in the middle of an english sentence.

Schermata 2021-05-22 alle 20 58 53

I've then added a new option (that defaults to en_US) to specify the locale for the dates that are printed by swift docs. I could just hardcode en_US there, but I thought that making it explicit with an option and allow the user to modify it was a better choice.

Schermata 2021-05-22 alle 21 32 42

And now is correct also with my italian locale

Schermata 2021-05-22 alle 21 47 38