Skip to content

chore: adjust item order of language options - #2946

Merged
lyswhut merged 1 commit into
lyswhut:devfrom
3gf8jv4dv:lang-option-order
Aug 25, 2026
Merged

lyswhut merged 1 commit into
lyswhut:devfrom
3gf8jv4dv:lang-option-order

Conversation

@3gf8jv4dv

Copy link
Copy Markdown
Contributor

No description provided.

@lyswhut

lyswhut commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Why is it ['English', '한국어', '简体中文']?

After using console.log(['简体中文', 'English', '한국어'].sort((a, b) => a.charCodeAt(0) - b.charCodeAt(0)));
I got [ 'English', '简体中文', '한국어' ]

@3gf8jv4dv

Copy link
Copy Markdown
Contributor Author

@lyswhut Because I want them sorted alphabetically by language code.

en-us
ko-kr
zh-cn
zh-tw

If these changes are inappropriate, please feel free to provide further clarification or make corrections.

@lyswhut
lyswhut merged commit 75185cb into lyswhut:dev Aug 25, 2026
1 check passed
@3gf8jv4dv
3gf8jv4dv deleted the lang-option-order branch August 25, 2026 05:40
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

Successfully merging this pull request may close these issues.

2 participants