MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / get

Method get

The 5zig Mod/src/eu/the5zig/mod/I18n.java:73–79  ·  view source on GitHub ↗
(String code)

Source from the content-addressed store, hash-verified

71 }
72
73 private static Locale get(String code) {
74 for (Locale language : languages) {
75 if (language.toString().equals(code))
76 return language;
77 }
78 return null;
79 }
80
81 private static void loadResourceBundle() {
82 The5zigMod.logger.debug("Reloading Resource Bundle {}...", currentLanguage);

Callers 2

I18nClass · 0.95
setLanguageMethod · 0.95

Calls 2

equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected