- [로직 복사/생성] 누름 = 기본정보 창(있는 askBasicInfo · 원본 값 채움) → /logic/copy 로 원본 문서를 새 자체 GX 문서로 복제 → 그 기초를 줄 쌓기로 엶
- 걷음: 화면 LogicLab_Copy.ts · Logic_Calc.ts(부르는 곳 = 서로뿐) · API fetchLogicFormula · saveLogicFormula · previewLogicFormula · 꼴 셋 · 글 키 · CSS m01copy (서버 길 /logic/formula · save · preview 는 앞 auto 커밋 cce57c298 에서 걷음 · openapi 뜻한 셋만 빠짐)
- 시험: test_modal_top_and_add_word 복사 시트 창 줄 뺌(걷은 파일 · CSS 의 글자 대조 줄)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.7 KiB
TypeScript
41 lines
1.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_Done: ["복사해서 새 자체 로직을 만듦", "Copied to a new own logic"],
|
|
} 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];
|
|
}
|