Fix: AI summary language synchronization and bug documentation

This commit is contained in:
leeyj
2026-04-18 02:39:57 +09:00
parent cf6ab74cec
commit fc00b22b42
4 changed files with 46 additions and 10 deletions
+4 -1
View File
@@ -2,6 +2,8 @@
* 백엔드 API와의 통신을 관리하는 모듈
*/
import { I18nManager } from './utils/I18nManager.js';
export const API = {
async request(url, options = {}) {
const res = await fetch(url, options);
@@ -61,7 +63,8 @@ export const API = {
},
async triggerAI(id) {
return await this.request(`/api/memos/${id}/analyze`, { method: 'POST' });
const lang = I18nManager.currentLang || 'ko';
return await this.request(`/api/memos/${id}/analyze?lang=${lang}`, { method: 'POST' });
},
async fetchAssets() {