generated from mirrors/plugin-sample-vite-svelte
Compare commits
2 commits
d2ae1f3fe7
...
f4f9e31419
| Author | SHA1 | Date | |
|---|---|---|---|
| f4f9e31419 | |||
| 218db1a04d |
4 changed files with 9 additions and 8 deletions
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
This plugin adds a fully featured grammar and spell checker for SiYuan, powered by [LanguageTool](https://languagetool.org/).
|
This plugin adds a fully featured grammar and spell checker for SiYuan, powered by [LanguageTool](https://languagetool.org/).
|
||||||
|
|
||||||
|
▶️ [LiuYun thread](https://liuyun.io/article/1756302314285)
|
||||||
|
|
||||||
## 📃 Usage instructions
|
## 📃 Usage instructions
|
||||||
1. Install the plugin from the SiYuan plugin store and enable it
|
1. Install the plugin from the SiYuan plugin store and enable it
|
||||||
2. (Optional) Visit the plugin settings to configure it for your needs
|
2. (Optional) Visit the plugin settings to configure it for your needs
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "syspell",
|
"name": "syspell",
|
||||||
"version": "0.2.1",
|
"version": "0.3.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Include a whiteboard for freehand drawing anywhere in your documents.",
|
"description": "This SiYuan plugin adds a fully featured grammar and spell checker, powered by LanguageTool.",
|
||||||
"repository": "https://git.massive.box/massivebox/siyuan-jsdraw-plugin",
|
"repository": "https://git.massive.box/massivebox/syspell",
|
||||||
"homepage": "https://git.massive.box/massivebox/siyuan-jsdraw-plugin",
|
"homepage": "https://git.massive.box/massivebox/syspell",
|
||||||
"author": "massivebox",
|
"author": "massivebox",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "syspell",
|
"name": "syspell",
|
||||||
"author": "massivebox",
|
"author": "massivebox",
|
||||||
"url": "https://git.massive.box/massivebox/syspell",
|
"url": "https://git.massive.box/massivebox/syspell",
|
||||||
"version": "0.2.1",
|
"version": "0.3.0",
|
||||||
"minAppVersion": "3.0.12",
|
"minAppVersion": "3.0.12",
|
||||||
"backends": [
|
"backends": [
|
||||||
"windows",
|
"windows",
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,8 @@ export class LanguageTool implements SpellChecker {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getLanguages(): Promise<Language[]> {
|
public async getLanguages(): Promise<Language[]> {
|
||||||
const res = await fetch(this.settings.server + 'v2/languages', {method: 'GET'});
|
return this.languages
|
||||||
return await res.json();
|
|
||||||
}
|
}
|
||||||
|
private languages: Language[] = [{"name":"German","code":"de","longCode":"de"},{"name":"German (Germany)","code":"de","longCode":"de-DE"},{"name":"German (Austria)","code":"de","longCode":"de-AT"},{"name":"German (Swiss)","code":"de","longCode":"de-CH"},{"name":"English","code":"en","longCode":"en"},{"name":"English (US)","code":"en","longCode":"en-US"},{"name":"English (Australian)","code":"en","longCode":"en-AU"},{"name":"English (GB)","code":"en","longCode":"en-GB"},{"name":"English (Canadian)","code":"en","longCode":"en-CA"},{"name":"English (New Zealand)","code":"en","longCode":"en-NZ"},{"name":"English (South African)","code":"en","longCode":"en-ZA"},{"name":"Spanish","code":"es","longCode":"es"},{"name":"Spanish (voseo)","code":"es","longCode":"es-AR"},{"name":"French","code":"fr","longCode":"fr"},{"name":"French (Canada)","code":"fr","longCode":"fr-CA"},{"name":"French (Switzerland)","code":"fr","longCode":"fr-CH"},{"name":"French (Belgium)","code":"fr","longCode":"fr-BE"},{"name":"Dutch","code":"nl","longCode":"nl"},{"name":"Dutch (Belgium)","code":"nl","longCode":"nl-BE"},{"name":"Portuguese (Angola preAO)","code":"pt","longCode":"pt-AO"},{"name":"Portuguese (Brazil)","code":"pt","longCode":"pt-BR"},{"name":"Portuguese (Moçambique preAO)","code":"pt","longCode":"pt-MZ"},{"name":"Portuguese (Portugal)","code":"pt","longCode":"pt-PT"},{"name":"Portuguese","code":"pt","longCode":"pt"},{"name":"Arabic","code":"ar","longCode":"ar"},{"name":"Asturian","code":"ast","longCode":"ast-ES"},{"name":"Belarusian","code":"be","longCode":"be-BY"},{"name":"Breton","code":"br","longCode":"br-FR"},{"name":"Catalan","code":"ca","longCode":"ca-ES"},{"name":"Catalan (Valencian)","code":"ca","longCode":"ca-ES-valencia"},{"name":"Catalan (Balearic)","code":"ca","longCode":"ca-ES-balear"},{"name":"Danish","code":"da","longCode":"da-DK"},{"name":"Simple German","code":"de-DE-x-simple-language","longCode":"de-DE-x-simple-language"},{"name":"Greek","code":"el","longCode":"el-GR"},{"name":"Esperanto","code":"eo","longCode":"eo"},{"name":"Persian","code":"fa","longCode":"fa"},{"name":"Irish","code":"ga","longCode":"ga-IE"},{"name":"Galician","code":"gl","longCode":"gl-ES"},{"name":"Italian","code":"it","longCode":"it"},{"name":"Japanese","code":"ja","longCode":"ja-JP"},{"name":"Khmer","code":"km","longCode":"km-KH"},{"name":"Polish","code":"pl","longCode":"pl-PL"},{"name":"Romanian","code":"ro","longCode":"ro-RO"},{"name":"Russian","code":"ru","longCode":"ru-RU"},{"name":"Slovak","code":"sk","longCode":"sk-SK"},{"name":"Slovenian","code":"sl","longCode":"sl-SI"},{"name":"Swedish","code":"sv","longCode":"sv"},{"name":"Tamil","code":"ta","longCode":"ta-IN"},{"name":"Tagalog","code":"tl","longCode":"tl-PH"},{"name":"Ukrainian","code":"uk","longCode":"uk-UA"},{"name":"Chinese","code":"zh","longCode":"zh-CN"},{"name":"Crimean Tatar","code":"crh","longCode":"crh-UA"},{"name":"Norwegian (Bokmål)","code":"nb","longCode":"nb"},{"name":"Norwegian (Bokmål)","code":"no","longCode":"no"},{"name":"Dutch","code":"nl","longCode":"nl-NL"},{"name":"Simple German","code":"de-DE-x-simple-language","longCode":"de-DE-x-simple-language-DE"},{"name":"Spanish","code":"es","longCode":"es-ES"},{"name":"Italian","code":"it","longCode":"it-IT"},{"name":"Persian","code":"fa","longCode":"fa-IR"},{"name":"Swedish","code":"sv","longCode":"sv-SE"},{"name":"German","code":"de","longCode":"de-LU"},{"name":"French","code":"fr","longCode":"fr-FR"}]
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue