Files
medusa-store/packages/admin-ui
Victor Gerbrands 3f016d871a fix(admin-ui): sort supported languages alphabetically (#5479)
## What?
Added sorting to the `supportedLanguages` array in `packages/admin-ui/ui/src/i18n/index.ts`. This makes sure the languages in the dropdown are sorted alphabetically.

![image](https://github.com/medusajs/medusa/assets/42065266/aca6e5ab-f200-45bf-afb4-22d9bc1c9a66)

## Why?
As we're supporting more languages in the admin UI, this list was getting messy.  

## How?
By using `sort()` and `localeCompare()` on array declaration.

## Testing
Go to Medusa Admin locally, login and navigate to Settings > Personal information to test the language dropdown.
2023-11-14 15:09:57 +00:00
..
2023-11-10 10:28:21 +01:00
2023-11-10 10:38:47 +01:00

Medusa

@medusajs/admin-ui

Documentation | Medusa Admin Demo | Website

An open source composable commerce engine built for developers.

Medusa is released under the MIT license. Current CircleCI build status. PRs welcome! Product Hunt Discord Chat Follow @medusajs

The Medusa Admin App. Included with the @medusajs/admin plugin. You shouldn't install this package separately.