MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / getLanguageCode

Method getLanguageCode

src/main/java/emu/grasscutter/utils/Utils.java:337–339  ·  view source on GitHub ↗

Gets the language code from a given locale. @param locale A locale. @return A string in the format of 'XX-XX'.

(Locale locale)

Source from the content-addressed store, hash-verified

335 * @return A string in the format of 'XX-XX'.
336 */
337 public static String getLanguageCode(Locale locale) {
338 return String.format("%s-%s", locale.getLanguage(), locale.getCountry());
339 }
340
341 /**
342 * Base64 encodes a given byte array.

Callers 6

loadLanguageMethod · 0.95
getLanguageMethod · 0.95
translateMethod · 0.95
executeMethod · 0.95
gachaRecordsMethod · 0.95
gachaDetailsMethod · 0.95

Calls 1

getLanguageMethod · 0.45

Tested by

no test coverage detected