Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6KXAabDTenEU7hrDQmCKY
44 lines
2.1 KiB
TypeScript
44 lines
2.1 KiB
TypeScript
/* =============================================================================
|
|
* M02_MasterTemplete_Options_Text.ts
|
|
* 좌측 「구조물 옵션 보이기」 줄 · 상세 화면 글자 — [한국어, 영어]
|
|
* ========================================================================== */
|
|
|
|
import { currentLanguageIndex } from "@ui/ui_template_locale";
|
|
|
|
const TEXT = {
|
|
Title: ["구조물 옵션 보이기", "Structure options shown"],
|
|
Row: ["종류마다 보일 옵션 고르기", "Choose options per type"],
|
|
Screen: ["구조물 옵션 보이기", "Structure options shown"],
|
|
Note: [
|
|
"체크한 옵션만 B05 · B06 구조물 폼에 보임 — 옵션 정의 · 이미 넣은 값은 그대로 · 처음은 모두 보임",
|
|
"Only checked options appear in the B05 · B06 forms — definitions and stored values stay",
|
|
],
|
|
Group: ["{value}군", "Group {value}"],
|
|
Hidden: ["숨김 {value}", "{value} hidden"],
|
|
Off: ["안 쓰는 종류", "Not offered"],
|
|
NoOption: ["옵션 없음", "No options"],
|
|
Pick: ["왼쪽에서 구조물 종류를 고름", "Pick a structure type on the left"],
|
|
Detail: ["B06 전용", "B06 only"],
|
|
Required: ["필수", "Required"],
|
|
RequiredTip: [
|
|
"필수 옵션 — 숨기면 폼에 안 나오고 필수로도 안 침(저장이 안 막힘)",
|
|
"Required — when hidden it is not shown and not enforced",
|
|
],
|
|
Save: ["저장", "Save"],
|
|
ShowAll: ["모두 보임", "Show all"],
|
|
Saved: ["저장함", "Saved"],
|
|
Stale: [
|
|
"그 사이 옵션 표시가 바뀜 — 새로 받았으니 다시 고쳐 주세요",
|
|
"Changed meanwhile — reloaded, please edit again",
|
|
],
|
|
Load_Failed: ["옵션 표시를 못 받음 — {value}", "Could not load option display — {value}"],
|
|
Failed: ["옵션 표시를 못 저장함 — {value}", "Could not save option display — {value}"],
|
|
} as const satisfies Record<string, readonly [string, string]>;
|
|
|
|
export type OptionsTextKey = keyof typeof TEXT;
|
|
|
|
export function to(key: OptionsTextKey, value = ""): string {
|
|
const entry = TEXT[key];
|
|
return (entry[currentLanguageIndex as 0 | 1] ?? entry[0]).replace("{value}", value);
|
|
}
|