From f662b79abbc0152485f5cf6d0bcb9645074e1404 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 2 Mar 2025 12:27:10 +0100 Subject: [PATCH] fix(i18n): use only one function to get translations --- pkg/i18n/i18n.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/i18n/i18n.go b/pkg/i18n/i18n.go index de78f79f7..53006e939 100644 --- a/pkg/i18n/i18n.go +++ b/pkg/i18n/i18n.go @@ -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()