/* ============================================================================= * M01_MasterData_UI_LogicLab_Text.ts * 「단가산출 로직」 컨테이너 글자 — [한국어, 영어] * ========================================================================== */ import { currentLanguageIndex } from "@ui/ui_template_locale"; const TEXT = { Info_Title: ["기본정보", "Basic info"], New: ["신규 로직", "New logic"], Info_Base: [ "기본 로직 — 식은 수식 탭에서 고침(시스템 관리자) · 여기서는 비고만", "Base logic — edit formulas in the Equation tab (system admin) · only the note here", ], Info_ReadOnly: [ "기본 로직 — 보기만 · 비고만 고칠 수 있음", "Base logic — view only · only the note can be edited", ], Info_Own: [ "자체 로직 — 이름 · 단위 · 출처 · 비고는 여기서 · 식은 수식에서 고침", "Own logic — edit the info here · formulas in the Equation view", ], View_Equation: ["수식", "Equation"], Subtotal: ["소계", "Subtotal"], Extra: ["덧줄", "Extra"], Col_Name: ["이름", "Name"], Col_Unit: ["단위", "Unit"], Modal_Close: ["닫기", "Close"], Pill_Back: ["← 단가산출 기초로 돌아가기", "← Back to unit-price logic"], Copy_Open: ["로직 복사/생성", "Copy / create logic"], Copy_NeedOpen: ["먼저 로직을 고르세요", "Pick a logic first"], Copy_Done: ["복사해서 새 자체 로직을 만듦", "Copied to a new own logic"], } as const satisfies Record; export type LabTextKey = keyof typeof TEXT; export function tl(key: LabTextKey): string { const entry = TEXT[key]; return entry[currentLanguageIndex as 0 | 1] ?? entry[0]; }