Update locale display name strings

This commit is contained in:
Jamie Kyle 2023-11-14 13:08:28 -08:00 committed by GitHub
parent 592a6833df
commit f180f66e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4837 additions and 84 deletions

View file

@ -459,7 +459,7 @@ export function Preferences({
);
const localeSearchOptions = useMemo(() => {
const collator = new Intl.Collator(resolvedLocale, { usage: 'sort' });
const collator = new Intl.Collator('en', { usage: 'sort' });
const availableLocalesOptions = availableLocales
.map(locale => {
@ -468,7 +468,7 @@ export function Preferences({
return { locale, currentLocaleLabel, matchingLocaleLabel };
})
.sort((a, b) => {
return collator.compare(a.currentLocaleLabel, b.currentLocaleLabel);
return collator.compare(a.locale, b.locale);
});
const [localeOverrideMatches, localeOverrideNonMatches] = partition(