Fix issue #22
This commit is contained in:
@@ -53,7 +53,7 @@ public enum SupportedLocales {
|
|||||||
|
|
||||||
public String translate(String key, Object... format) {
|
public String translate(String key, Object... format) {
|
||||||
try {
|
try {
|
||||||
return bundle.localize(key);
|
return String.format(bundle.localize(key), format);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return key;
|
return key;
|
||||||
|
|||||||
Reference in New Issue
Block a user