Skip to content
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

feat: Show specific languages in the language settings dropdown #937

Open
OmarIthawi opened this issue Nov 15, 2023 · 1 comment
Open

feat: Show specific languages in the language settings dropdown #937

OmarIthawi opened this issue Nov 15, 2023 · 1 comment

Comments

@OmarIthawi
Copy link
Member

OmarIthawi commented Nov 15, 2023

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,
@OmarIthawi
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant