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:
@@ -14,6 +14,7 @@
|
||||
|
||||
{% block content %}
|
||||
<section class="mys mys-compact">
|
||||
{% include "malaysia/_i18n.html" %}
|
||||
{% set active_tab = 'move' %}
|
||||
{% include "malaysia/_nav.html" %}
|
||||
|
||||
@@ -53,7 +54,7 @@
|
||||
{% for it in individual_items %}
|
||||
<tr>
|
||||
<td class="ccol">{{ it.item_code }}</td>
|
||||
<td class="nm">{{ it.item_name }}</td>
|
||||
<td class="nm" data-en="{{ it.item_name }}" data-ko="{{ ko_names.get(it.item_code, it.item_name) }}">{{ it.item_name }}</td>
|
||||
<td class="qcol"><input class="erp-input" type="number" name="qty_{{ it.item_code }}" placeholder="—" /></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -72,7 +73,7 @@
|
||||
{% for it in set_items %}
|
||||
<tr>
|
||||
<td class="ccol">{{ it.item_code }}</td>
|
||||
<td class="nm">{{ it.item_name }}</td>
|
||||
<td class="nm" data-en="{{ it.item_name }}" data-ko="{{ ko_names.get(it.item_code, it.item_name) }}">{{ it.item_name }}</td>
|
||||
<td class="qcol"><input class="erp-input" type="number" min="0" name="qty_{{ it.item_code }}" placeholder="—" /></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -86,7 +87,7 @@
|
||||
<!-- 이동 이력 -->
|
||||
<div class="erp-card" style="margin-top:16px;">
|
||||
<div class="cpg-card-head" style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;">
|
||||
<h2>이동 이력{% if filter_date %} · {{ filter_date }}{% endif %}</h2>
|
||||
<h2><span class="i18n">이동 이력</span>{% if filter_date %} · {{ filter_date }}{% endif %}</h2>
|
||||
<span style="display:flex;gap:6px;align-items:center;flex-wrap:wrap;">
|
||||
<form method="get" style="display:flex;gap:6px;align-items:center;">
|
||||
<input type="hidden" name="wh" value="{{ selected_wh }}" />
|
||||
|
||||
Reference in New Issue
Block a user