Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/16524

Vanessa84498da8459f
diff --git a/app/src/config/editor.ts b/app/src/config/editor.ts
index b1dff664d9..5be49b812b 100644
--- a/app/src/config/editor.ts
+++ b/app/src/config/editor.ts
@@ -15,6 +15,12 @@ import {Menu} from "../plugin/Menu";
export const editor = {
element: undefined as Element,
genHTML: () => {
+ let spellcheckTip = "";
+ /// #if !BROWSER
+ spellcheckTip = window.siyuan.languages.spellcheckTip1;
+ /// #else
+ spellcheckTip = window.siyuan.languages.spellcheckTip;
+ /// #endif
return `<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.fullWidth}
@@ -104,7 +110,7 @@ export const editor = {
<label class="fn__flex">
<div class="fn__flex-1">
${window.siyuan.languages.spellcheck}
- <div class="b3-label__text">${window.siyuan.languages.spellcheckTip}</div>
+ <div class="b3-label__text">${spellcheckTip}</div>
</div>
<span class="fn__space"></span>
<input class="b3-switch fn__flex-center" id="spellcheck" type="checkbox"${window.siyuan.config.editor.spellcheck ? " checked" : ""}/>