We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac3a97 commit e5b11f5Copy full SHA for e5b11f5
src/main/java/cn/enaium/joe/util/LangUtil.java
@@ -57,7 +57,7 @@ public enum Lang{
57
58
try (InputStream stream = LangUtil.class.getResourceAsStream("/lang/" + lang + ".json")){
59
for(Map.Entry<String, JsonElement> entry : JsonParser.parseReader(new InputStreamReader(Objects.requireNonNull(stream))).getAsJsonObject().entrySet()) {
60
- locales.putIfAbsent(entry.getKey(), entry.getValue().getAsString());
+ locales.put(entry.getKey(), entry.getValue().getAsString());
61
}
62
} catch (IOException | NullPointerException e) {
63
Logger.warn(e);
0 commit comments