Skip to content

[Feature]: Sort user’s preferred languages first in server picker #1425

@daprice

Description

@daprice

Description

The “Language” dropdown in the “Pick Server” screen currently orders languages somewhat randomly from a user’s point of view — I think it’s alphabetical based on the first letter of the ISO 639 code? Chances are, the language the user is interested in will be fairly low on the list.

The user’s preferred languages, as configured on their device, should be in a separate section at the top of the list.

Suggested Solution

Languages that are in the user’s list of preferred locales (accessible on iOS as Locale.preferredLanguages) should be available at the top of the list, ideally with some kind of separator between them and the rest to clarify that they are sorted differently.

The rest of the languages should be sorted in a way that is transparent to the user: either alphabetically by the name of the language (not the ISO locale code) as they’re spelled in the user’s language or natively, or by usage.

Alternatives

Alternatively, it could default to pre-selecting the language matching the first entry in Locale.preferredLanguages.

Additional Context

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions