AI Core Pack
AI Core Pack doesn't essential. You only need when you want to translate. You alse can translate by you in Translation folder.
please always use /lo dump must.
Remember to see the log.(project and game)
🚀 Lo - Automatic Translation Assistant
Lo (LanguageOuter) is a powerful, lightweight client-side utility designed for Minecraft 1.20.1. It eliminates the frustration of untranslated "English remnants" in modpacks by automatically capturing missing translation keys and localizing them using advanced batch-processing logic via the Google Translate API.
🌟 Key Features
🚀 Real-time Capture: Automatically detects and dumps missing translation keys directly from your active game session.
📦 Smart Batch Translation: Utilizes a unique "Numbered Tag" indexing system (###ID###) to translate hundreds of strings simultaneously without losing Key-Value alignment.
🔍 Precision Regex Sync: Features a robust regex parsing engine that ensures every translation finds its way back to the correct key, even if the API rearranges the response.
🛠️ Seamless Integration: Distributes translations to an auto-generated resource pack and triggers a resource reload (F3+T) automatically.
⚖️ Human-in-the-loop: Generates a pending_review.json allowing you to audit and refine AI results before merging them into your master language file.
private static final Map<String, String> NLLB_MAP = new HashMap<>(); static { // --- 亞洲與東南亞 (Asia & SE Asia) --- NLLB_MAP.put("zh_tw", "zho_Hant"); // 繁體中文 (台灣) NLLB_MAP.put("zh_hk", "zho_Hant"); // 繁體中文 (香港) NLLB_MAP.put("zh_cn", "zho_Hans"); // 簡體中文 NLLB_MAP.put("ja_jp", "jpn_Jpan"); // 日語 NLLB_MAP.put("ko_kr", "kor_Hang"); // 韓語 NLLB_MAP.put("vi_vn", "vie_Latn"); // 越南語 NLLB_MAP.put("th_th", "tha_Thai"); // 泰語 NLLB_MAP.put("id_id", "ind_Latn"); // 印尼語 NLLB_MAP.put("ms_my", "zsm_Latn"); // 馬來語 NLLB_MAP.put("tl_ph", "tgl_Latn"); // 菲律賓語 (塔加洛語) // --- 歐洲主要語系 (Major European) --- NLLB_MAP.put("en_us", "eng_Latn"); // 美式英語 NLLB_MAP.put("en_gb", "eng_Latn"); // 英式英語 NLLB_MAP.put("fr_fr", "fra_Latn"); // 法語 NLLB_MAP.put("de_de", "deu_Latn"); // 德語 NLLB_MAP.put("es_es", "spa_Latn"); // 西班牙語 (西班牙) NLLB_MAP.put("es_mx", "spa_Latn"); // 西班牙語 (墨西哥) NLLB_MAP.put("it_it", "ita_Latn"); // 義大利語 NLLB_MAP.put("pt_br", "por_Latn"); // 葡萄牙語 (巴西) NLLB_MAP.put("pt_pt", "por_Latn"); // 葡萄牙語 (葡萄牙) NLLB_MAP.put("nl_nl", "nld_Latn"); // 荷蘭語 // --- 北歐與中歐 (Northern & Central Europe) --- NLLB_MAP.put("sv_se", "swe_Latn"); // 瑞典語 NLLB_MAP.put("no_no", "nob_Latn"); // 挪威語 (巴克摩) NLLB_MAP.put("da_dk", "dan_Latn"); // 丹麥語 NLLB_MAP.put("fi_fi", "fin_Latn"); // 芬蘭語 NLLB_MAP.put("pl_pl", "pol_Latn"); // 波蘭語 NLLB_MAP.put("cs_cz", "ces_Latn"); // 捷克語 NLLB_MAP.put("hu_hu", "hun_Latn"); // 匈牙利語 NLLB_MAP.put("ro_ro", "ron_Latn"); // 羅馬尼亞語 // --- 東歐與斯拉夫 (Eastern Europe & Slavic) --- NLLB_MAP.put("ru_ru", "rus_Cyrl"); // 俄語 NLLB_MAP.put("uk_ua", "ukr_Cyrl"); // 烏克蘭語 NLLB_MAP.put("bg_bg", "bul_Cyrl"); // 保加利亞語 NLLB_MAP.put("el_gr", "ell_Grek"); // 希臘語 // --- 中東與南亞 (Middle East & South Asia) --- NLLB_MAP.put("tr_tr", "tur_Latn"); // 土耳其語 NLLB_MAP.put("ar_sa", "ars_Arab"); // 阿拉伯語 (沙烏地) NLLB_MAP.put("he_il", "heb_Hebr"); // 希伯來語 NLLB_MAP.put("hi_in", "hin_Deva"); // 印地語 NLLB_MAP.put("bn_bd", "ben_Beng"); // 孟加拉語 // --- 其他常見語系 --- NLLB_MAP.put("af_za", "afr_Latn"); // 南非荷蘭語 NLLB_MAP.put("fa_ir", "pes_Arab"); // 波斯語 }
🛠️ How to Use?
Capture: Run /lo dump to identify and export missing strings in your current view to the Translation folder.
Translate: Run /lo translate to trigger the automated batch translation process or you can do this by yourself.
Review: Open .minecraft/Translation/pending_review.json to verify or tweak the AI results.
Merge & Apply: Run /lo apply to consolidate data (if you translate by yourself) , then press F3+T to see the changes in-game instantly!
Enjoy your time!
📄 API Usage & Legal Notice
Third-Party Service: The /lo translate feature utilizes the Google Translate (GTX) web interface. This tool is not affiliated with, endorsed by, or sponsored by Google LLC.
Data Transmission: By using the translation command, you acknowledge that in-game text strings will be transmitted to Google servers for processing. No personal data or account information is collected or stored by the developer.
Translation Quality: Machine translation is provided for convenience and may contain inaccuracies. Users are encouraged to review the generated pending_review.json.
Rate Limiting: Please use the translation feature responsibly. Excessive batch requests may lead to temporary IP restrictions from the service provider.
⚖️ License & Attribution
License: GNU General Public License v3 (GPL v3).
Copyright: © 2026 TerrySet. All original source artifacts and logic designs are the property of the author.
Status: Provided "AS IS" without warranty of any kind.
📂 Technical Specifications
Minecraft Version: 1.20.1
Platform: Forge
Side: Client-side Only