openedx/frontend-app-account

feat: Show specific languages in the language settings dropdown

Opened this issue · 1 comments

Problem

This MFE allows to select from all the supported languages.

This is not desired for some installations because it gives the learners the impression that the site supports 10+ languages where in reality it supports one language or two.

Affected deployments

@sambapete reported that @EDUlib needs only French and English for their learners.

@nelc needs only two languages Arabic and English. This is the same for most large Arabic deployments.

Possible solution

One way to support this configuration is to update the make pull_translations in this repository:

  • Limit the languages being pulled with atlas via atlas pull --filter=fr_CA,ar,en
  • Update the languages list file to only show the languages being pulled instead of the hard coded constant:
    const siteLanguageList = [
    {
    code: 'en',
    name: 'English',
    released: true,
    },
    {
    code: 'ar',
    name: 'العربية',
    released: true,
    },
    {
    code: 'ca',
    name: 'Català',
    released: false,
    },
    {
    code: 'es-419',
    name: 'Español (Latinoamérica)',
    released: true,

This issue came out during the Translations Working Group on 15 Nov 2023.