mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
Fix issue #22
This commit is contained in:
parent
2f97cd8104
commit
8e8584656e
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user