From ac48b51be8558f5766a7852910b89c06455565eb Mon Sep 17 00:00:00 2001 From: bd_ Date: Sun, 18 Feb 2024 19:30:14 +0900 Subject: [PATCH] fix: incorrect display for zh-* culture names in lang switcher (#172) Also: Remove uncultured language names from language switcher when a cultured variant is found Closes: #171 Closes: #157 --- CHANGELOG.md | 3 + Editor/UI/LanguageSwitcher.cs | 16 +- Editor/UI/Localization/LanguagePrefs.cs | 39 + Editor/UI/Localization/import_icu.py | 13 + Editor/UI/Localization/import_icu.py.meta | 7 + Editor/UI/Localization/language_names.json | 789 ++++++++++++++++++ .../UI/Localization/language_names.json.meta | 7 + 7 files changed, 862 insertions(+), 12 deletions(-) create mode 100644 Editor/UI/Localization/import_icu.py create mode 100644 Editor/UI/Localization/import_icu.py.meta create mode 100644 Editor/UI/Localization/language_names.json create mode 100644 Editor/UI/Localization/language_names.json.meta diff --git a/CHANGELOG.md b/CHANGELOG.md index 063a972..00f802d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] ### Fixed +- Incorrect language display names for some locales (#171) ### Changed +- Uncultured language variants (e.g. `en`) are not displayed in the language switcher when cultured variants (e.g. + `en-US`) are registered. (#171) ### Removed diff --git a/Editor/UI/LanguageSwitcher.cs b/Editor/UI/LanguageSwitcher.cs index 234434d..f4b01b0 100644 --- a/Editor/UI/LanguageSwitcher.cs +++ b/Editor/UI/LanguageSwitcher.cs @@ -35,18 +35,10 @@ public static void DrawImmediate() var curLang = LanguagePrefs.Language; var curIndex = LanguagePrefs.RegisteredLanguages.IndexOf(curLang); - var DisplayNames = LanguagePrefs.RegisteredLanguages.Select( - lang => - { - try - { - return CultureInfo.GetCultureInfo(lang).NativeName; - } - catch (Exception) - { - return lang; - } - }) + var DisplayNames = LanguagePrefs.RegisteredLanguages + .Where(lang => lang.Contains("-") || + LanguagePrefs.RegisteredLanguages.All(l2 => !l2.StartsWith(lang + "-"))) + .Select(LanguagePrefs.GetLocaleNativeName) .ToArray(); var newIndex = EditorGUILayout.Popup("Editor Language", curIndex, DisplayNames); diff --git a/Editor/UI/Localization/LanguagePrefs.cs b/Editor/UI/Localization/LanguagePrefs.cs index de3ac59..8548655 100644 --- a/Editor/UI/Localization/LanguagePrefs.cs +++ b/Editor/UI/Localization/LanguagePrefs.cs @@ -1,7 +1,10 @@ using System; using System.Collections.Generic; using System.Collections.Immutable; +using System.Globalization; +using System.Linq; using System.Runtime.CompilerServices; +using Newtonsoft.Json; using UnityEditor; using UnityEngine; @@ -12,9 +15,13 @@ namespace nadena.dev.ndmf.localization /// public static class LanguagePrefs { + private const string LocaleNameDatasetPath = + "Packages/nadena.dev.ndmf/Editor/UI/Localization/language_names.json"; private const string EditorPrefKey = "nadena.dev.ndmf.language-selection"; private static string _curLanguage = "en-us"; + private static ImmutableDictionary LocaleNames; + [InitializeOnLoadMethod] private static void Init() { @@ -111,8 +118,40 @@ private static void TriggerLanguageChangeCallbacks() /// public static ImmutableSortedSet RegisteredLanguages { get; private set; } + internal static string GetLocaleNativeName(string locale) + { + if (LocaleNames.TryGetValue(locale.ToLowerInvariant().Replace("-", "_"), out var name)) + { + return name; + } + else + { + try + { + return CultureInfo.CreateSpecificCulture(locale).NativeName; + } + catch (Exception e) + { + return locale; + } + } + } + static LanguagePrefs() { + try + { + var localeNameJson = System.IO.File.ReadAllText(LocaleNameDatasetPath); + LocaleNames = JsonConvert.DeserializeObject>(localeNameJson) + .Select(kvp => { return new KeyValuePair(kvp.Key.ToLowerInvariant(), kvp.Value); }) + .ToImmutableDictionary(); + } + catch (Exception e) + { + Debug.LogException(e); + LocaleNames = ImmutableDictionary.Empty; + } + RegisteredLanguages = ImmutableSortedSet.Empty; } diff --git a/Editor/UI/Localization/import_icu.py b/Editor/UI/Localization/import_icu.py new file mode 100644 index 0000000..6ec614a --- /dev/null +++ b/Editor/UI/Localization/import_icu.py @@ -0,0 +1,13 @@ +import icu +import json + +locales = icu.Locale.getAvailableLocales() + +displayNames = {} +for locale in locales: + icu_locale = icu.Locale(locale) + displayNames[locale] = icu_locale.getDisplayName(icu_locale) + +displayNames["__comment__"] = "Derived from ICU dataset. See import_icu.py"; + +print(json.dumps(displayNames, indent=4, ensure_ascii=False)) \ No newline at end of file diff --git a/Editor/UI/Localization/import_icu.py.meta b/Editor/UI/Localization/import_icu.py.meta new file mode 100644 index 0000000..0d04b3c --- /dev/null +++ b/Editor/UI/Localization/import_icu.py.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 83822ef0cf4ca974d8470717d84fab59 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/UI/Localization/language_names.json b/Editor/UI/Localization/language_names.json new file mode 100644 index 0000000..23ba2ae --- /dev/null +++ b/Editor/UI/Localization/language_names.json @@ -0,0 +1,789 @@ +{ + "__comment__": "Derived from ICU dataset. See import_icu.py", + "af": "Afrikaans", + "af_NA": "Afrikaans (Namibië)", + "af_ZA": "Afrikaans (Suid-Afrika)", + "agq": "Aghem", + "agq_CM": "Aghem (Kàmàlûŋ)", + "ak": "Akan", + "ak_GH": "Akan (Gaana)", + "am": "አማርኛ", + "am_ET": "አማርኛ (ኢትዮጵያ)", + "ar": "العربية", + "ar_001": "العربية (العالم)", + "ar_AE": "العربية (الإمارات العربية المتحدة)", + "ar_BH": "العربية (البحرين)", + "ar_DJ": "العربية (جيبوتي)", + "ar_DZ": "العربية (الجزائر)", + "ar_EG": "العربية (مصر)", + "ar_EH": "العربية (الصحراء الغربية)", + "ar_ER": "العربية (إريتريا)", + "ar_IL": "العربية (إسرائيل)", + "ar_IQ": "العربية (العراق)", + "ar_JO": "العربية (الأردن)", + "ar_KM": "العربية (جزر القمر)", + "ar_KW": "العربية (الكويت)", + "ar_LB": "العربية (لبنان)", + "ar_LY": "العربية (ليبيا)", + "ar_MA": "العربية (المغرب)", + "ar_MR": "العربية (موريتانيا)", + "ar_OM": "العربية (عُمان)", + "ar_PS": "العربية (الأراضي الفلسطينية)", + "ar_QA": "العربية (قطر)", + "ar_SA": "العربية (المملكة العربية السعودية)", + "ar_SD": "العربية (السودان)", + "ar_SO": "العربية (الصومال)", + "ar_SS": "العربية (جنوب السودان)", + "ar_SY": "العربية (سوريا)", + "ar_TD": "العربية (تشاد)", + "ar_TN": "العربية (تونس)", + "ar_YE": "العربية (اليمن)", + "as": "অসমীয়া", + "as_IN": "অসমীয়া (ভাৰত)", + "asa": "Kipare", + "asa_TZ": "Kipare (Tadhania)", + "ast": "asturianu", + "ast_ES": "asturianu (España)", + "az": "azərbaycan", + "az_Cyrl": "азәрбајҹан (Кирил)", + "az_Cyrl_AZ": "азәрбајҹан (Кирил, Азәрбајҹан)", + "az_Latn": "azərbaycan (latın)", + "az_Latn_AZ": "azərbaycan (latın, Azərbaycan)", + "bas": "Ɓàsàa", + "bas_CM": "Ɓàsàa (Kàmɛ̀rûn)", + "be": "беларуская", + "be_BY": "беларуская (Беларусь)", + "bem": "Ichibemba", + "bem_ZM": "Ichibemba (Zambia)", + "bez": "Hibena", + "bez_TZ": "Hibena (Hutanzania)", + "bg": "български", + "bg_BG": "български (България)", + "bm": "bamanakan", + "bm_ML": "bamanakan (Mali)", + "bn": "বাংলা", + "bn_BD": "বাংলা (বাংলাদেশ)", + "bn_IN": "বাংলা (ভারত)", + "bo": "བོད་སྐད་", + "bo_CN": "བོད་སྐད་ (རྒྱ་ནག)", + "bo_IN": "བོད་སྐད་ (རྒྱ་གར་)", + "br": "brezhoneg", + "br_FR": "brezhoneg (Frañs)", + "brx": "बड़ो", + "brx_IN": "बड़ो (भारत)", + "bs": "bosanski", + "bs_Cyrl": "босански (ћирилица)", + "bs_Cyrl_BA": "босански (ћирилица, Босна и Херцеговина)", + "bs_Latn": "bosanski (latinica)", + "bs_Latn_BA": "bosanski (latinica, Bosna i Hercegovina)", + "ca": "català", + "ca_AD": "català (Andorra)", + "ca_ES": "català (Espanya)", + "ca_FR": "català (França)", + "ca_IT": "català (Itàlia)", + "ccp": "𑄌𑄋𑄴𑄟𑄳𑄦", + "ccp_BD": "𑄌𑄋𑄴𑄟𑄳𑄦 (𑄝𑄁𑄣𑄘𑄬𑄌𑄴)", + "ccp_IN": "𑄌𑄋𑄴𑄟𑄳𑄦 (𑄞𑄢𑄧𑄖𑄴)", + "ce": "нохчийн", + "ce_RU": "нохчийн (Росси)", + "ceb": "Binisaya", + "ceb_PH": "Binisaya (Pilipinas)", + "cgg": "Rukiga", + "cgg_UG": "Rukiga (Uganda)", + "chr": "ᏣᎳᎩ", + "chr_US": "ᏣᎳᎩ (ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ)", + "ckb": "کوردیی ناوەندی", + "ckb_IQ": "کوردیی ناوەندی (عێراق)", + "ckb_IR": "کوردیی ناوەندی (ئێران)", + "cs": "čeština", + "cs_CZ": "čeština (Česko)", + "cy": "Cymraeg", + "cy_GB": "Cymraeg (Y Deyrnas Unedig)", + "da": "dansk", + "da_DK": "dansk (Danmark)", + "da_GL": "dansk (Grønland)", + "dav": "Kitaita", + "dav_KE": "Kitaita (Kenya)", + "de": "Deutsch", + "de_AT": "Deutsch (Österreich)", + "de_BE": "Deutsch (Belgien)", + "de_CH": "Deutsch (Schweiz)", + "de_DE": "Deutsch (Deutschland)", + "de_IT": "Deutsch (Italien)", + "de_LI": "Deutsch (Liechtenstein)", + "de_LU": "Deutsch (Luxemburg)", + "dje": "Zarmaciine", + "dje_NE": "Zarmaciine (Nižer)", + "doi": "डोगरी", + "doi_IN": "डोगरी (भारत)", + "dsb": "dolnoserbšćina", + "dsb_DE": "dolnoserbšćina (Nimska)", + "dua": "duálá", + "dua_CM": "duálá (Cameroun)", + "dyo": "joola", + "dyo_SN": "joola (Senegal)", + "dz": "རྫོང་ཁ", + "dz_BT": "རྫོང་ཁ། (འབྲུག།)", + "ebu": "Kĩembu", + "ebu_KE": "Kĩembu (Kenya)", + "ee": "Eʋegbe", + "ee_GH": "Eʋegbe (Ghana nutome)", + "ee_TG": "Eʋegbe (Togo nutome)", + "el": "Ελληνικά", + "el_CY": "Ελληνικά (Κύπρος)", + "el_GR": "Ελληνικά (Ελλάδα)", + "en": "English", + "en_001": "English (world)", + "en_150": "English (Europe)", + "en_AE": "English (United Arab Emirates)", + "en_AG": "English (Antigua & Barbuda)", + "en_AI": "English (Anguilla)", + "en_AS": "English (American Samoa)", + "en_AT": "English (Austria)", + "en_AU": "English (Australia)", + "en_BB": "English (Barbados)", + "en_BE": "English (Belgium)", + "en_BI": "English (Burundi)", + "en_BM": "English (Bermuda)", + "en_BS": "English (Bahamas)", + "en_BW": "English (Botswana)", + "en_BZ": "English (Belize)", + "en_CA": "English (Canada)", + "en_CC": "English (Cocos [Keeling] Islands)", + "en_CH": "English (Switzerland)", + "en_CK": "English (Cook Islands)", + "en_CM": "English (Cameroon)", + "en_CX": "English (Christmas Island)", + "en_CY": "English (Cyprus)", + "en_DE": "English (Germany)", + "en_DG": "English (Diego Garcia)", + "en_DK": "English (Denmark)", + "en_DM": "English (Dominica)", + "en_ER": "English (Eritrea)", + "en_FI": "English (Finland)", + "en_FJ": "English (Fiji)", + "en_FK": "English (Falkland Islands)", + "en_FM": "English (Micronesia)", + "en_GB": "English (United Kingdom)", + "en_GD": "English (Grenada)", + "en_GG": "English (Guernsey)", + "en_GH": "English (Ghana)", + "en_GI": "English (Gibraltar)", + "en_GM": "English (Gambia)", + "en_GU": "English (Guam)", + "en_GY": "English (Guyana)", + "en_HK": "English (Hong Kong SAR China)", + "en_IE": "English (Ireland)", + "en_IL": "English (Israel)", + "en_IM": "English (Isle of Man)", + "en_IN": "English (India)", + "en_IO": "English (British Indian Ocean Territory)", + "en_JE": "English (Jersey)", + "en_JM": "English (Jamaica)", + "en_KE": "English (Kenya)", + "en_KI": "English (Kiribati)", + "en_KN": "English (St. Kitts & Nevis)", + "en_KY": "English (Cayman Islands)", + "en_LC": "English (St. Lucia)", + "en_LR": "English (Liberia)", + "en_LS": "English (Lesotho)", + "en_MG": "English (Madagascar)", + "en_MH": "English (Marshall Islands)", + "en_MO": "English (Macao SAR China)", + "en_MP": "English (Northern Mariana Islands)", + "en_MS": "English (Montserrat)", + "en_MT": "English (Malta)", + "en_MU": "English (Mauritius)", + "en_MW": "English (Malawi)", + "en_MY": "English (Malaysia)", + "en_NA": "English (Namibia)", + "en_NF": "English (Norfolk Island)", + "en_NG": "English (Nigeria)", + "en_NL": "English (Netherlands)", + "en_NR": "English (Nauru)", + "en_NU": "English (Niue)", + "en_NZ": "English (New Zealand)", + "en_PG": "English (Papua New Guinea)", + "en_PH": "English (Philippines)", + "en_PK": "English (Pakistan)", + "en_PN": "English (Pitcairn Islands)", + "en_PR": "English (Puerto Rico)", + "en_PW": "English (Palau)", + "en_RW": "English (Rwanda)", + "en_SB": "English (Solomon Islands)", + "en_SC": "English (Seychelles)", + "en_SD": "English (Sudan)", + "en_SE": "English (Sweden)", + "en_SG": "English (Singapore)", + "en_SH": "English (St. Helena)", + "en_SI": "English (Slovenia)", + "en_SL": "English (Sierra Leone)", + "en_SS": "English (South Sudan)", + "en_SX": "English (Sint Maarten)", + "en_SZ": "English (Eswatini)", + "en_TC": "English (Turks & Caicos Islands)", + "en_TK": "English (Tokelau)", + "en_TO": "English (Tonga)", + "en_TT": "English (Trinidad & Tobago)", + "en_TV": "English (Tuvalu)", + "en_TZ": "English (Tanzania)", + "en_UG": "English (Uganda)", + "en_UM": "English (U.S. Outlying Islands)", + "en_US": "English (United States)", + "en_US_POSIX": "English (United States, Computer)", + "en_VC": "English (St. Vincent & Grenadines)", + "en_VG": "English (British Virgin Islands)", + "en_VI": "English (U.S. Virgin Islands)", + "en_VU": "English (Vanuatu)", + "en_WS": "English (Samoa)", + "en_ZA": "English (South Africa)", + "en_ZM": "English (Zambia)", + "en_ZW": "English (Zimbabwe)", + "eo": "esperanto", + "eo_001": "esperanto (Mondo)", + "es": "español", + "es_419": "español (Latinoamérica)", + "es_AR": "español (Argentina)", + "es_BO": "español (Bolivia)", + "es_BR": "español (Brasil)", + "es_BZ": "español (Belice)", + "es_CL": "español (Chile)", + "es_CO": "español (Colombia)", + "es_CR": "español (Costa Rica)", + "es_CU": "español (Cuba)", + "es_DO": "español (República Dominicana)", + "es_EA": "español (Ceuta y Melilla)", + "es_EC": "español (Ecuador)", + "es_ES": "español (España)", + "es_GQ": "español (Guinea Ecuatorial)", + "es_GT": "español (Guatemala)", + "es_HN": "español (Honduras)", + "es_IC": "español (Canarias)", + "es_MX": "español (México)", + "es_NI": "español (Nicaragua)", + "es_PA": "español (Panamá)", + "es_PE": "español (Perú)", + "es_PH": "español (Filipinas)", + "es_PR": "español (Puerto Rico)", + "es_PY": "español (Paraguay)", + "es_SV": "español (El Salvador)", + "es_US": "español (Estados Unidos)", + "es_UY": "español (Uruguay)", + "es_VE": "español (Venezuela)", + "et": "eesti", + "et_EE": "eesti (Eesti)", + "eu": "euskara", + "eu_ES": "euskara (Espainia)", + "ewo": "ewondo", + "ewo_CM": "ewondo (Kamərún)", + "fa": "فارسی", + "fa_AF": "فارسی (افغانستان)", + "fa_IR": "فارسی (ایران)", + "ff": "Pulaar", + "ff_Adlm": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃)", + "ff_Adlm_BF": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤄𞤵𞤪𞤳𞤭𞤲𞤢 𞤊𞤢𞤧𞤮𞥅)", + "ff_Adlm_CM": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤑𞤢𞤥𞤢𞤪𞤵𞥅𞤲)", + "ff_Adlm_GH": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤘𞤢𞤲𞤢)", + "ff_Adlm_GM": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤘𞤢𞤥𞤦𞤭𞤴𞤢)", + "ff_Adlm_GN": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤘𞤭𞤲𞤫)", + "ff_Adlm_GW": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤘𞤭𞤲𞤫-𞤄𞤭𞤧𞤢𞤱𞤮𞥅)", + "ff_Adlm_LR": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤂𞤢𞤦𞤭𞤪𞤭𞤴𞤢𞥄)", + "ff_Adlm_MR": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤃𞤮𞤪𞤼𞤢𞤲𞤭𞥅)", + "ff_Adlm_NE": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤐𞤭𞥅𞤶𞤫𞤪)", + "ff_Adlm_NG": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤐𞤢𞤶𞤫𞤪𞤭𞤴𞤢𞥄)", + "ff_Adlm_SL": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤅𞤢𞤪𞤢𞤤𞤮𞤲)", + "ff_Adlm_SN": "𞤆𞤵𞤤𞤢𞤪 (𞤀𞤁𞤂𞤢𞤃⹁ 𞤅𞤫𞤲𞤫𞤺𞤢𞥄𞤤)", + "ff_Latn": "Pulaar (Latn)", + "ff_Latn_BF": "Pulaar (Latn, Burkibaa Faaso)", + "ff_Latn_CM": "Pulaar (Latn, Kameruun)", + "ff_Latn_GH": "Pulaar (Latn, Ganaa)", + "ff_Latn_GM": "Pulaar (Latn, Gammbi)", + "ff_Latn_GN": "Pulaar (Latn, Gine)", + "ff_Latn_GW": "Pulaar (Latn, Gine-Bisaawo)", + "ff_Latn_LR": "Pulaar (Latn, Liberiyaa)", + "ff_Latn_MR": "Pulaar (Latn, Muritani)", + "ff_Latn_NE": "Pulaar (Latn, Nijeer)", + "ff_Latn_NG": "Pulaar (Latn, Nijeriyaa)", + "ff_Latn_SL": "Pulaar (Latn, Seraa liyon)", + "ff_Latn_SN": "Pulaar (Latn, Senegaal)", + "fi": "suomi", + "fi_FI": "suomi (Suomi)", + "fil": "Filipino", + "fil_PH": "Filipino (Pilipinas)", + "fo": "føroyskt", + "fo_DK": "føroyskt (Danmark)", + "fo_FO": "føroyskt (Føroyar)", + "fr": "français", + "fr_BE": "français (Belgique)", + "fr_BF": "français (Burkina Faso)", + "fr_BI": "français (Burundi)", + "fr_BJ": "français (Bénin)", + "fr_BL": "français (Saint-Barthélemy)", + "fr_CA": "français (Canada)", + "fr_CD": "français (Congo-Kinshasa)", + "fr_CF": "français (République centrafricaine)", + "fr_CG": "français (Congo-Brazzaville)", + "fr_CH": "français (Suisse)", + "fr_CI": "français (Côte d’Ivoire)", + "fr_CM": "français (Cameroun)", + "fr_DJ": "français (Djibouti)", + "fr_DZ": "français (Algérie)", + "fr_FR": "français (France)", + "fr_GA": "français (Gabon)", + "fr_GF": "français (Guyane française)", + "fr_GN": "français (Guinée)", + "fr_GP": "français (Guadeloupe)", + "fr_GQ": "français (Guinée équatoriale)", + "fr_HT": "français (Haïti)", + "fr_KM": "français (Comores)", + "fr_LU": "français (Luxembourg)", + "fr_MA": "français (Maroc)", + "fr_MC": "français (Monaco)", + "fr_MF": "français (Saint-Martin)", + "fr_MG": "français (Madagascar)", + "fr_ML": "français (Mali)", + "fr_MQ": "français (Martinique)", + "fr_MR": "français (Mauritanie)", + "fr_MU": "français (Maurice)", + "fr_NC": "français (Nouvelle-Calédonie)", + "fr_NE": "français (Niger)", + "fr_PF": "français (Polynésie française)", + "fr_PM": "français (Saint-Pierre-et-Miquelon)", + "fr_RE": "français (La Réunion)", + "fr_RW": "français (Rwanda)", + "fr_SC": "français (Seychelles)", + "fr_SN": "français (Sénégal)", + "fr_SY": "français (Syrie)", + "fr_TD": "français (Tchad)", + "fr_TG": "français (Togo)", + "fr_TN": "français (Tunisie)", + "fr_VU": "français (Vanuatu)", + "fr_WF": "français (Wallis-et-Futuna)", + "fr_YT": "français (Mayotte)", + "fur": "furlan", + "fur_IT": "furlan (Italie)", + "fy": "Frysk", + "fy_NL": "Frysk (Nederlân)", + "ga": "Gaeilge", + "ga_GB": "Gaeilge (an Ríocht Aontaithe)", + "ga_IE": "Gaeilge (Éire)", + "gd": "Gàidhlig", + "gd_GB": "Gàidhlig (An Rìoghachd Aonaichte)", + "gl": "galego", + "gl_ES": "galego (España)", + "gsw": "Schwiizertüütsch", + "gsw_CH": "Schwiizertüütsch (Schwiiz)", + "gsw_FR": "Schwiizertüütsch (Frankriich)", + "gsw_LI": "Schwiizertüütsch (Liächteschtäi)", + "gu": "ગુજરાતી", + "gu_IN": "ગુજરાતી (ભારત)", + "guz": "Ekegusii", + "guz_KE": "Ekegusii (Kenya)", + "gv": "Gaelg", + "gv_IM": "Gaelg (Ellan Vannin)", + "ha": "Hausa", + "ha_GH": "Hausa (Gana)", + "ha_NE": "Hausa (Nijar)", + "ha_NG": "Hausa (Najeriya)", + "haw": "ʻŌlelo Hawaiʻi", + "haw_US": "ʻŌlelo Hawaiʻi (ʻAmelika Hui Pū ʻIa)", + "he": "עברית", + "he_IL": "עברית (ישראל)", + "hi": "हिन्दी", + "hi_IN": "हिन्दी (भारत)", + "hr": "hrvatski", + "hr_BA": "hrvatski (Bosna i Hercegovina)", + "hr_HR": "hrvatski (Hrvatska)", + "hsb": "hornjoserbšćina", + "hsb_DE": "hornjoserbšćina (Němska)", + "hu": "magyar", + "hu_HU": "magyar (Magyarország)", + "hy": "հայերեն", + "hy_AM": "հայերեն (Հայաստան)", + "ia": "interlingua", + "ia_001": "interlingua (Mundo)", + "id": "Indonesia", + "id_ID": "Indonesia (Indonesia)", + "ig": "Igbo", + "ig_NG": "Igbo (Naịjịrịa)", + "ii": "ꆈꌠꉙ", + "ii_CN": "ꆈꌠꉙ (ꍏꇩ)", + "is": "íslenska", + "is_IS": "íslenska (Ísland)", + "it": "italiano", + "it_CH": "italiano (Svizzera)", + "it_IT": "italiano (Italia)", + "it_SM": "italiano (San Marino)", + "it_VA": "italiano (Città del Vaticano)", + "ja": "日本語", + "ja_JP": "日本語 (日本)", + "jgo": "Ndaꞌa", + "jgo_CM": "Ndaꞌa (Kamɛlûn)", + "jmc": "Kimachame", + "jmc_TZ": "Kimachame (Tanzania)", + "jv": "Jawa", + "jv_ID": "Jawa (Indonésia)", + "ka": "ქართული", + "ka_GE": "ქართული (საქართველო)", + "kab": "Taqbaylit", + "kab_DZ": "Taqbaylit (Lezzayer)", + "kam": "Kikamba", + "kam_KE": "Kikamba (Kenya)", + "kde": "Chimakonde", + "kde_TZ": "Chimakonde (Tanzania)", + "kea": "kabuverdianu", + "kea_CV": "kabuverdianu (Kabu Verdi)", + "khq": "Koyra ciini", + "khq_ML": "Koyra ciini (Maali)", + "ki": "Gikuyu", + "ki_KE": "Gikuyu (Kenya)", + "kk": "қазақ тілі", + "kk_KZ": "қазақ тілі (Қазақстан)", + "kkj": "kakɔ", + "kkj_CM": "kakɔ (Kamɛrun)", + "kl": "kalaallisut", + "kl_GL": "kalaallisut (Kalaallit Nunaat)", + "kln": "Kalenjin", + "kln_KE": "Kalenjin (Emetab Kenya)", + "km": "ខ្មែរ", + "km_KH": "ខ្មែរ (កម្ពុជា)", + "kn": "ಕನ್ನಡ", + "kn_IN": "ಕನ್ನಡ (ಭಾರತ)", + "ko": "한국어", + "ko_KP": "한국어(조선민주주의인민공화국)", + "ko_KR": "한국어(대한민국)", + "kok": "कोंकणी", + "kok_IN": "कोंकणी (भारत)", + "ks": "کٲشُر", + "ks_Arab": "کٲشُر (اَربی)", + "ks_Arab_IN": "کٲشُر (اَربی, ہِندوستان)", + "ksb": "Kishambaa", + "ksb_TZ": "Kishambaa (Tanzania)", + "ksf": "rikpa", + "ksf_CM": "rikpa (kamɛrún)", + "ksh": "Kölsch", + "ksh_DE": "Kölsch en Doütschland", + "ku": "kurdî", + "ku_TR": "kurdî (Tirkiye)", + "kw": "kernewek", + "kw_GB": "kernewek (Rywvaneth Unys)", + "ky": "кыргызча", + "ky_KG": "кыргызча (Кыргызстан)", + "lag": "Kɨlaangi", + "lag_TZ": "Kɨlaangi (Taansanía)", + "lb": "Lëtzebuergesch", + "lb_LU": "Lëtzebuergesch (Lëtzebuerg)", + "lg": "Luganda", + "lg_UG": "Luganda (Yuganda)", + "lkt": "Lakȟólʼiyapi", + "lkt_US": "Lakȟólʼiyapi (Mílahaŋska Tȟamákȟočhe)", + "ln": "lingála", + "ln_AO": "lingála (Angóla)", + "ln_CD": "lingála (Republíki ya Kongó Demokratíki)", + "ln_CF": "lingála (Repibiki ya Afríka ya Káti)", + "ln_CG": "lingála (Kongo)", + "lo": "ລາວ", + "lo_LA": "ລາວ (ລາວ)", + "lrc": "لۊری شومالی", + "lrc_IQ": "لۊری شومالی (IQ)", + "lrc_IR": "لۊری شومالی (IR)", + "lt": "lietuvių", + "lt_LT": "lietuvių (Lietuva)", + "lu": "Tshiluba", + "lu_CD": "Tshiluba (Ditunga wa Kongu)", + "luo": "Dholuo", + "luo_KE": "Dholuo (Kenya)", + "luy": "Luluhia", + "luy_KE": "Luluhia (Kenya)", + "lv": "latviešu", + "lv_LV": "latviešu (Latvija)", + "mai": "मैथिली", + "mai_IN": "मैथिली (भारत)", + "mas": "Maa", + "mas_KE": "Maa (Kenya)", + "mas_TZ": "Maa (Tansania)", + "mer": "Kĩmĩrũ", + "mer_KE": "Kĩmĩrũ (Kenya)", + "mfe": "kreol morisien", + "mfe_MU": "kreol morisien (Moris)", + "mg": "Malagasy", + "mg_MG": "Malagasy (Madagasikara)", + "mgh": "Makua", + "mgh_MZ": "Makua (Umozambiki)", + "mgo": "metaʼ", + "mgo_CM": "metaʼ (Kamalun)", + "mi": "te reo Māori", + "mi_NZ": "te reo Māori (Aotearoa)", + "mk": "македонски", + "mk_MK": "македонски (Северна Македонија)", + "ml": "മലയാളം", + "ml_IN": "മലയാളം (ഇന്ത്യ)", + "mn": "монгол", + "mn_MN": "монгол (Монгол)", + "mni": "মৈতৈলোন্", + "mni_Beng": "মৈতৈলোন্ (বাংলা)", + "mni_Beng_IN": "মৈতৈলোন্ (বাংলা, ইন্দিয়া)", + "mr": "मराठी", + "mr_IN": "मराठी (भारत)", + "ms": "Melayu", + "ms_BN": "Melayu (Brunei)", + "ms_ID": "Melayu (Indonesia)", + "ms_MY": "Melayu (Malaysia)", + "ms_SG": "Melayu (Singapura)", + "mt": "Malti", + "mt_MT": "Malti (Malta)", + "mua": "MUNDAŊ", + "mua_CM": "MUNDAŊ (kameruŋ)", + "my": "မြန်မာ", + "my_MM": "မြန်မာ (မြန်မာ)", + "mzn": "مازرونی", + "mzn_IR": "مازرونی (ایران)", + "naq": "Khoekhoegowab", + "naq_NA": "Khoekhoegowab (Namibiab)", + "nb": "norsk bokmål", + "nb_NO": "norsk bokmål (Norge)", + "nb_SJ": "norsk bokmål (Svalbard og Jan Mayen)", + "nd": "isiNdebele", + "nd_ZW": "isiNdebele (Zimbabwe)", + "ne": "नेपाली", + "ne_IN": "नेपाली (भारत)", + "ne_NP": "नेपाली (नेपाल)", + "nl": "Nederlands", + "nl_AW": "Nederlands (Aruba)", + "nl_BE": "Nederlands (België)", + "nl_BQ": "Nederlands (Caribisch Nederland)", + "nl_CW": "Nederlands (Curaçao)", + "nl_NL": "Nederlands (Nederland)", + "nl_SR": "Nederlands (Suriname)", + "nl_SX": "Nederlands (Sint-Maarten)", + "nmg": "nmg", + "nmg_CM": "nmg (Kamerun)", + "nn": "norsk nynorsk", + "nn_NO": "norsk nynorsk (Noreg)", + "nnh": "Shwóŋò ngiembɔɔn", + "nnh_CM": "Shwóŋò ngiembɔɔn (Kàmalûm)", + "no": "norsk", + "nus": "Thok Nath", + "nus_SS": "Thok Nath (SS)", + "nyn": "Runyankore", + "nyn_UG": "Runyankore (Uganda)", + "om": "Oromoo", + "om_ET": "Oromoo (Itoophiyaa)", + "om_KE": "Oromoo (Keeniyaa)", + "or": "ଓଡ଼ିଆ", + "or_IN": "ଓଡ଼ିଆ (ଭାରତ)", + "os": "ирон", + "os_GE": "ирон (Гуырдзыстон)", + "os_RU": "ирон (Уӕрӕсе)", + "pa": "ਪੰਜਾਬੀ", + "pa_Arab": "پنجابی (عربی)", + "pa_Arab_PK": "پنجابی (عربی, پاکستان)", + "pa_Guru": "ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ)", + "pa_Guru_IN": "ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ, ਭਾਰਤ)", + "pcm": "Naijíriá Píjin", + "pcm_NG": "Naijíriá Píjin (Naijíria)", + "pl": "polski", + "pl_PL": "polski (Polska)", + "ps": "پښتو", + "ps_AF": "پښتو (افغانستان)", + "ps_PK": "پښتو (پاکستان)", + "pt": "português", + "pt_AO": "português (Angola)", + "pt_BR": "português (Brasil)", + "pt_CH": "português (Suíça)", + "pt_CV": "português (Cabo Verde)", + "pt_GQ": "português (Guiné Equatorial)", + "pt_GW": "português (Guiné-Bissau)", + "pt_LU": "português (Luxemburgo)", + "pt_MO": "português (Macau, RAE da China)", + "pt_MZ": "português (Moçambique)", + "pt_PT": "português (Portugal)", + "pt_ST": "português (São Tomé e Príncipe)", + "pt_TL": "português (Timor-Leste)", + "qu": "Runasimi", + "qu_BO": "Runasimi (Bolivia)", + "qu_EC": "Runasimi (Ecuador)", + "qu_PE": "Runasimi (Perú)", + "rm": "rumantsch", + "rm_CH": "rumantsch (Svizra)", + "rn": "Ikirundi", + "rn_BI": "Ikirundi (Uburundi)", + "ro": "română", + "ro_MD": "română (Republica Moldova)", + "ro_RO": "română (România)", + "rof": "Kihorombo", + "rof_TZ": "Kihorombo (Tanzania)", + "ru": "русский", + "ru_BY": "русский (Беларусь)", + "ru_KG": "русский (Киргизия)", + "ru_KZ": "русский (Казахстан)", + "ru_MD": "русский (Молдова)", + "ru_RU": "русский (Россия)", + "ru_UA": "русский (Украина)", + "rw": "Kinyarwanda", + "rw_RW": "Kinyarwanda (U Rwanda)", + "rwk": "Kiruwa", + "rwk_TZ": "Kiruwa (Tanzania)", + "sa": "संस्कृत भाषा", + "sa_IN": "संस्कृत भाषा (भारतः)", + "sah": "саха тыла", + "sah_RU": "саха тыла (Арассыыйа)", + "saq": "Kisampur", + "saq_KE": "Kisampur (Kenya)", + "sat": "ᱥᱟᱱᱛᱟᱲᱤ", + "sat_Olck": "ᱥᱟᱱᱛᱟᱲᱤ (ᱚᱞ ᱪᱤᱠᱤ)", + "sat_Olck_IN": "ᱥᱟᱱᱛᱟᱲᱤ (ᱚᱞ ᱪᱤᱠᱤ, ᱤᱱᱰᱤᱭᱟ)", + "sbp": "Ishisangu", + "sbp_TZ": "Ishisangu (Tansaniya)", + "sc": "sardu", + "sc_IT": "sardu (Itàlia)", + "sd": "سنڌي", + "sd_Arab": "سنڌي (عربي)", + "sd_Arab_PK": "سنڌي (عربي, پاڪستان)", + "sd_Deva": "सिन्धी (देवनागिरी)", + "sd_Deva_IN": "सिन्धी (देवनागिरी, भारत)", + "se": "davvisámegiella", + "se_FI": "davvisámegiella (Suopma)", + "se_NO": "davvisámegiella (Norga)", + "se_SE": "davvisámegiella (Ruoŧŧa)", + "seh": "sena", + "seh_MZ": "sena (Moçambique)", + "ses": "Koyraboro senni", + "ses_ML": "Koyraboro senni (Maali)", + "sg": "Sängö", + "sg_CF": "Sängö (Ködörösêse tî Bêafrîka)", + "shi": "ⵜⴰⵛⵍⵃⵉⵜ", + "shi_Latn": "Tashelḥiyt (Latn)", + "shi_Latn_MA": "Tashelḥiyt (Latn, lmɣrib)", + "shi_Tfng": "ⵜⴰⵛⵍⵃⵉⵜ (Tfng)", + "shi_Tfng_MA": "ⵜⴰⵛⵍⵃⵉⵜ (Tfng, ⵍⵎⵖⵔⵉⴱ)", + "si": "සිංහල", + "si_LK": "සිංහල (ශ්‍රී ලංකාව)", + "sk": "slovenčina", + "sk_SK": "slovenčina (Slovensko)", + "sl": "slovenščina", + "sl_SI": "slovenščina (Slovenija)", + "smn": "anarâškielâ", + "smn_FI": "anarâškielâ (Suomâ)", + "sn": "chiShona", + "sn_ZW": "chiShona (Zimbabwe)", + "so": "Soomaali", + "so_DJ": "Soomaali (Jabuuti)", + "so_ET": "Soomaali (Itoobiya)", + "so_KE": "Soomaali (Kenya)", + "so_SO": "Soomaali (Soomaaliya)", + "sq": "shqip", + "sq_AL": "shqip (Shqipëri)", + "sq_MK": "shqip (Maqedonia e Veriut)", + "sq_XK": "shqip (Kosovë)", + "sr": "српски", + "sr_Cyrl": "српски (ћирилица)", + "sr_Cyrl_BA": "српски (ћирилица, Босна и Херцеговина)", + "sr_Cyrl_ME": "српски (ћирилица, Црна Гора)", + "sr_Cyrl_RS": "српски (ћирилица, Србија)", + "sr_Cyrl_XK": "српски (ћирилица, Косово)", + "sr_Latn": "srpski (latinica)", + "sr_Latn_BA": "srpski (latinica, Bosna i Hercegovina)", + "sr_Latn_ME": "srpski (latinica, Crna Gora)", + "sr_Latn_RS": "srpski (latinica, Srbija)", + "sr_Latn_XK": "srpski (latinica, Kosovo)", + "su": "Basa Sunda", + "su_Latn": "Basa Sunda (Latin)", + "su_Latn_ID": "Basa Sunda (Latin, ID)", + "sv": "svenska", + "sv_AX": "svenska (Åland)", + "sv_FI": "svenska (Finland)", + "sv_SE": "svenska (Sverige)", + "sw": "Kiswahili", + "sw_CD": "Kiswahili (Jamhuri ya Kidemokrasia ya Kongo)", + "sw_KE": "Kiswahili (Kenya)", + "sw_TZ": "Kiswahili (Tanzania)", + "sw_UG": "Kiswahili (Uganda)", + "ta": "தமிழ்", + "ta_IN": "தமிழ் (இந்தியா)", + "ta_LK": "தமிழ் (இலங்கை)", + "ta_MY": "தமிழ் (மலேசியா)", + "ta_SG": "தமிழ் (சிங்கப்பூர்)", + "te": "తెలుగు", + "te_IN": "తెలుగు (భారతదేశం)", + "teo": "Kiteso", + "teo_KE": "Kiteso (Kenia)", + "teo_UG": "Kiteso (Uganda)", + "tg": "тоҷикӣ", + "tg_TJ": "тоҷикӣ (Тоҷикистон)", + "th": "ไทย", + "th_TH": "ไทย (ไทย)", + "ti": "ትግርኛ", + "ti_ER": "ትግርኛ (ኤርትራ)", + "ti_ET": "ትግርኛ (ኢትዮጵያ)", + "tk": "türkmen dili", + "tk_TM": "türkmen dili (Türkmenistan)", + "to": "lea fakatonga", + "to_TO": "lea fakatonga (Tonga)", + "tr": "Türkçe", + "tr_CY": "Türkçe (Kıbrıs)", + "tr_TR": "Türkçe (Türkiye)", + "tt": "татар", + "tt_RU": "татар (Россия)", + "twq": "Tasawaq senni", + "twq_NE": "Tasawaq senni (Nižer)", + "tzm": "Tamaziɣt n laṭlaṣ", + "tzm_MA": "Tamaziɣt n laṭlaṣ (Meṛṛuk)", + "ug": "ئۇيغۇرچە", + "ug_CN": "ئۇيغۇرچە (جۇڭگو)", + "uk": "українська", + "uk_UA": "українська (Україна)", + "ur": "اردو", + "ur_IN": "اردو (بھارت)", + "ur_PK": "اردو (پاکستان)", + "uz": "o‘zbek", + "uz_Arab": "اوزبیک (عربی)", + "uz_Arab_AF": "اوزبیک (عربی, افغانستان)", + "uz_Cyrl": "ўзбекча (Кирил)", + "uz_Cyrl_UZ": "ўзбекча (Кирил, Ўзбекистон)", + "uz_Latn": "o‘zbek (lotin)", + "uz_Latn_UZ": "o‘zbek (lotin, Oʻzbekiston)", + "vai": "ꕙꔤ", + "vai_Latn": "Vai (Latn)", + "vai_Latn_LR": "Vai (Latn, Laibhiya)", + "vai_Vaii": "ꕙꔤ (Vaii)", + "vai_Vaii_LR": "ꕙꔤ (Vaii, ꕞꔤꔫꕩ)", + "vi": "Tiếng Việt", + "vi_VN": "Tiếng Việt (Việt Nam)", + "vun": "Kyivunjo", + "vun_TZ": "Kyivunjo (Tanzania)", + "wae": "Walser", + "wae_CH": "Walser (Schwiz)", + "wo": "Wolof", + "wo_SN": "Wolof (Senegaal)", + "xh": "isiXhosa", + "xh_ZA": "isiXhosa (eMzantsi Afrika)", + "xog": "Olusoga", + "xog_UG": "Olusoga (Yuganda)", + "yav": "nuasue", + "yav_CM": "nuasue (Kemelún)", + "yi": "ייִדיש", + "yi_001": "ייִדיש (וועלט)", + "yo": "Èdè Yorùbá", + "yo_BJ": "Èdè Yorùbá (Bɛ̀nɛ̀)", + "yo_NG": "Èdè Yorùbá (Nàìjíríà)", + "yue": "粵語", + "yue_Hans": "粤语 (简体)", + "yue_Hans_CN": "粤语 (简体,中华人民共和国)", + "yue_Hant": "粵語 (繁體)", + "yue_Hant_HK": "粵語 (繁體,中華人民共和國香港特別行政區)", + "zgh": "ⵜⴰⵎⴰⵣⵉⵖⵜ", + "zgh_MA": "ⵜⴰⵎⴰⵣⵉⵖⵜ (ⵍⵎⵖⵔⵉⴱ)", + "zh": "中文", + "zh_Hans": "中文(简体)", + "zh_Hans_CN": "中文(简体,中国)", + "zh_Hans_HK": "中文(简体,中国香港特别行政区)", + "zh_Hans_MO": "中文(简体,中国澳门特别行政区)", + "zh_Hans_SG": "中文(简体,新加坡)", + "zh_Hant": "中文(繁體)", + "zh_Hant_HK": "中文(繁體字,中國香港特別行政區)", + "zh_Hant_MO": "中文(繁體字,中國澳門特別行政區)", + "zh_Hant_TW": "中文(繁體,台灣)", + "zu": "isiZulu", + "zu_ZA": "isiZulu (iNingizimu Afrika)" +} diff --git a/Editor/UI/Localization/language_names.json.meta b/Editor/UI/Localization/language_names.json.meta new file mode 100644 index 0000000..5e2f1fb --- /dev/null +++ b/Editor/UI/Localization/language_names.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 354065f768e2ade459a4e3112b591735 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: