MCPcopy Create free account
hub / github.com/Card-Forge/forge / initInstance

Method initInstance

forge-core/src/main/java/forge/util/Lang.java:36–47  ·  view source on GitHub ↗
(String localeID)

Source from the content-addressed store, hash-verified

34 }
35
36 public static Lang initInstance(String localeID) {
37 return languages.computeIfAbsent(localeID, k -> switch (k.split("-")[0]) {
38 case "de" -> new LangGerman();
39 case "es" -> new LangSpanish();
40 case "it" -> new LangItalian();
41 case "zh" -> new LangChinese();
42 case "ja" -> new LangJapanese();
43 case "ko" -> new LangKorean();
44 case "fr" -> new LangFrench();
45 default -> new LangEnglish();
46 });
47 }
48
49 public static Lang getInstance() {
50 return instance;

Callers 7

preloadAllMethod · 0.95
updateFontMethod · 0.95
generateFontMethod · 0.95
valueChangedMethod · 0.95
createInstanceMethod · 0.95
initializeMethod · 0.95
newFontMethod · 0.95

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected