This commit is contained in:
kjs
2025-11-06 14:46:15 +09:00
parent 832e80cd7f
commit 786576bb76
4 changed files with 172 additions and 80 deletions

View File

@@ -22,7 +22,7 @@ import {
AlertDialogTitle,
} from "@/components/ui/alert-dialog";
import { useMenu } from "@/contexts/MenuContext";
import { useMenuManagementText, setTranslationCache } from "@/lib/utils/multilang";
import { useMenuManagementText, setTranslationCache, getMenuTextSync } from "@/lib/utils/multilang";
import { useMultiLang } from "@/hooks/useMultiLang";
import { apiClient } from "@/lib/api/client";
@@ -545,9 +545,9 @@ export const MenuManagement: React.FC = () => {
// uiTexts에서 번역 텍스트 찾기
let text = uiTexts[key];
// uiTexts에 없으면 fallback 또는 키 사용
// uiTexts에 없으면 getMenuTextSync로 기본 한글 텍스트 가져오기
if (!text) {
text = fallback || key;
text = getMenuTextSync(key, userLang) || fallback || key;
}
// 파라미터 치환