refactor(861-2): 영어 글 걷기 ⓔ — 보안 약관 · 시트 · 측면 패널 · 단위 고르기 글 표 짝 → 한국어 글 하나

- A09 보안 약관 3 · ui_template 시트 글 15 · 측면 패널 1 · 단위 고르기 5 짝 → 문자열 하나 · 읽는 곳 `[currentLanguageIndex]` 걷음
- B05 ~ B09 · common_util 에는 남은 [한, 영] 짝 없음(남은 2-글 짝은 키 · 값 짝이라 대상 아님) — B08 파일 손 안 댐
- 표 값 대조 24 같음 · typecheck 0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 09:32:03 +09:00
co-authored by Claude Opus 5.5
parent 04a6c06d97
commit 8bb0c8d264
5 changed files with 31 additions and 48 deletions
+3 -10
View File
@@ -1,16 +1,9 @@
export const SECURITY_TERMS_VERSION = "1.0";
export const securityTerms = {
terms: [
terms:
"Aislo는 임도 설계 및 견적 자동화 기능을 제공하며, 계정의 무단 공유와 서비스 방해 행위를 금지합니다.",
"Aislo provides forest-road design and estimation automation. Account sharing and service disruption are prohibited.",
],
privacy: [
privacy:
"계정, 회사, User-Agent 및 서비스 활동 기록을 인증·보안·운영 목적으로 처리합니다. IP 주소는 수집하지 않습니다.",
"Account, company, user-agent, and activity records are processed for authentication, security, and operations. IP addresses are not collected.",
],
security: [
"세션은 Secure HttpOnly 쿠키로 보호되며, 12시간 또는 4시간 비활동 후 만료됩니다.",
"Sessions use Secure HttpOnly cookies and expire after 12 hours or 4 hours of inactivity.",
],
security: "세션은 Secure HttpOnly 쿠키로 보호되며, 12시간 또는 4시간 비활동 후 만료됩니다.",
} as const;
+2 -2
View File
@@ -1,5 +1,5 @@
import { createCard } from "@ui/ui_template_elements";
import { currentLanguageIndex, ui_locales } from "@ui/ui_template_locale";
import { ui_locales } from "@ui/ui_template_locale";
import { SECURITY_TERMS_VERSION, securityTerms } from "./A09_Security_Terms";
import "./A09_Security_UI_Style.css";
@@ -21,7 +21,7 @@ export function renderA09Security(root: HTMLElement): void {
const heading = document.createElement("h2");
heading.textContent = L(headingKey);
const paragraph = document.createElement("p");
paragraph.textContent = body[currentLanguageIndex];
paragraph.textContent = body;
section.append(heading, paragraph);
blocks.push(section);
}
+17 -25
View File
@@ -1,34 +1,26 @@
/* =============================================================================
* ui_template_sheet_text.ts
* 표 부품 글자 — [한국어, 영어]
* 표 부품 글자
* ========================================================================== */
import { currentLanguageIndex } from "@ui/ui_template_locale";
const TEXT = {
Col_Add: ["열 추가", "Add column"],
Col_Delete: ["열 삭제", "Delete column"],
Col_New: ["새 열", "New column"],
Row_Unit: ["단위", "Unit"],
Row_Unit_Price: ["일위대가", "Unit price"],
Row_LaborSum: ["일위대가 금액", "Unit price total"],
Row_Drawing: ["도면", "Drawing"],
Row_Area: ["면적산출", "Area"],
Add_Suffix: [" 추가", " +"],
New_Prefix: ["새 ", "New "],
Drawing_None: ["없음", "None"],
Page: ["쪽", "page"],
Head_Hint: [
"/ 로 이으면 층으로 나뉨 (예 관공/Φ800/관매설) · 적게 쓰면 남은 층은 위 칸과 합침",
"Use / to split into layers (e.g. A/B/C) · fewer parts merge the rest with the cell above",
],
Error: ["#오류", "#ERR"],
Hint: [
"칸을 누르고 바로 치거나 Enter · F2 로 고침 · = 로 시작하면 그 칸만 식 · 화살표 · Tab 으로 옮김 · Delete 로 비움",
"Type or press Enter / F2 to edit · start with = for a cell formula · arrows / Tab to move · Delete to clear",
],
Col_Add: "열 추가",
Col_Delete: "열 삭제",
Col_New: "새 열",
Row_Unit: "단위",
Row_Unit_Price: "일위대가",
Row_LaborSum: "일위대가 금액",
Row_Drawing: "도면",
Row_Area: "면적산출",
Add_Suffix: " 추가",
New_Prefix: "새 ",
Drawing_None: "없음",
Page: "쪽",
Head_Hint: "/ 로 이으면 층으로 나뉨 (예 관공/Φ800/관매설) · 적게 쓰면 남은 층은 위 칸과 합침",
Error: "#오류",
Hint: "칸을 누르고 바로 치거나 Enter · F2 로 고침 · = 로 시작하면 그 칸만 식 · 화살표 · Tab 으로 옮김 · Delete 로 비움",
} as const;
export function st(key: keyof typeof TEXT): string {
return TEXT[key][currentLanguageIndex] ?? TEXT[key][0];
return TEXT[key];
}
+3 -4
View File
@@ -13,17 +13,16 @@
import { readByKey, writeByKey } from "../A00_Common/b_page_state";
import { el } from "./ui_template_elements";
import { currentLanguageIndex } from "./ui_template_locale";
import { createWorkflowPanelHandle } from "./ui_template_overlay";
import { listenWhileAlive } from "./ui_template_window_watch";
import "./ui_template_side_panels.css";
const TEXT = {
Grip: ["패널 너비 — 끌거나 화살표 키", "Panel width — drag or arrow keys"],
Grip: "패널 너비 — 끌거나 화살표 키",
} as const;
const ts = (key: keyof typeof TEXT, v: string): string =>
TEXT[key][currentLanguageIndex === 1 ? 1 : 0].replace("{v}", v);
const ts = (key: keyof typeof TEXT, v: string): string => TEXT[key].replace("{v}", v);
export interface SidePanelDef {
id: string;
+6 -7
View File
@@ -6,7 +6,6 @@
* 글 [한, 영] 짝은 아래 TEXT
* ========================================================================== */
import { currentLanguageIndex } from "@ui/ui_template_locale";
import { createButton, el } from "@ui/ui_template_elements";
import type { UiSize } from "@ui/ui_template_button";
import { API_BASE_URL } from "@config/config_frontend";
@@ -15,11 +14,11 @@ import { createEmpty } from "@ui/ui_template_empty";
import "@ui/ui_template_list_row.css";
const TEXT = {
None: ["없음", "none"],
Filter: ["단위를 쳐서 찾음", "Type to filter units"],
Empty: ["맞는 단위가 없음 — 목록에서만 고름", "No match — pick from the list only"],
Free: ["「{u}」 그대로 씀", "Use “{u}”"],
Pick: ["단위 고르기", "Pick a unit"],
None: "없음",
Filter: "단위를 쳐서 찾음",
Empty: "맞는 단위가 없음 — 목록에서만 고름",
Free: "「{u}」 그대로 씀",
Pick: "단위 고르기",
} as const;
/** 단위 표준 표 */
@@ -34,7 +33,7 @@ async function cfStandards(): Promise<CfStandards> {
return (await response.json()) as CfStandards;
}
const tu = (key: keyof typeof TEXT): string => TEXT[key][currentLanguageIndex === 1 ? 1 : 0];
const tu = (key: keyof typeof TEXT): string => TEXT[key];
/** 「없음」 을 뜻하는 단위 글 */
export const NO_UNIT = "-";