2023-07-22 14:20:21 +00:00
|
|
|
package utils
|
|
|
|
|
|
|
|
func LangListDeepl(listType string) []List {
|
|
|
|
// IDs got from deepl.com/translator
|
|
|
|
// Every time you change language, the # will get updated with the lang code.
|
2023-08-27 14:24:30 +00:00
|
|
|
ListData := []List{
|
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "bg",
|
|
|
|
Name: "Bulgarian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "zh",
|
|
|
|
Name: "Chinese (Simplified)",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "cs",
|
|
|
|
Name: "Czech",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "da",
|
|
|
|
Name: "Danish",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "nl",
|
|
|
|
Name: "Dutch",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "en",
|
|
|
|
Name: "English",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "et",
|
|
|
|
Name: "Estonian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "fi",
|
|
|
|
Name: "Finnish",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "fr",
|
|
|
|
Name: "French",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "de",
|
|
|
|
Name: "Germany",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "el",
|
|
|
|
Name: "Greek",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "hu",
|
|
|
|
Name: "Hungarian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "id",
|
|
|
|
Name: "Indonesian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "it",
|
|
|
|
Name: "Italian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "ja",
|
|
|
|
Name: "Japanese",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "ko",
|
|
|
|
Name: "Korean",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "lv",
|
|
|
|
Name: "Latvian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "lt",
|
|
|
|
Name: "Lithuanian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "nb",
|
|
|
|
Name: "Norwegian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "pl",
|
|
|
|
Name: "Polish",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "pt",
|
|
|
|
Name: "Portugese",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "ro",
|
|
|
|
Name: "Romanian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "ru",
|
|
|
|
Name: "Russian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "sk",
|
|
|
|
Name: "Slovak",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "sl",
|
|
|
|
Name: "Slovenian",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "es",
|
|
|
|
Name: "Spanish",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "sv",
|
|
|
|
Name: "Swedish",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "tr",
|
|
|
|
Name: "Turkish",
|
|
|
|
},
|
2023-08-27 14:24:30 +00:00
|
|
|
{
|
2023-07-22 14:20:21 +00:00
|
|
|
Id: "uk",
|
|
|
|
Name: "Ukrainian",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
if listType == "sl" {
|
|
|
|
auto := List{
|
|
|
|
Id: "auto",
|
|
|
|
Name: "Detect Language",
|
|
|
|
}
|
|
|
|
ListData = append(ListData, auto)
|
|
|
|
}
|
|
|
|
return ListData
|
|
|
|
}
|