Files
Aislo/M01_MasterData/M01_MasterData_UI_LogicLab_Text.ts
T
eomsangdonandClaude Opus 5.5 9c78072971 refactor(855-E 2-E1): M01 화면 옛 시험 계산 · 옛 상세 몸 부품 걷음
- 지움(부르는 곳 0 — 저장소 TS · cjs · py · html 다시 찾음): UI_Logic_Drive.ts(driveRun · autoFill) · UI_Logic_CalcPick.ts · UI_LogicLab_Pill.ts · .css
- Logic_Api: runCalc · runText · fetchAuto · searchPrice · CalcAnswer · TextAnswer · TextLine · TextPiece 걷음
- LogicLab_Modal: 옛 재료 · 표 · 참조 · 글 모달 걷음 — 로직 열기 · headWord 만 남김(−550 줄)
- Logic_Note.explain · Side.hasMasterJump · 죽은 CSS 다섯 · 글 키 29(옛 시험 계산 · 모달 · 알약) 걷음
- 시험: 지운 파일 글자만 보던 test_750_2(빈 파일 됨) · test_799_2 구동 시험 · test_734 알약 · 풍선 시험 지움 · helper_717_1 · test_717_1 의 /calc · /text · /logic/auto 화면 길 줄 걷음
- typecheck 0 · 관련 50 통과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 03:12:11 +09:00

59 lines
2.7 KiB
TypeScript

/* =============================================================================
* 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<string, readonly [string, string]>;
export type LabTextKey = keyof typeof TEXT;
export function tl(key: LabTextKey): string {
const entry = TEXT[key];
return entry[currentLanguageIndex as 0 | 1] ?? entry[0];
}