1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

refactor(locale): use any instead of interface{}

This commit is contained in:
jvoisin 2025-07-06 00:25:43 +02:00 committed by Frédéric Guillot
parent a8b4e88742
commit 8e86004936
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ import (
"fmt"
)
type translationDict map[string]interface{}
type translationDict map[string]any
type catalog map[string]translationDict
var defaultCatalog = make(catalog, len(AvailableLanguages))

View file

@ -22,7 +22,7 @@ func (p *Printer) Print(key string) string {
}
// Printf is like fmt.Printf, but using language-specific formatting.
func (p *Printer) Printf(key string, args ...interface{}) string {
func (p *Printer) Printf(key string, args ...any) string {
translation := key
if dict, err := GetTranslationDict(p.language); err == nil {