implemented state update after sending document, returning to document list
This commit is contained in:
@@ -62,7 +62,9 @@ public class Translations extends PathHandler implements Translator {
|
||||
} else current = null;
|
||||
}
|
||||
var translated = current instanceof String translation ? translation : text;
|
||||
for (var entry : fills.entrySet()) translated = translated.replaceAll("\\{"+entry.getKey()+"}",entry.getValue());
|
||||
if (fills != null) for (var entry : fills.entrySet()) {
|
||||
translated = translated.replaceAll("\\{"+entry.getKey()+"}",entry.getValue());
|
||||
}
|
||||
return translated;
|
||||
} catch (IOException e) {
|
||||
return text;
|
||||
|
||||
Reference in New Issue
Block a user