Skip to content

Commit

Permalink
Fix language codes in search (#148)
Browse files Browse the repository at this point in the history
Fixes search feature for Chinese, Dutch, French, German, Malay,
and Polish.
  • Loading branch information
skalee authored Jul 12, 2020
1 parent eb6c032 commit b9e9cb6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
19 changes: 11 additions & 8 deletions _source/assets/js/concept-search-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ const CONCEPTS_URL = '/api/concepts-index-list.json';
const LANGUAGES = [
'eng',
'ara',
'spa',
'swe',
'kor',
'rus',
'ger',
'fre',
'dan',
'deu',
'fin',
'fra',
'jpn',
'dan',
'chi',
'kor',
'msa',
'nld',
'pol',
'rus',
'spa',
'swe',
'zho',
];

var concepts = null;
Expand Down
19 changes: 11 additions & 8 deletions _source/assets/js/concept-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@
const LANGUAGES = [
'eng',
'ara',
'spa',
'swe',
'kor',
'rus',
'ger',
'fre',
'dan',
'deu',
'fin',
'fra',
'jpn',
'dan',
'chi',
'kor',
'msa',
'nld',
'pol',
'rus',
'spa',
'swe',
'zho',
];


Expand Down

0 comments on commit b9e9cb6

Please sign in to comment.