mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 04:40:15 +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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue