API for Setting and Getting Site Language

Description

Recently, edX web app introduced a new feature Site Language under the learner account to set a localized language for the edX web app. On selecting site language edX web app sets cookie `prod-edx-language-preference` and all the web pages are translated according to the value of `prod-edx-language-preference`.

On mobile, we need this information(the value of site language) so that the learner has a truly localized experience across all the platforms (web & mobile).

On mobile, we are already getting the learner's information by hitting API /api/user/v1/accounts/{username}. It would be nice if the server can return the desired information(site language) in the same API. We also need an API to set the site language from the mobile.

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Unassigned

Reporter

Saeed Bashir

Labels

None

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Epic Link

Priority

Unset
Configure