mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
🌐 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:
parent
c5bffb68f1
commit
9ab6a7a9ab
6 changed files with 10 additions and 2 deletions
|
|
@ -509,6 +509,7 @@ const (
|
|||
NumberFormatSGD NumberFormat = "SGD" // 新加坡元
|
||||
NumberFormatNZD NumberFormat = "NZD" // 新西兰元
|
||||
NumberFormatILS NumberFormat = "ILS" // 以色列新谢克尔
|
||||
NumberFormatSKK NumberFormat = "SKK" // 斯洛伐克克朗
|
||||
)
|
||||
|
||||
func NewFormattedValueNumber(content float64, format NumberFormat) (ret *ValueNumber) {
|
||||
|
|
@ -605,6 +606,9 @@ func formatNumber(content float64, format NumberFormat) string {
|
|||
case NumberFormatILS:
|
||||
p := message.NewPrinter(language.Hebrew)
|
||||
return p.Sprintf("ILS₪%.2f", content)
|
||||
case NumberFormatSKK:
|
||||
p := message.NewPrinter(language.Slovak)
|
||||
return p.Sprintf("SKK%.2f", content)
|
||||
default:
|
||||
return strconv.FormatFloat(content, 'f', -1, 64)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,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", "", "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")
|
||||
lang := flag.String("lang", "", "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")
|
||||
mode := flag.String("mode", "prod", "dev/prod")
|
||||
flag.Parse()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue