aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user/task.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/user/task.go')
-rw-r--r--routers/web/user/task.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/task.go b/routers/web/user/task.go
index f35f40e6a0..bec68c5f20 100644
--- a/routers/web/user/task.go
+++ b/routers/web/user/task.go
@@ -39,7 +39,7 @@ func TaskStatus(ctx *context.Context) {
Args: []any{task.Message},
}
}
- message = ctx.Tr(translatableMessage.Format, translatableMessage.Args...)
+ message = ctx.Locale.TrString(translatableMessage.Format, translatableMessage.Args...)
}
ctx.JSON(http.StatusOK, map[string]any{