Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization translations into Hebrew, German, Polish and Russian #12683

Merged
merged 23 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,558 changes: 1,558 additions & 0 deletions app/appearance/langs/de_DE.json

Large diffs are not rendered by default.

1,558 changes: 1,558 additions & 0 deletions app/appearance/langs/he_IL.json

Large diffs are not rendered by default.

1,558 changes: 1,558 additions & 0 deletions app/appearance/langs/pl_PL.json

Large diffs are not rendered by default.

1,558 changes: 1,558 additions & 0 deletions app/appearance/langs/ru_RU.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions app/electron/init.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ <h2>思源笔记</h2>
<option value="zh_CHT">繁體中文</option>
<option value="ja_JP">日本語</option>
<option value="it_IT">Italiano</option>
<option value="de_DE">Deutsch</option>
<option value="he_IL">עברית</option>
<option value="ru_RU">Русский</option>
<option value="pl_PL">Polski</option>
</select>
</label>
<label class="b3-label">
Expand Down
4 changes: 4 additions & 0 deletions app/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ export abstract class Constants {
es_ES: "20210808180117-6v0mkxr",
ja_JP: "20240530133126-axarxgx",
it_IT: "20210808180117-6v0mkxr",
de_DE: "20210808180117-6v0mkxr",
he_IL: "20210808180117-6v0mkxr",
ru_RU: "20210808180117-6v0mkxr",
pl_PL: "20210808180117-6v0mkxr",
};
public static readonly QUICK_DECK_ID = "20230218211946-2kw8jgx";

Expand Down
4 changes: 2 additions & 2 deletions app/src/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ declare namespace Config {
* User interface language
* Same as {@link IAppearance.lang}
*/
export type TLang = "en_US" | "es_ES" | "fr_FR" | "zh_CHT" | "zh_CN" | "ja_JP" | "it_IT";
export type TLang = "en_US" | "es_ES" | "fr_FR" | "zh_CHT" | "zh_CN" | "ja_JP" | "it_IT" | "de_DE" | "he_IL" | "ru_RU" | "pl_PL";

/**
* SiYuan bazaar related configuration
Expand Down Expand Up @@ -2284,4 +2284,4 @@ declare namespace Config {
*/
export type TUILayoutType = "normal" | "center" | "top" | "bottom" | "left" | "right";

}
}
2 changes: 1 addition & 1 deletion kernel/util/working.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func Boot() {
readOnly := flag.String("readonly", "false", "read-only mode")
accessAuthCode := flag.String("accessAuthCode", "", "access auth code")
ssl := flag.Bool("ssl", false, "for https and wss")
lang := flag.String("lang", "", "zh_CN/zh_CHT/en_US/fr_FR/es_ES/ja_JP/it_IT")
lang := flag.String("lang", "", "zh_CN/zh_CHT/en_US/fr_FR/es_ES/ja_JP/it_IT/de_DE/he_IL/ru_RU/pl_PL")
mode := flag.String("mode", "prod", "dev/prod")
flag.Parse()

Expand Down