From 35e903e6d60fe33e37a0530d9c49da5a3c7c4471 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 3 Apr 2024 23:20:35 -0400 Subject: [PATCH] force zh-cn on neodb.social for now --- boofilsic/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/boofilsic/settings.py b/boofilsic/settings.py index 7c5f4a97..c1ec1a38 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -390,9 +390,11 @@ MARKDOWNX_MARKDOWNIFY_FUNCTION = "journal.models.render_md" LANGUAGE_CODE = env("NEODB_LANGUAGE", default="zh-hans") # type: ignore LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")] LANGUAGES = ( - # ("en", _("English")), + ("en", _("English")), ("zh-hans", _("Simplified Chinese")), ) +if SITE_DOMAIN == "neodb.social": + LANGUAGES = (("zh-hans", _("Simplified Chinese")),) TIME_ZONE = env("NEODB_TIMEZONE", default="Asia/Shanghai") # type: ignore