커밋
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
// 파라미터 치환
|
||||
|
||||
Reference in New Issue
Block a user