메뉴관리 다국어 중간 커밋

This commit is contained in:
kjs
2025-08-25 17:22:20 +09:00
parent 0e89393a14
commit 307faba089
9 changed files with 485 additions and 365 deletions
+3 -3
View File
@@ -59,10 +59,10 @@ apiClient.interceptors.request.use(
console.warn("⚠️ 토큰이 없습니다.");
}
// 언어 정보를 쿼리 파라미터에 추가
// 언어 정보를 쿼리 파라미터에 추가 (GET 요청 시에만)
if (config.method?.toUpperCase() === "GET") {
// 전역 언어 상태에서 현재 언어 가져오기
const currentLang = typeof window !== "undefined" ? (window as any).__GLOBAL_USER_LANG || "ko" : "ko";
// 전역 언어 상태에서 현재 언어 가져오기 (DB 값 그대로 사용)
const currentLang = typeof window !== "undefined" ? (window as any).__GLOBAL_USER_LANG || "KR" : "KR";
console.log("🌐 API 요청 시 언어 정보:", currentLang);
if (config.params) {