Page MenuHomePhabricator

Honor Accept-Language header to set language variant
Closed, DeclinedPublic

Description

When the incoming request has an Accept-Language header set then it should use the same for the backend requests.
This is to ensure that the service responds with the correct strings on wikis which allow different language variants, like zhwiki.

Event Timeline

bearND raised the priority of this task from to High.
bearND updated the task description. (Show Details)
bearND moved this task to Doing on the Mobile-Content-Service board.
bearND subscribed.

This task is not ready to be worked on yet since Parsoid doesn't honor the Accept-Language header either. First we need to see what the outcome of T113002 is.

Nemo_bis renamed this task from Honor Accept-Language header to Honor Accept-Language header to set language variant.Nov 20 2015, 7:37 AM
Nemo_bis added a project: I18n.
Nemo_bis subscribed.

Assigning per https://phabricator.wikimedia.org/T119022#1916790:

"Amir: Define the desired behavior from the user perspective according to the suggestion to write in your preferred variant"

I think Mobile Content Service should just follow the same approach that is decided in T122942: RFC: Support language variants in the REST API.