From b25d867f6a4ea9e580a4305f3c960d48215e5490 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 2 Mar 2026 17:40:04 +0800 Subject: [PATCH] :globe_with_meridians: Add Slovak (sk_SK) language support https://github.com/siyuan-note/siyuan/pull/17120 Signed-off-by: Daniel <845765@qq.com> --- app/electron/main.js | 1 + .../20200924100717-yzwzn64.sy | 49 +++--- .../20200828105441-r76vmu5.sy | 156 ++++-------------- .../20211226122358-hctqcn5.sy | 156 ++++-------------- .../20240530101000-xq26o73.sy | 16 +- app/scripts/afterPack.js | 2 +- 6 files changed, 103 insertions(+), 277 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index 0a01c4ba0..13fd50813 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -191,6 +191,7 @@ const resolveAppLanguage = (languageTags) => { "pl": "pl_PL", "pt": "pt_BR", "ru": "ru_RU", + "sk": "sk_SK", "tr": "tr_TR" }; diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100717-yzwzn64.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100717-yzwzn64.sy index 71187dbe9..d1181843e 100644 --- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100717-yzwzn64.sy +++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100717-yzwzn64.sy @@ -6,7 +6,7 @@ "id": "20200924100717-yzwzn64", "title": "Kernel parameter", "type": "doc", - "updated": "20221025095725" + "updated": "20260302173748" }, "Children": [ { @@ -212,7 +212,7 @@ "HeadingLevel": 3, "Properties": { "id": "20220517144139-qeoe1f3", - "updated": "20220517144139" + "updated": "20260302173748" }, "Children": [ { @@ -227,7 +227,7 @@ "Type": "NodeParagraph", "Properties": { "id": "20220517144139-7q5hnts", - "updated": "20220517144139" + "updated": "20260302173748" }, "Children": [ { @@ -241,7 +241,7 @@ }, { "Type": "NodeText", - "Data": " will use Simplified Chinese to initialize the appearance language, the default is " + "Data": "​ will use Simplified Chinese to initialize the appearance language, the default is " }, { "Type": "NodeTextMark", @@ -250,7 +250,7 @@ }, { "Type": "NodeText", - "Data": ". Currently available values: " + "Data": "​. Currently available values: " }, { "Type": "NodeTextMark", @@ -259,7 +259,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -268,7 +268,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -277,7 +277,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -286,7 +286,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -295,7 +295,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -304,7 +304,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -313,7 +313,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -322,7 +322,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -331,7 +331,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -340,7 +340,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -349,7 +349,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -358,7 +358,16 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "code", + "TextMarkTextContent": "sk_SK" + }, + { + "Type": "NodeText", + "Data": "​, " }, { "Type": "NodeTextMark", @@ -367,7 +376,7 @@ }, { "Type": "NodeText", - "Data": ", " + "Data": "​, " }, { "Type": "NodeTextMark", @@ -376,7 +385,7 @@ }, { "Type": "NodeText", - "Data": " and " + "Data": "​ and " }, { "Type": "NodeTextMark", @@ -385,7 +394,7 @@ }, { "Type": "NodeText", - "Data": "." + "Data": "​." } ] }, diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200828105441-r76vmu5.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200828105441-r76vmu5.sy index 2e84d6813..26a88641c 100644 --- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200828105441-r76vmu5.sy +++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200828105441-r76vmu5.sy @@ -6,7 +6,7 @@ "id": "20200828105441-r76vmu5", "title": "内核参数", "type": "doc", - "updated": "20221025095729" + "updated": "20260302173621" }, "Children": [ { @@ -292,7 +292,7 @@ "HeadingLevel": 3, "Properties": { "id": "20220517143906-h2p1a5m", - "updated": "20220517143913" + "updated": "20260302173621" }, "Children": [ { @@ -317,270 +317,174 @@ "Type": "NodeParagraph", "Properties": { "id": "20220517143906-cd8h1g8", - "updated": "20220517144043" + "updated": "20260302173621" }, "Children": [ { "Type": "NodeText", - "Data": "使用 ", - "Properties": { - "id": "" - } + "Data": "使用 " }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "--lang=zh_CN" }, { "Type": "NodeText", - "Data": " 后将使用简体中文初始化外观语言,默认 ", - "Properties": { - "id": "" - } + "Data": "​ 后将使用简体中文初始化外观语言,默认 " }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "en_US" }, { "Type": "NodeText", - "Data": "。目前可选值:", - "Properties": { - "id": "" - } + "Data": "​。目前可选值:" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "ar_SA" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "de_DE" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "en_US" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "es_ES" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "fr_FR" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "he_IL" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "it_IT" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "ja_JP" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "ko_KR" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "pl_PL" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "pt_BR" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "ru_RU" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" + }, + { + "Type": "NodeTextMark", + "TextMarkType": "code", + "TextMarkTextContent": "sk_SK" + }, + { + "Type": "NodeText", + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "tr_TR" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "zh_CHT" }, { "Type": "NodeText", - "Data": " 和 ", - "Properties": { - "id": "" - } + "Data": "​ 和 " }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "zh_CN" }, { "Type": "NodeText", - "Data": "。", - "Properties": { - "id": "" - } + "Data": "​。" } ] }, diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122358-hctqcn5.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122358-hctqcn5.sy index b8b0207e8..af048c7c1 100644 --- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122358-hctqcn5.sy +++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122358-hctqcn5.sy @@ -6,7 +6,7 @@ "id": "20211226122358-hctqcn5", "title": "Kernel 參數", "type": "doc", - "updated": "20221025095721" + "updated": "20260302173650" }, "Children": [ { @@ -292,7 +292,7 @@ "HeadingLevel": 3, "Properties": { "id": "20220517144220-400hbxb", - "updated": "20220517144220" + "updated": "20260302173650" }, "Children": [ { @@ -317,270 +317,174 @@ "Type": "NodeParagraph", "Properties": { "id": "20220517144220-5dryt3i", - "updated": "20220517144233" + "updated": "20260302173650" }, "Children": [ { "Type": "NodeText", - "Data": "使用 ", - "Properties": { - "id": "" - } + "Data": "使用 " }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "--lang=zh_CN" }, { "Type": "NodeText", - "Data": " 後將使用簡體中文初始化外觀語言,預設 ", - "Properties": { - "id": "" - } + "Data": "​ 後將使用簡體中文初始化外觀語言,預設 " }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "en_US" }, { "Type": "NodeText", - "Data": "。目前可選值:", - "Properties": { - "id": "" - } + "Data": "​。目前可選值:" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "ar_SA" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "de_DE" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "en_US" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "es_ES" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "fr_FR" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "he_IL" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "it_IT" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "ja_JP" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "ko_KR" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "pl_PL" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "pt_BR" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "ru_RU" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" + }, + { + "Type": "NodeTextMark", + "TextMarkType": "code", + "TextMarkTextContent": "sk_SK" + }, + { + "Type": "NodeText", + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "tr_TR" }, { "Type": "NodeText", - "Data": "、", - "Properties": { - "id": "" - } + "Data": "​、" }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "zh_CHT" }, { "Type": "NodeText", - "Data": " 和 ", - "Properties": { - "id": "" - } + "Data": "​ 和 " }, { "Type": "NodeTextMark", - "Properties": { - "id": "" - }, "TextMarkType": "code", "TextMarkTextContent": "zh_CN" }, { "Type": "NodeText", - "Data": "。", - "Properties": { - "id": "" - } + "Data": "​。" } ] }, diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xq26o73.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xq26o73.sy index e2ad2e355..93eba1fa1 100644 --- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xq26o73.sy +++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xq26o73.sy @@ -7,7 +7,7 @@ "id": "20240530101000-xq26o73", "title": "カーネルパラメータ", "type": "doc", - "updated": "20240530101000" + "updated": "20260302173724" }, "Children": [ { @@ -249,7 +249,7 @@ "Properties": { "ID": "20240530101000-rje9q9t", "id": "20240530101000-pzmi4gj", - "updated": "20240530101000" + "updated": "20260302173724" }, "Children": [ { @@ -263,9 +263,8 @@ "ID": "20240530101000-bqisa84", "Type": "NodeParagraph", "Properties": { - "ID": "20240530101000-f48ihvt", "id": "20240530101000-bqisa84", - "updated": "20240530101000" + "updated": "20260302173724" }, "Children": [ { @@ -380,6 +379,15 @@ "Type": "NodeText", "Data": "​、" }, + { + "Type": "NodeTextMark", + "TextMarkType": "code", + "TextMarkTextContent": "sk_SK" + }, + { + "Type": "NodeText", + "Data": "​、" + }, { "Type": "NodeTextMark", "TextMarkType": "code", diff --git a/app/scripts/afterPack.js b/app/scripts/afterPack.js index 5c82ddda1..338c2a6be 100644 --- a/app/scripts/afterPack.js +++ b/app/scripts/afterPack.js @@ -8,7 +8,7 @@ module.exports = async function afterPack(context) { async function removeLanguagePacks(appOutDir, packager, platform) { // 支持的语言都要保留,否则影响开发者工具字体显示 - const wantedLanguages = ["ar_SA", "de_DE", "en_US", "es_ES", "fr_FR", "he_IL", "it_IT", "ja_JP", "ko_KR", "pl_PL", "pt_BR", "ru_RU", "tr_TR", "zh_CHT", "zh_CN"]; + const wantedLanguages = ["ar_SA", "de_DE", "en_US", "es_ES", "fr_FR", "he_IL", "it_IT", "ja_JP", "ko_KR", "pl_PL", "pt_BR", "ru_RU", "sk_SK", "tr_TR", "zh_CHT", "zh_CN"]; const keepPrefixes = new Set(wantedLanguages.map(lang => lang.substring(0, 2))); let resourcePath;