mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
Add Turkish language in configs
This commit is contained in:
parent
6ef83b42c7
commit
2ff0b2db4a
6 changed files with 1729 additions and 1 deletions
1709
app/appearance/langs/tr_TR.json
Normal file
1709
app/appearance/langs/tr_TR.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -215,6 +215,7 @@
|
||||||
<option value="ja_JP">日本語</option>
|
<option value="ja_JP">日本語</option>
|
||||||
<option value="pl_PL">Polski</option>
|
<option value="pl_PL">Polski</option>
|
||||||
<option value="ru_RU">Русский</option>
|
<option value="ru_RU">Русский</option>
|
||||||
|
<option value="tr_TR">Türkçe</option>
|
||||||
<option value="zh_CHT">繁體中文</option>
|
<option value="zh_CHT">繁體中文</option>
|
||||||
<option value="zh_CN">简体中文</option>
|
<option value="zh_CN">简体中文</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -265,6 +266,7 @@
|
||||||
<option value="ja_JP">日本語</option>
|
<option value="ja_JP">日本語</option>
|
||||||
<option value="pl_PL">Polski</option>
|
<option value="pl_PL">Polski</option>
|
||||||
<option value="ru_RU">Русский</option>
|
<option value="ru_RU">Русский</option>
|
||||||
|
<option value="tr_TR">Türkçe</option>
|
||||||
<option value="zh_CHT">繁體中文</option>
|
<option value="zh_CHT">繁體中文</option>
|
||||||
<option value="zh_CN">简体中文</option>
|
<option value="zh_CN">简体中文</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -310,6 +310,7 @@ export abstract class Constants {
|
||||||
pl_PL: "20210808180117-6v0mkxr",
|
pl_PL: "20210808180117-6v0mkxr",
|
||||||
pt_BR: "20210808180117-6v0mkxr",
|
pt_BR: "20210808180117-6v0mkxr",
|
||||||
ru_RU: "20210808180117-6v0mkxr",
|
ru_RU: "20210808180117-6v0mkxr",
|
||||||
|
tr_TR: "20210808180117-6v0mkxr",
|
||||||
zh_CHT: "20211226090932-5lcq56f",
|
zh_CHT: "20211226090932-5lcq56f",
|
||||||
zh_CN: "20210808180117-czj9bvb",
|
zh_CN: "20210808180117-czj9bvb",
|
||||||
};
|
};
|
||||||
|
|
|
||||||
1
app/src/types/config.d.ts
vendored
1
app/src/types/config.d.ts
vendored
|
|
@ -288,6 +288,7 @@ declare namespace Config {
|
||||||
| "pl_PL"
|
| "pl_PL"
|
||||||
| "pt_BR"
|
| "pt_BR"
|
||||||
| "ru_RU"
|
| "ru_RU"
|
||||||
|
| "tr_TR"
|
||||||
| "zh_CN"
|
| "zh_CN"
|
||||||
| "zh_CHT";
|
| "zh_CHT";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ type DisplayName struct {
|
||||||
PlPL string `json:"pl_PL"`
|
PlPL string `json:"pl_PL"`
|
||||||
PtBR string `json:"pt_BR"`
|
PtBR string `json:"pt_BR"`
|
||||||
RuRU string `json:"ru_RU"`
|
RuRU string `json:"ru_RU"`
|
||||||
|
TrTR string `json:"tr_TR"`
|
||||||
ZhCHT string `json:"zh_CHT"`
|
ZhCHT string `json:"zh_CHT"`
|
||||||
ZhCN string `json:"zh_CN"`
|
ZhCN string `json:"zh_CN"`
|
||||||
}
|
}
|
||||||
|
|
@ -70,6 +71,7 @@ type Description struct {
|
||||||
PlPL string `json:"pl_PL"`
|
PlPL string `json:"pl_PL"`
|
||||||
PtBR string `json:"pt_BR"`
|
PtBR string `json:"pt_BR"`
|
||||||
RuRU string `json:"ru_RU"`
|
RuRU string `json:"ru_RU"`
|
||||||
|
TrTR string `json:"tr_TR"`
|
||||||
ZhCHT string `json:"zh_CHT"`
|
ZhCHT string `json:"zh_CHT"`
|
||||||
ZhCN string `json:"zh_CN"`
|
ZhCN string `json:"zh_CN"`
|
||||||
}
|
}
|
||||||
|
|
@ -87,6 +89,7 @@ type Readme struct {
|
||||||
PlPL string `json:"pl_PL"`
|
PlPL string `json:"pl_PL"`
|
||||||
PtBR string `json:"pt_BR"`
|
PtBR string `json:"pt_BR"`
|
||||||
RuRU string `json:"ru_RU"`
|
RuRU string `json:"ru_RU"`
|
||||||
|
TrTR string `json:"tr_TR"`
|
||||||
ZhCHT string `json:"zh_CHT"`
|
ZhCHT string `json:"zh_CHT"`
|
||||||
ZhCN string `json:"zh_CN"`
|
ZhCN string `json:"zh_CN"`
|
||||||
}
|
}
|
||||||
|
|
@ -217,6 +220,10 @@ func getPreferredReadme(readme *Readme) string {
|
||||||
if "" != readme.RuRU {
|
if "" != readme.RuRU {
|
||||||
ret = readme.RuRU
|
ret = readme.RuRU
|
||||||
}
|
}
|
||||||
|
case "tr_TR":
|
||||||
|
if "" != readme.TrTR {
|
||||||
|
ret = readme.TrTR
|
||||||
|
}
|
||||||
case "zh_CHT":
|
case "zh_CHT":
|
||||||
if "" != readme.ZhCHT {
|
if "" != readme.ZhCHT {
|
||||||
ret = readme.ZhCHT
|
ret = readme.ZhCHT
|
||||||
|
|
@ -287,6 +294,10 @@ func GetPreferredName(pkg *Package) string {
|
||||||
if "" != pkg.DisplayName.RuRU {
|
if "" != pkg.DisplayName.RuRU {
|
||||||
ret = pkg.DisplayName.RuRU
|
ret = pkg.DisplayName.RuRU
|
||||||
}
|
}
|
||||||
|
case "tr_TR":
|
||||||
|
if "" != pkg.DisplayName.TrTR {
|
||||||
|
ret = pkg.DisplayName.TrTR
|
||||||
|
}
|
||||||
case "zh_CHT":
|
case "zh_CHT":
|
||||||
if "" != pkg.DisplayName.ZhCHT {
|
if "" != pkg.DisplayName.ZhCHT {
|
||||||
ret = pkg.DisplayName.ZhCHT
|
ret = pkg.DisplayName.ZhCHT
|
||||||
|
|
@ -357,6 +368,10 @@ func getPreferredDesc(desc *Description) string {
|
||||||
if "" != desc.RuRU {
|
if "" != desc.RuRU {
|
||||||
ret = desc.RuRU
|
ret = desc.RuRU
|
||||||
}
|
}
|
||||||
|
case "tr_TR":
|
||||||
|
if "" != desc.TrTR {
|
||||||
|
ret = desc.TrTR
|
||||||
|
}
|
||||||
case "zh_CHT":
|
case "zh_CHT":
|
||||||
if "" != desc.ZhCHT {
|
if "" != desc.ZhCHT {
|
||||||
ret = desc.ZhCHT
|
ret = desc.ZhCHT
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ func Boot() {
|
||||||
readOnly := flag.String("readonly", "false", "read-only mode")
|
readOnly := flag.String("readonly", "false", "read-only mode")
|
||||||
accessAuthCode := flag.String("accessAuthCode", "", "access auth code")
|
accessAuthCode := flag.String("accessAuthCode", "", "access auth code")
|
||||||
ssl := flag.Bool("ssl", false, "for https and wss")
|
ssl := flag.Bool("ssl", false, "for https and wss")
|
||||||
lang := flag.String("lang", "", "ar_SA/de_DE/en_US/es_ES/fr_FR/he_IL/it_IT/ja_JP/pl_PL/pt_BR/ru_RU/zh_CHT/zh_CN")
|
lang := flag.String("lang", "", "ar_SA/de_DE/en_US/es_ES/fr_FR/he_IL/it_IT/ja_JP/pl_PL/pt_BR/ru_RU/tr_TR/zh_CHT/zh_CN")
|
||||||
mode := flag.String("mode", "prod", "dev/prod")
|
mode := flag.String("mode", "prod", "dev/prod")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue