mozhi/utils/langlist-libre.go

83 lines
988 B
Go
Raw Normal View History

2023-07-22 19:50:21 +05:30
package utils
func LangListLibreTranslate(listType string) []List {
2023-08-27 19:54:30 +05:30
ListData := []List{
{
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: "ar",
Name: "Arabic",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "zh",
Name: "Chinese",
},
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: "de",
Name: "German",
},
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: "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: "ko",
Name: "Korean",
},
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: "ru",
Name: "Russian",
},
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: "tr",
Name: "Turkish",
},
2023-08-27 19:54:30 +05:30
{
2023-07-22 19:50:21 +05:30
Id: "vi",
Name: "Vietnamese",
},
}
if listType == "sl" {
auto := List{
Id: "auto",
Name: "Detect Language",
}
ListData = append(ListData, auto)
}
return ListData
}