add fuzzy finder to langlist cli

This commit is contained in:
2023-08-27 22:28:34 +05:30
parent 9ad072eba7
commit f586163648
8 changed files with 74 additions and 22 deletions

View File

@@ -232,12 +232,13 @@ func LangListWatson(listType string) []List {
Name: "Welsh",
},
}
var ListD []List
if listType == "sl" {
auto := List{
auto := []List{{
Id: "auto",
Name: "Detect Language",
}
ListData = append(ListData, auto)
}}
ListD = append(append([]List{}, auto...), ListData...)
}
return ListData
return ListD
}