Skip to content

Commit 576115d

Browse files
committed
BL-14273 searching by any iso639-3 code,tag, or tags from langtags.json should bring up corresponding entry
1 parent db77c90 commit 576115d

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)