refactor(i18n): move translations to JSON files under app/locales, dynamic language switch

This commit is contained in:
earthjasonlin committed 2026-07-07 09:46:50 +08:00
1 parent 969d8a1b18
commit ca9b3cc8dc
7 files changed
+565 -285

No files matched your search

+3
View File
@@ -73,6 +73,9 @@ def _translate_filter(key: str, lang: str = "zh") -> str:
templates.env.filters["t"] = _translate_filter
from app.i18n import get_languages as _get_languages
templates.env.globals["available_languages"] = _get_languages()
def _redirect(url: str) -> RedirectResponse:
return RedirectResponse(url, status_code=303)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.