mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 06:45:42 -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) {
|
||||
try {
|
||||
return bundle.localize(key);
|
||||
return String.format(bundle.localize(key), format);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
return key;
|
||||
|
Loading…
x
Reference in New Issue
Block a user