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

Provide i18n for multiple languages within emoji-mart itself #303

Closed
rugk opened this issue Mar 14, 2019 · 7 comments
Closed

Provide i18n for multiple languages within emoji-mart itself #303

rugk opened this issue Mar 14, 2019 · 7 comments

Comments

@rugk
Copy link

rugk commented Mar 14, 2019

#20 added i18n support, but unfortunately this way by letting devs configure it poses two problems:

  1. Each app that uses this module has to provide translations for the strings again and again. IMHO, it would be preferable to ship the translations with this component here, so this translation work is done once and not again and again.
  2. The Emojis itself are not translated. So you cannot search for "Lachend" as a German user e.g. and get Emojis like 😆.
    E.g. check out Twitter: They do translate Emojis in their Emoji picker, which sometimes is annoying, but sometimes can be helpful. Especially for non-devs or users that hardly speak English. For them, the search is basically not usable.

Note that if 2. is solved, 1. may get an even bigger problem, as you'll have to translate each Emoji (or more, with alternatives etc.).

@nolanlawson
Copy link

Each app that uses this module has to provide translations for the strings again and again. IMHO, it would be preferable to ship the translations with this component here, so this translation work is done once and not again and again.

This is an interesting idea, but it potentially introduces a maintenance burden. Perhaps we could use something like weblate to lessen the burden, though.

The Emojis itself are not translated.

This may be a limitation of https://github.com/iamcal/emoji-data which is where the emoji data comes from.

@nolanlawson nolanlawson changed the title Provide built-in i18n Provide i18n for multiple languages within emoji-mart itself Mar 15, 2019
@rugk
Copy link
Author

rugk commented Mar 15, 2019

Perhaps we could use something like weblate to lessen the burden, though.

Obviously, choose whatever translation platform you want/you are comfortable with. That's why these are there... 😄

This may be a limitation of https://github.com/iamcal/emoji-data which is where the emoji data comes from.

Oka,y opened iamcal/emoji-data#148 for that.

@Haraldson
Copy link

@rugk The tip about CLDR is a step on the way, but I’m always mega confused when arriving at their website. I’ve sifted through available cldr-*-modern repos on npmjs.com, but didn’t find which package includes the specified set of strings. Would you consider elaborating on this in the docs?

@rugk
Copy link
Author

rugk commented Aug 24, 2021

@Haraldson Do the following instructions from my downstream browser add-on using this lib here help?
See https://github.com/rugk/awesome-emoji-picker/blob/master/CONTRIBUTING.md#translating-emoji-terms-categories-skin-names-etc

@Haraldson
Copy link

Haraldson commented Aug 26, 2021

@rugk I’m just as confused as before. What I’m specifically looking for, as a JavaScript developer, is a way to programmatically get my hands on the specified strings.

As an adjacent-ish example, I use this local script for fetching a list of localized country names.

I’ve had a look at cldr-annotations-modern, but was only able to find annotations for each emoji, and not for the categories they belong to – the same strings the documentation claims exist somewhere.

Also, the names available in main sometimes use other keys than what is specified in emoji-mart, and sometimes the same – and the category names are uncapitalized. :/

@rugk
Copy link
Author

rugk commented Aug 26, 2021

well… yeah… I totally feel your frustration, because I also never can see where there is anything on that site…
And when you want to scrape that programatically… uff… I don't know. IIRC you can download a ZIP and just do it locally, that might be easier.

Anyway, I guess the best place is to ask the Unicode people there… they can likely help you better than we can do that. 😅
Though if you'll find a solution, feel free to share it here, too.

@EtienneLem
Copy link
Member

Multiple languages support is now built-it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants