openfun / marsha

:clapper: An opensource LTI Learning Content Management System (LCMS)
MIT License
104 stars 24 forks source link

Manage header Accept-language #2519

Open lunika opened 7 months ago

lunika commented 7 months ago

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.

Some part of the application is not translated in the user interface. This happen when the text is sent by the backend application, by default it uses english and if no header Accept-Language is set no translation is made

Describe the solution you'd like

Set in the request the header Accept-Language using the language used in the current session

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language

AntoLC commented 7 months ago

It should be done: https://github.com/openfun/marsha/pull/2394

Do you have a example of API call that doesn't translate ?