EBISPOT / ols4

Version 4 of the EMBL-EBI Ontology Lookup Service (OLS)
http://www.ebi.ac.uk/ols4/
Apache License 2.0
34 stars 15 forks source link

Search localization #200

Open jamesamcl opened 1 year ago

jamesamcl commented 1 year ago

For the homepage search we originally envisaged that it would search in all languages. However in practice this creates a lot of noise because the European languages are so similar. This is from the HP internationalised version from @matentzn :

Screenshot 2023-02-08 at 01 26 54

(I already filtered the jump to to only show English strings, but the autocomplete list still has everything.)

We should probably default the home search box to English (or the language of the user's browser?) with options to switch to different languages. Also, the lang option in the API only filters the results, not the language you are searching in. We may need to have both search language and result language.

jamesamcl commented 1 year ago

For the ontology page, we can just make the search box respect the language picker in the top right

Screenshot 2023-02-10 at 22 21 57

For the homepage search box we will have to add a new picker.