Last active
February 20, 2024 16:11
-
-
Save Densamisten/7c9e11c33a842e738725eb65be8fd27e to your computer and use it in GitHub Desktop.
I never got this to work. But it essentially, theoretically, switches at random the language of Minecraft. The code is provided as-is. License: CC0-1.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<String> languageCountryCodes = new ArrayList<>(); | |
| Collections.addAll(languageCountryCodes, | |
| "af_za", "ara_sa", "ast_es", "aze_az", "bak_ru", "bar_de", "bel_by", "bul_bg", "bre_fr", "qbr_nl", | |
| "bos_ba", "cat_es", "ces_cz", "cym_gb", "dan_dk", "bar_at", "gsw_ch", "deu_de", "ell_gr", "eng_au", | |
| "eng_ca", "eng_gb", "eng_nz", "qpe", "eng_qabs_gb", "en_ud", "epo", "spa_ar", "spa_cl", "spa_ec", | |
| "spa_es", "spa_mx", "spa_uy", "spa_ve", "spa_es_an", "est_ee", "eus_es", "fas_ir", "fin_fi", "fil_ph", | |
| "fao_fo", "fra_ca", "fra_fr", "fra_de", "fur_it", "fry_nl", "gle_ie", "gla_gb", "glg_es", "haw_us", | |
| "heb_il", "hin_in", "hrv_hr", "hun_hu", "hye_am", "id_id", "ibo_ng", "is_is", "qis", "ita_it", "jpn_jp", | |
| "jbo", "kat_ge", "kaz_kz", "kan_in", "kor_kr", "ksh_de", "kw_gb", "lat_va", "ltz_lu", "lim_nl", "lmo_it", | |
| "lao_la", "qll", "lit_lt", "lav_lv", "lzh", "mkd_mk", "mon_mn", "zlm_my", "mlt_mt", "nhe_mx", "vmf_de", | |
| "msa_my", "mlg_mg", "mar_in", "nld_be", "nld_nl", "nno_no", "nob_no", "quc_latn_gt", "pol_pl", "por_br", | |
| "por_pt", "qya", "ro_ro", "qpr", "rus_ru", "srp_latn_rs", "srp_cyrl_rs", "swe_se", "slk_sk", "slv_si", | |
| "som_so", "sqi_al", "ckb_ir", "sr_sp", "swa_ke", "swh_tz", "tam_in", "tha_th", "tgk_tj", "uig_cn", | |
| "ukr_ua", "urd_pk", "uzb_uz", "ven_za", "cymr", "xho_za", "yor_ng", "yue_hk", "zho_hans_cn", "zho_hant_hk", | |
| "zho_hant_tw"); | |
| // Shuffle the list | |
| Collections.shuffle(languageCountryCodes); | |
| // Print one code at a time | |
| for (String code : languageCountryCodes) { | |
| LanguageManager languageManager = new LanguageManager(code); | |
| languageManager.onResourceManagerReload(TroubleshootingMod.getResourceManager()); | |
| System.out.println(Minecraft.getInstance().getLocale()); | |
| System.out.println(code); | |
| break; // Exit the loop after printing one code | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment