Provide a way to translate data units

This commit is contained in:
0ko 2024-03-19 15:52:32 +05:00 committed by GitHub
parent 482658a4d0
commit 7b24b669ed
19 changed files with 69 additions and 29 deletions

View file

@ -31,6 +31,10 @@ func (l MockLocale) TrN(cnt any, key1, keyN string, args ...any) template.HTML {
return template.HTML(key1)
}
func (l MockLocale) TrSize(s int64) ByteSize {
return ByteSize{fmt.Sprint(s), ""}
}
func (l MockLocale) PrettyNumber(v any) string {
return fmt.Sprint(v)
}