Skip to content

Commit 38c04c4

Browse files
authored
Update localization.md (#361)
Add missing 'return' JteContext methods (Java)
1 parent 08470e3 commit 38c04c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/localization.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ This works fine, but passing a parameter to every template might feel repetitive
7878
private static final ThreadLocal<JteLocalizer> context = new ThreadLocal<>();
7979

8080
public static Content localize(String key) {
81-
context.get().localize(key);
81+
return context.get().localize(key);
8282
}
8383

8484
public static Content localize(String key, Object... params) {
85-
context.get().localize(key, params);
85+
return context.get().localize(key, params);
8686
}
8787

8888
static void init(JteLocalizer localizer) {

0 commit comments

Comments
 (0)