summaryrefslogtreecommitdiff
path: root/i18nerr
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-07-10 14:44:48 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit25bd764f495ae1f224bdaf11eef725c76ae467c0 (patch)
treec0ba3e0a9b6e0a1464f490631a5ce0cf521995bc /i18nerr
parentaeb1f4bcbfebb00ee02564d7ba66f010cf247432 (diff)
i18n: Expand variadic args slice in printer sprintf
Diffstat (limited to 'i18nerr')
-rw-r--r--i18nerr/i18nerr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nerr/i18nerr.go b/i18nerr/i18nerr.go
index 813d287..3520ecc 100644
--- a/i18nerr/i18nerr.go
+++ b/i18nerr/i18nerr.go
@@ -46,7 +46,7 @@ func (e *Error) translated(t language.Tag) string {
once.Do(func() {
inititializeLangs()
})
- msg := printerOrNew(t).Sprintf(e.key, e.args)
+ msg := printerOrNew(t).Sprintf(e.key, e.args...)
if e.wrapped != nil {
return msg + " " + printerOrNew(t).Sprintf("with cause:") + " " + e.wrapped.Error()
}