Skip to content

Commit 391f268

Browse files
authored
Merge pull request #59 from sillsdev/BL-14273-search-by-other-tags
BL-14273 searching by any iso639-3 code,tag, or tags from langtags.js… (#59)
2 parents 9cf14b6 + 576115d commit 391f268

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/language-chooser/common/find-language/searchForLanguage.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ const exactMatchPrioritizableFuseSearchKeys = [
2020
{ name: "exonym", weight: 100 },
2121
{ name: "languageSubtag", weight: 80 },
2222
{ name: "names", weight: 8 },
23+
24+
// These are currently not displayed on the card, but we still want corresponding results to come up if people search for them
25+
{ name: "iso639_3_code", weight: 70 },
26+
{ name: "alternativeTags", weight: 70 },
2327
];
2428
// We will bring results that exactly whole-word match or prefix-match to the top of the list
2529
// but don't want to do this for region names

0 commit comments

Comments
 (0)