mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02: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
|
|
@ -53,6 +53,7 @@ type DisplayName struct {
|
|||
PlPL string `json:"pl_PL"`
|
||||
PtBR string `json:"pt_BR"`
|
||||
RuRU string `json:"ru_RU"`
|
||||
TrTR string `json:"tr_TR"`
|
||||
ZhCHT string `json:"zh_CHT"`
|
||||
ZhCN string `json:"zh_CN"`
|
||||
}
|
||||
|
|
@ -70,6 +71,7 @@ type Description struct {
|
|||
PlPL string `json:"pl_PL"`
|
||||
PtBR string `json:"pt_BR"`
|
||||
RuRU string `json:"ru_RU"`
|
||||
TrTR string `json:"tr_TR"`
|
||||
ZhCHT string `json:"zh_CHT"`
|
||||
ZhCN string `json:"zh_CN"`
|
||||
}
|
||||
|
|
@ -87,6 +89,7 @@ type Readme struct {
|
|||
PlPL string `json:"pl_PL"`
|
||||
PtBR string `json:"pt_BR"`
|
||||
RuRU string `json:"ru_RU"`
|
||||
TrTR string `json:"tr_TR"`
|
||||
ZhCHT string `json:"zh_CHT"`
|
||||
ZhCN string `json:"zh_CN"`
|
||||
}
|
||||
|
|
@ -217,6 +220,10 @@ func getPreferredReadme(readme *Readme) string {
|
|||
if "" != readme.RuRU {
|
||||
ret = readme.RuRU
|
||||
}
|
||||
case "tr_TR":
|
||||
if "" != readme.TrTR {
|
||||
ret = readme.TrTR
|
||||
}
|
||||
case "zh_CHT":
|
||||
if "" != readme.ZhCHT {
|
||||
ret = readme.ZhCHT
|
||||
|
|
@ -287,6 +294,10 @@ func GetPreferredName(pkg *Package) string {
|
|||
if "" != pkg.DisplayName.RuRU {
|
||||
ret = pkg.DisplayName.RuRU
|
||||
}
|
||||
case "tr_TR":
|
||||
if "" != pkg.DisplayName.TrTR {
|
||||
ret = pkg.DisplayName.TrTR
|
||||
}
|
||||
case "zh_CHT":
|
||||
if "" != pkg.DisplayName.ZhCHT {
|
||||
ret = pkg.DisplayName.ZhCHT
|
||||
|
|
@ -357,6 +368,10 @@ func getPreferredDesc(desc *Description) string {
|
|||
if "" != desc.RuRU {
|
||||
ret = desc.RuRU
|
||||
}
|
||||
case "tr_TR":
|
||||
if "" != desc.TrTR {
|
||||
ret = desc.TrTR
|
||||
}
|
||||
case "zh_CHT":
|
||||
if "" != desc.ZhCHT {
|
||||
ret = desc.ZhCHT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue