-
Notifications
You must be signed in to change notification settings - Fork 127
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
Localized emoji names #203
Comments
Currently there is no direct support for multiple languages, but you can still achieve it by creating your own custom emoji sets ( |
Is there a reason why there's no direct support for languages other than English? |
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. 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 😬 |
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:
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? |
Hey @12people |
Hey @Fintasys |
@12people I created a project, but I can't find time working on some arb format that then can be used with the library and also making sure that it doesn't affect performance. If you are able to come up with a PR that helps to setup weblate that would be great, unfortunately the project I created is determined to deleted in 5 days due to inactivity 😅 Maybe it's possible to create a new one after that, but not sure. I'm sorry that I couldn't make any progress so far 😮💨 |
No problem. I'll take a look at it when I have a bit more time. I think you can reapply after the project is closed (and if not, there are also other translation services that have free tiers for open-source projects). |
Hi, thank you for your work on this package. I am also working on an app which supports multiple languages, and searching emoji by localized name seems to me an important feature to have. I don't think however that a crowd-sourcing solution to fill all the emoji names in different languages would be easy, fast to achieve. I saw on Github many projects which had this issue already. Check this comment tom-james-watson/Emote#65 (comment) Check here for example: https://github.com/Armaldio/localize-emoji-db/tree/master/dist/emojis So in my opinion it would make sense to provide a new parameter |
I think the easiest solution might be to just create translated files for the emoji-lists like I drafted in this PR (used GeminiPro to translate the values) |
Translating the emoji-lists using LLM seems also good, but I don't believe it is a long term solution for the project:
Personally, I believe that fetching emoji and translations from some official source is the only way to keep the emoji list and translations up-to-date. There is an official list of emoji and annotations https://github.com/unicode-org/cldr/tree/main/common/annotations |
That's true, but this solution requires more effort. Nevertheless, I agree that it would be nice to have some automation and official data behind all of this. Steps to achieve above goal would be
Let me see if can create some automation easily with help of AI 💪 |
The one above seems a good plan to me. Unfortunately, I can't contribute directly to the project, as I don't have much time available. Also, the project is yours and you can decide of course the direction it has to take :) I am nevertheless grateful for your work 🙏 |
I had some time right now and came up with a script that seems to work. |
I did not find anything official, but ChatGPT says that for flags no annotations are provided and it is the platform / application itself to assign some annotation to them. I would suggest to keep the English annotations only for those flags, and maybe, adding the locale status code. It should be possible in my opinion to have the flag Austria when typing Most likely the reason is to avoid some political controversial issue. |
I see, make sense. |
Released it as dev version for now, feel free to test 🙏 |
Thanks @Fintasys, I'll test it over the weekend! Have a nice day |
I tried and it works fine :) |
Thanks for testing, appreciate your support 🙏 |
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.
The text was updated successfully, but these errors were encountered: