Add i18n framework with English and Chinese support

Introduce an embedded-locale i18n package exposing a T() template
function. UI strings across all templates and catalog category/item
names are now translatable via locale JSON files, selectable through
the new server.language config option. Falls back to English when a
locale is missing or fails to load.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
lucioandClaude Opus 4.6 committed 2026-05-21 21:30:56 -07:00
1 parent 5e82e32491
commit ff1d1fc490
16 files changed
+1161 -318

No files matched your search

+3
View File
@@ -5,6 +5,9 @@ port = 8889
base_url = "http://localhost:8889"
read_timeout = "5s"
write_timeout = "10s"
# Language for the UI. Supported: "en" (English), "zh" (Chinese).
# Add new languages by creating a JSON file in internal/i18n/locales/.
language = "en"
[admin]
username = "admin"