mozhi/utils/langlist-libre.go

84 lines
1.0 KiB
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",
},
}
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-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
}