From 38c04c4b469cac90b717cfb12e4be82a57ce4aad Mon Sep 17 00:00:00 2001 From: Kamil Banach Date: Thu, 23 May 2024 20:24:09 +0200 Subject: [PATCH] Update localization.md (#361) Add missing 'return' JteContext methods (Java) --- docs/localization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/localization.md b/docs/localization.md index 49957cb2..00fd3dcf 100644 --- a/docs/localization.md +++ b/docs/localization.md @@ -78,11 +78,11 @@ This works fine, but passing a parameter to every template might feel repetitive private static final ThreadLocal context = new ThreadLocal<>(); public static Content localize(String key) { - context.get().localize(key); + return context.get().localize(key); } public static Content localize(String key, Object... params) { - context.get().localize(key, params); + return context.get().localize(key, params); } static void init(JteLocalizer localizer) {