fix(i18n): use only one function to get translations

This commit is contained in:
kolaente 2025-03-02 12:27:10 +01:00
parent c00768499f
commit f662b79abb
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 6 deletions

View File

@ -128,12 +128,7 @@ func GetAvailableLanguages() []string {
}
// T returns the translation for the specified key using dot notation in the specified language
func T(lang, key string) string {
return TWithParams(lang, key)
}
// TWithParams returns the translation with parameter substitution in the specified language
func TWithParams(lang, key string, params ...string) string {
func T(lang, key string, params ...string) string {
translator.mu.RLock()
defer translator.mu.RUnlock()