feat(malaysia): 전 화면 한글/영문 실시간 토글

- static/malaysia.js: KO_EN 사전 + 토글(localStorage 기억, 새로고침 없이 즉시)
- _i18n.html 공용 include(ENG/한글 버튼 + 스크립트), 전 화면 상단 삽입
- UI 고정 문구는 사전 치환(제목/헤더/버튼/라벨/배지/옵션/안내)
- 상품/콤보명은 data-en(영문, malaysia_items)·data-ko(itemcode_db 한글) 동시 렌더
- _base_ctx 에 ko_names(itemcode_db name_map) 주입

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 18:14:42 +09:00
parent b312884ddc
commit 3139e213a7
7 changed files with 153 additions and 11 deletions
+3
View File
@@ -121,6 +121,8 @@ def _base_ctx(request: Request, user: dict[str, Any], st: Any, *, wh: str) -> di
from app.main import build_erp_nav # noqa: WPS433
from app.store import is_admin # noqa: WPS433
reader = _reader(request)
ko_names = reader.name_map() if reader else {}
return {
"user": user,
"is_admin": is_admin(user),
@@ -128,6 +130,7 @@ def _base_ctx(request: Request, user: dict[str, Any], st: Any, *, wh: str) -> di
"nav_items": build_erp_nav(user, active="malaysia"),
"warehouses": st.list_warehouses(),
"selected_wh": wh,
"ko_names": ko_names,
}