Skip to content

Commit

Permalink
Update localization.md (#361)
Browse files Browse the repository at this point in the history
Add missing 'return' JteContext methods (Java)
  • Loading branch information
elwin013 authored May 23, 2024
1 parent 08470e3 commit 38c04c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ This works fine, but passing a parameter to every template might feel repetitive
private static final ThreadLocal<JteLocalizer> 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) {
Expand Down

0 comments on commit 38c04c4

Please sign in to comment.