/* ============================================================================= * 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_Title: ["복사해서 만들기", "Copy to edit"], Copy_Name: ["새 이름", "New name"], Copy_Owner: ["소유", "Owner"], Copy_Site: ["현장", "Site"], Copy_Shared: ["공용", "Shared"], Copy_Aliases: ["부르는 표·로직", "Tables & logics used"], Copy_Alias_Swap: ["표 바꾸기", "Change table"], Copy_Alias_Ref: ["그대로 부르기", "Keep reference"], Copy_Alias_Fork: ["같이 복사하기", "Copy along"], Copy_Alias_Forked: ["복사됨", "Copied"], Copy_Lines: ["식 줄 — 고치거나 더함", "Formula lines — edit or add"], Copy_AddExtra: ["덧줄 추가", "Add extra line"], Copy_ExtraName: ["새 덧줄", "New extra line"], Copy_Save: ["저장(자체 로직)", "Save as mine"], Copy_Cancel: ["취소", "Cancel"], Copy_Saved: ["자체 로직으로 저장함", "Saved as your own logic"], Copy_PickTitle: ["바꿀 표 찾기", "Find a table"], Copy_PickSearch: ["표 이름·키로 찾기", "Search by table name or key"], Copy_PickNone: ["찾는 표가 없음", "No matching tables"], } 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]; }