⚖️ 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"); // 波斯語 }