feat(i18n): add English and Simplified Chinese

This commit is contained in:
eezd committed 2026-10-26 22:04:33 +08:00
1 parent 38c4c8b781
commit 1e9e0678ee
149 files changed
+5356 -1144

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
import { t as translate } from '@@/i18n/runtime'
/* eslint-disable no-control-regex -- 粘贴链接必须识别并移除协议中的控制字符。 */
import TurndownService from 'turndown'
@@ -14,7 +15,7 @@ export async function htmlToMarkdown(html: string, importImage: (url: string) =>
try {
node.setAttribute(attribute, new URL(node.getAttribute(attribute)!, base).href)
} catch (error) {
onError(new Error('来源基址无效,已保留原链接', { cause: error }))
onError(new Error(translate('workspace.invalid_source_base_url_original_f0ec05'), { cause: error }))
}
}
}