MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / I18n

Class I18n

src/main/java/net/minecraft/client/resources/I18n.java:5–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import java.util.Map;
4
5public class I18n
6{
7 private static Locale i18nLocale;
8
9 static void setLocale(Locale i18nLocaleIn)
10 {
11 i18nLocale = i18nLocaleIn;
12 }
13
14 /**
15 * format(a, b) is equivalent to String.format(translate(a), b). Args: translationKey, params...
16 */
17 public static String format(String translateKey, Object... parameters)
18 {
19 return i18nLocale.formatMessage(translateKey, parameters);
20 }
21
22 public static Map getLocaleProperties()
23 {
24 return i18nLocale.properties;
25 }
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected