🌐 Add Slovak (sk_SK) language support https://github.com/siyuan-note/siyuan/pull/17120

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-02 17:40:04 +08:00
parent 9ab6a7a9ab
commit b25d867f6a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 103 additions and 277 deletions

View file

@ -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;