Fintasys / emoji_picker_flutter

A Flutter package that provides an Emoji picker widget with 1500+ emojis in 8 categories.
MIT License
154 stars 114 forks source link

Localized emoji names #203

Open 12people opened 1 month ago

12people commented 1 month ago

Right now, the current emoji search only searches by emoji name, which seems to be hard-coded to the English variant only.

It'd be great if emoji names could be localized.

This would be useful not just for search, but also for accessibility, letting people show tooltips over emoji in the emoji picker to clarify what the emoji is called.

Fintasys commented 1 day ago

Currently there is no direct support for multiple languages, but you can still achieve it by creating your own custom emoji sets (default_emoji_set.dart) and set it in your config depending on the language you need (Config(emojiSet: ...))

12people commented 1 day ago

Is there a reason why there's no direct support for languages other than English? Having it in the plug-in itself would be useful to a number of multilingual apps, I'm sure, without each of those apps having to manually translate the emoji names.

Fintasys commented 1 day ago

Open source unfortunately doesn't work as easy as this. Of course it makes sense, but I personally don't have the need and currently the time to work on that feature. If you or anyone is willing to spend some work on supporting this feature I'm happy to review. Another aspect is that everyone has different requirements and some people prefer a small size library because they don't need language support.

And as described above, currently it's possible to support it if you really need it. I appreciate your request, so I can learn what needs the users have and sometimes I find time and motivation to address those, otherwise I'm happy to see contributions 😬

12people commented 1 day ago

I think the bulk of this feature is primarily the translation work, right? (If I understand you correctly, the code support for a basic implementation is there through the custom emoji sets?)

As for how to do the translation, I would suggest setting up a free Weblate project and letting volunteers contribute their translations. To qualify for their free "libre tier", the project must meet these conditions:

Libre project with open-source code

  • Translated content has to be released under a license approved by OSI or recognized as libre by FSF.
  • All the source code has to be libre-licensed and publicly available in a supported version control system.
  • Translations have to be in the same repository as the source code, or under the same project/organization as the source code repository.
  • Non-code projects are welcome as well.

Project approval

  • Using Weblate has been approved by the upstream project.
  • Mention you use Weblate for translations in the README. It’ll attract new translators and also help Weblate to be free for more projects.

Established projects

  • The project receives a reasonable number of contributions.
  • The project has had active development for at least three months.

Your trial

  • You will have 14 days to set up your project.
  • Please request project approval once you finish the setup.
  • Unapproved projects will be removed.
  • We reserve our right to reject inappropriate content (erotic, gambling, etc.).

If I have official permission from the project, I can set this up under my own account, but I'm guessing you might prefer to set this up under your account to have better control over the project?