diff --git a/app/translations/__init__.py b/app/translations/__init__.py index eccf502..ed6d801 100644 --- a/app/translations/__init__.py +++ b/app/translations/__init__.py @@ -15,9 +15,9 @@ def get_locale() -> Optional[str]: and current_user.locale != "auto" and current_user.locale in Locale.ids() ): + # NOTE User.locale is not used logging.debug("locale from user %s", current_user.locale) return current_user.locale - # TODO: allow frontend to override locale in UI # "zh" locale asssets is created from hardcoded strings # "en" locale are machine translated best_match = request.accept_languages.best_match(["zh", "en"], default="en") diff --git a/app/translations/en/LC_MESSAGES/messages.po b/app/translations/en/LC_MESSAGES/messages.po index 9689498..4e02285 100644 --- a/app/translations/en/LC_MESSAGES/messages.po +++ b/app/translations/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-10-29 01:56+0900\n" +"POT-Creation-Date: 2024-11-04 02:29+0900\n" "PO-Revision-Date: 2017-04-14 15:38+0800\n" "Last-Translator: FULL NAME \n" "Language: en_US\n" diff --git a/app/translations/zh/LC_MESSAGES/messages.po b/app/translations/zh/LC_MESSAGES/messages.po index 25a1cf9..1798241 100644 --- a/app/translations/zh/LC_MESSAGES/messages.po +++ b/app/translations/zh/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-10-29 01:56+0900\n" +"POT-Creation-Date: 2024-11-04 02:29+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: zh\n"