-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation of search results page #1046
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1046 +/- ##
=======================================
Coverage 39.35% 39.36%
=======================================
Files 58 58
Lines 4060 4075 +15
Branches 2236 2245 +9
=======================================
+ Hits 1598 1604 +6
Misses 1091 1091
- Partials 1371 1380 +9 ☔ View full report in Codecov by Sentry. |
@veloman-yunkan I guess its time to rebase this PR. |
However it is NOT actually translated by the backend yet
However it is NOT actually translated by the backend yet
However it is NOT actually translated by the backend yet
Now the search results page is presented by the backend in the language controlled by the value of the `userlang` URL query parameter (or, if the latter is missing, the value of the `Accept-Language:` HTTP header). Note that the front-end doesn't yet take advantage of this functionality.
1cde0dd
to
34cd553
Compare
@kelson42 You are right. I could sense the same recommendation in my horoscope for today and humbly complied with it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Fixes #1028
Contrary to #1032 (comment), no front-end side translation is performed on the search results page. Instead the
/search
endpoint is called with theuserlang
query parameter explicitly provided. The downside is the reduced opportunity for HTTP-caching search requests coming from users using different UI languages.Currently no real translations of messages related to search results are available. To test this change you will have to use the
test
language that is excluded from the UI language selector. It can be set by adding (once)?userlang=test
after/viewer
in the browser address bar.Known issues: