mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-14 04:41:04 +00:00
Merge pull request #1855 from bookwyrm-social/instance-default-language
Makes default language configurable
This commit is contained in:
commit
047e3a324a
2 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@ USE_HTTPS=true
|
||||||
DOMAIN=your.domain.here
|
DOMAIN=your.domain.here
|
||||||
EMAIL=your@email.here
|
EMAIL=your@email.here
|
||||||
|
|
||||||
|
# Instance defualt language (see options at bookwyrm/settings.py "LANGUAGES"
|
||||||
|
LANGUAGE_CODE="en-us"
|
||||||
# Used for deciding which editions to prefer
|
# Used for deciding which editions to prefer
|
||||||
DEFAULT_LANGUAGE="English"
|
DEFAULT_LANGUAGE="English"
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
||||||
|
|
||||||
LANGUAGE_CODE = "en-us"
|
LANGUAGE_CODE = env("LANGUAGE_CODE", "en-us")
|
||||||
LANGUAGES = [
|
LANGUAGES = [
|
||||||
("en-us", _("English")),
|
("en-us", _("English")),
|
||||||
("de-de", _("Deutsch (German)")),
|
("de-de", _("Deutsch (German)")),
|
||||||
|
|
Loading…
Reference in a new issue