mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-19 16:30:15 +00:00
Initial support for localization and pluralization with go-i18n-JSON-v2 format
This commit is contained in:
parent
376a2e19ea
commit
a2787bb09e
61 changed files with 1317 additions and 51 deletions
|
@ -31,6 +31,10 @@ func (l MockLocale) TrN(cnt any, key1, keyN string, args ...any) template.HTML {
|
|||
return template.HTML(key1)
|
||||
}
|
||||
|
||||
func (l MockLocale) TrPluralString(count any, trKey string, trArgs ...any) template.HTML {
|
||||
return template.HTML(trKey)
|
||||
}
|
||||
|
||||
func (l MockLocale) TrSize(s int64) ReadableSize {
|
||||
return ReadableSize{fmt.Sprint(s), ""}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue