feat(i18n): 收口多语言功能业务代码

This commit is contained in:
tianqijiuyun-latiao
2026-06-22 15:12:42 +08:00
parent eba689754c
commit f282da3bcb
433 changed files with 39626 additions and 6973 deletions

View File

@@ -231,7 +231,7 @@ export const saveSavedQueryToBackend = async (
): Promise<SavedQuery> => {
const sanitized = sanitizeSavedQuery(query, 0);
if (!sanitized) {
throw new Error('保存查询缺少 SQL、连接或数据库上下文');
throw new Error(translate('saved_query.error.missing_context'));
}
if (typeof backend?.SaveQuery !== 'function') {
return sanitized;