Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add locale-aware sorting #1399

Open
PIG208 opened this issue Mar 11, 2025 · 6 comments
Open

Add locale-aware sorting #1399

PIG208 opened this issue Mar 11, 2025 · 6 comments
Labels
a-compose Compose box, autocomplete, attaching files/images a-i18n Translation, localization, internationalization

Comments

@PIG208
Copy link
Member

PIG208 commented Mar 11, 2025

For mentions auto-completion, one of the comparators we have compares user names alphabetically using String.compareTo. Ideally, we should support locale-aware sorting using realm/user language settings.


Quoting Greg from #1165 (comment) :

Yeah, I think using an ICU library via FFI is probably the full solution. That could be something we do ourselves once FFI support is more mature, as the Flutter roadmap calls for next year. Or it looks like people are working on building such a thing for everyone (and for the full scope of ICU functionality): package:icu4x, published by "unicode.org". Still a work in progress but has Unicode engineers working with the Dart team to build the things they need to make it all work:

(And that is indeed using FFI; here's the Dart code implementing Collator.compare.)

@PIG208 PIG208 added the a-i18n Translation, localization, internationalization label Mar 11, 2025
@PIG208 PIG208 added this to the M6: Post-launch milestone Mar 11, 2025
@gnprice gnprice added the a-compose Compose box, autocomplete, attaching files/images label Mar 11, 2025
@vivekTiw120303

This comment has been minimized.

@chrisbobbe

This comment has been minimized.

@gnprice

This comment has been minimized.

@AshutoshKhadse23

This comment has been minimized.

@chrisbobbe

This comment has been minimized.

@AshutoshKhadse23

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-compose Compose box, autocomplete, attaching files/images a-i18n Translation, localization, internationalization
Projects
Status: No status
Development

No branches or pull requests

5 participants