Skip to content

Language selector should sort language output #1338

Description

@deborahgu

Expected behavior

The list of languages should be sorted.

Actual behavior

The list of languages is in no particular order.

Steps to reproduce

  1. Open up account settings
  2. Click or scroll to "Site Preferences".
  3. Click "Edit" next to "Site language".
  4. Note the list of languages.

Conditions of Acceptance

The drop-down list of languages should be sorted, probably by ISO 639 code, but possibly by visual language name if that is our project-wide convention.

Right now this language list ordering appears to be just generated by parsing https://github.com/openedx/frontend-app-account/blob/master/src/account-settings/site-language/constants.js. Whether the solution is to sort that data structure (easy, harder to sustain) or to sort the input when generating the drop-down list is dealers choice, really. Make it efficient and sustainable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good task for a newcomer to start withhelp wantedReady to be picked up by anyone in the community

    Type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions