spanezz / staticsite

Static site generator
GNU General Public License v3.0
45 stars 7 forks source link

Add a default LANGUAGE_CODE to settings #22

Closed spanezz closed 4 years ago

spanezz commented 4 years ago

(from a conversation with @DonKult)

staticsite currently does not set a locale on startup, meaning that locale-dependent contents like days in date formatting, default to the "C" locale.

It would make sense to add someting like Django's LANGUAGE_CODE to the settings, and have staticsite activate that locale on startup.

This wouldn't help create multilanguage sites, but it would help in creating sites in language different than English.