mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-11-27 06:10:08 +08: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) {
|
||||
try {
|
||||
return bundle.localize(key);
|
||||
return String.format(bundle.localize(key), format);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
return key;
|
||||
|
Loading…
Reference in New Issue
Block a user