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

Method createInstance

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

Source from the content-addressed store, hash-verified

27 private static Lang englishInstance;
28
29 public static void createInstance(String localeID) {
30 instance = initInstance(localeID);
31
32 // Create english instance for internal usage
33 englishInstance = initInstance("en-US");
34 }
35
36 public static Lang initInstance(String localeID) {
37 return languages.computeIfAbsent(localeID, k -> switch (k.split("-")[0]) {

Callers 3

mainMethod · 0.95
initializeMethod · 0.95
initMocksMethod · 0.95

Calls 1

initInstanceMethod · 0.95

Tested by 1

initMocksMethod · 0.76