add formating ribuan keuangan + alert salah login

This commit is contained in:
2024-06-25 16:49:21 +07:00
parent 322a70b582
commit dbad97d0f2
11 changed files with 199 additions and 97 deletions

View File

@@ -0,0 +1,12 @@
package utils
import (
"golang.org/x/text/language"
"golang.org/x/text/message"
)
func FormatRibuan(amount int) string {
p := message.NewPrinter(language.Indonesian)
formated := p.Sprintf("%v", amount)
return formated
}