diff --git a/internal/locale/catalog.go b/internal/locale/catalog.go index 8ecdab74..7c73b067 100644 --- a/internal/locale/catalog.go +++ b/internal/locale/catalog.go @@ -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)) diff --git a/internal/locale/printer.go b/internal/locale/printer.go index d997c1a7..25359105 100644 --- a/internal/locale/printer.go +++ b/internal/locale/printer.go @@ -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 {