mozhi/utils/langlist-google.go

551 lines
6.2 KiB
Go
Raw Normal View History

2023-07-22 19:50:21 +05:30
package utils
func LangListGoogle(listType string) []List {
// IDs got from original simplytranslate-web and trial and error. Usually first three letters of language.
2023-08-27 19:54:30 +05:30
ListData := []List{
{
2023-07-22 19:50:21 +05:30
Id: "af",
Name: "Afrikaans",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sq",
Name: "Albanian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "am",
Name: "Amharic",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ar",
Name: "Arabic",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "hy",
Name: "Armenian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "as",
Name: "Assamese",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ay",
Name: "Aymara",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "az",
Name: "Azerbaijani",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "bm",
Name: "Bambara",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "eu",
Name: "Basque",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "be",
Name: "Belarusian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "bn",
Name: "Bengali",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "bho",
Name: "Bhojpuri",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "bs",
Name: "Bosnian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "bg",
Name: "Bulgarian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ca",
Name: "Catalan",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ceb",
Name: "Cebuano",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ny",
Name: "Chichewa",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "zh",
Name: "Chinese (Simplified)",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "zh-TW",
Name: "Chinese (Traditional)",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "co",
Name: "Corsican",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "hr",
Name: "Croatian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "cs",
Name: "Czech",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "da",
Name: "Danish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "dv",
Name: "Dhivehi",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "doi",
Name: "Dogri",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "nl",
Name: "Dutch",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "en",
Name: "English",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "eo",
Name: "Esperanto",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "et",
Name: "Estonian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ee",
Name: "Ewe",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "tl",
Name: "Filipino",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "fi",
Name: "Finnish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "fr",
Name: "French",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "fy",
Name: "Frisian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "gl",
Name: "Galician",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ka",
Name: "Georgian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "de",
Name: "German",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "el",
Name: "Greek",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "gn",
Name: "Guarani",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "gu",
Name: "Gujarati",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ht",
Name: "Haitian Creole",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ha",
Name: "Hausa",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "haw",
Name: "Hawaiian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "iw",
Name: "Hebrew",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "hi",
Name: "Hindi",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "hmn",
Name: "Hmong",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "hu",
Name: "Hungarian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "is",
Name: "Icelandic",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ig",
Name: "Igbo",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ilo",
Name: "Ilocano",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "id",
Name: "Indonesian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ga",
Name: "Irish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "it",
Name: "Italian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ja",
Name: "Japanese",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "jw",
Name: "Javanese",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "kn",
Name: "Kannada",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "kk",
Name: "Kazakh",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "km",
Name: "Khmer",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "rw",
Name: "Kinyarwanda",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "gom",
Name: "Konkani",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ko",
Name: "Korean",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "kri",
Name: "Krio",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ku",
Name: "Kurdish (Kurmanji)",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ckb",
Name: "Kurdish (Sorani)",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ky",
Name: "Kyrgyz",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "lo",
Name: "Lao",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "la",
Name: "Latin",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "lv",
Name: "Latvian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ln",
Name: "Lingala",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "lt",
Name: "Lithuanian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "lg",
Name: "Luganda",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "lb",
Name: "Luxembourgish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "mk",
Name: "Macedonian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "mai",
Name: "Maithili",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "mg",
Name: "Malagasy",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ms",
Name: "Malay",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ml",
Name: "Malayalam",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "mt",
Name: "Maltese",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "mi",
Name: "Maori",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "mr",
Name: "Marathi",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "mni-Mtei",
Name: "Meiteilon (Manipuri)",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "lus",
Name: "Mizo",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "mn",
Name: "Mongolian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "my",
Name: "Myanmar (Burmese)",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ne",
Name: "Nepali",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "no",
Name: "Norwegian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "or",
Name: "Odia (Oriya)",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "om",
Name: "Oromo",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ps",
Name: "Pashto",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "fa",
Name: "Persian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "pl",
Name: "Polish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "pt",
Name: "Portuguese",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "pa",
Name: "Punjabi",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "qu",
Name: "Quechua",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ro",
Name: "Romanian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ru",
Name: "Russian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sm",
Name: "Samoan",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sa",
Name: "Sanskrit",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "gd",
Name: "Scots Gaelic",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "nso",
Name: "Sepedi",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sr",
Name: "Serbian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "st",
Name: "Sesotho",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sn",
Name: "Shona",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sd",
Name: "Sindhi",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "si",
Name: "Sinhala",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sk",
Name: "Slovak",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sl",
Name: "Slovenian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "so",
Name: "Somali",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "es",
Name: "Spanish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "su",
Name: "Sundanese",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sw",
Name: "Swahili",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "sv",
Name: "Swedish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "tg",
Name: "Tajik",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ta",
Name: "Tamil",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "tt",
Name: "Tatar",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "te",
Name: "Telugu",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "th",
Name: "Thai",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ti",
Name: "Tigrinya",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ts",
Name: "Tsonga",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "tr",
Name: "Turkish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "tk",
Name: "Turkmen",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ak",
Name: "Twi",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "uk",
Name: "Ukrainian",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ur",
Name: "Urdu",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "ug",
Name: "Uyghur",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "uz",
Name: "Uzbek",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "vi",
Name: "Vietnamese",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "cy",
Name: "Welsh",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "xh",
Name: "Xhosa",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "yi",
Name: "Yiddish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "yo",
Name: "Yoruba",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "zu",
Name: "Zulu",
},
}
2023-08-27 22:28:34 +05:30
var ListD []List
2023-07-22 19:50:21 +05:30
if listType == "sl" {
2023-08-27 22:28:34 +05:30
auto := []List{{
2023-07-22 19:50:21 +05:30
Id: "auto",
Name: "Detect Language",
2023-08-27 22:28:34 +05:30
}}
ListD = append(append([]List{}, auto...), ListData...)
2023-08-28 20:41:57 +05:30
} else {
ListD = ListData
2023-07-22 19:50:21 +05:30
}
2023-08-27 22:28:34 +05:30
return ListD
2023-07-22 19:50:21 +05:30
}