MCPcopy
hub / github.com/Col-E/Recaf / translate

Method translate

src/main/java/me/coley/recaf/util/LangUtil.java:35–39  ·  view source on GitHub ↗

Get translated string. @param key Translation key. @return Translated string.

(String key)

Source from the content-addressed store, hash-verified

33 * @return Translated string.
34 */
35 public static String translate(String key) {
36 if (DEBUG && !MAP.containsKey(key))
37 error("\"{}\": \"missing_translation\",", key);
38 return MAP.getOrDefault(key, key);
39 }
40
41 /**
42 * Load language from {@link InputStream}.

Callers 15

callMethod · 0.95
promptFirstTimeMethod · 0.95
ofClassMethod · 0.95
ofFieldMethod · 0.95
ofMethodMethod · 0.95
ofInsnMethod · 0.95
ofPackageMethod · 0.95
ofFileMethod · 0.95
ofRootMethod · 0.95
ofClassTabMethod · 0.95
ofFileTabMethod · 0.95
refreshMethod · 0.95

Calls 2

containsKeyMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected