Add translations for search component UI texts#1855
Conversation
|
miguelvaara
left a comment
There was a problem hiding this comment.
Everything looks really good, both the tests and syntax checks pass as well.
Hopefully we can get the Sámi terms into the global search soon, just like they are already partially implemented in the vocabulary search (the hint text in the search field). That would improve equality between users of different languages and also make the UI more consistent.
It is also a bit unfortunate thatnow we lost translations for a few important languages because of the "Search language: any" change, but on the other hand, it encourages us to motivate the translator community to contribute more.
Of course these comments are not about the implementation itself but the changes you made work really well.
I think it si ready to merge.
I migrated the translations for this term to the new message ID in Lokalise, so they were not lost. |



Reasons for creating this PR
The search component (global & vocabulary) were missing some UI translations. This PR adds them. It also changes the text "Global search" to "Search across vocabularies", which is hopefully more user-friendly.
Link to relevant issue(s), if any
Description of the changes in this PR
Search language: anywhich got translated intoAny languagein English. I simplified this so that the base message isAny language.Known problems or uncertainties in this PR
Didn't add Cypress tests for the vocab search bar. We already have some of those (e.g, the global search bar) and UI translation is such a basic mechanism that it doesn't make sense to test every single use of it.
Checklist
.sr-onlyclass, color contrast)