gerhard
(Gerhard Schlager)
2 مايو 2018، 9:15م
1
Continuing the discussion from Add alias support to emoji picker :
Our Emoji picker could be greatly improved by adding support for English and translated search aliases. The Unicode Consortium provides all the data we need:
This feature consists of two parts:
Doing all the aliases properly for English
Adding support for per locale aliases, so you can type :sourire in French on French sites and get in the window.
I’m putting it on my list.
16 إعجابًا
j.jaffeux
(Joffrey Jaffeux)
3 مايو 2018، 6:57ص
4
Just as a note here, we need it to be lazy loaded, this is why I haven’t been doing it yet.
5 إعجابات
sam
(Sam Saffron)
3 مايو 2018، 8:21ص
5
I think it is fine to have alias.en
and alias.de
etc… files, so we can lazy load per locale.
4 إعجابات
Isn’t this complete @gerhard ?
gerhard
(Gerhard Schlager)
23 يناير 2019، 9:04ص
7
No, not yet. I decided to work on it next month because it was moved to the next release.
5 إعجابات
Falco
(Falco)
13 أبريل 2019، 9:01م
8
Just found out about this “public” list of translated emoji aliases: Translations
إعجابَين (2)
SvenC56
(Sven)
14 مايو 2020، 8:24ص
9
Hey
I have a general question. I created my custom emoji group. How do I override this translation key?
Thank you.
j.jaffeux
(Joffrey Jaffeux)
16 مايو 2020، 6:43ص
10
Currently you have to add translations into a theme or component, in your case it would be something like:
<script>
I18n.translations.en.js.emoji_picker.twitch = "Twitch";
</script>
You can also add de
if you need a different name for de
.
@gerhard I had to ask you about this, do you see a better way to accomplish this given custom group names are set by admins ?
6 إعجابات
gerhard
(Gerhard Schlager)
16 مايو 2020، 2:46م
11
The easiest solution I can think of is to use the custom group name if the translation can’t be found. The only problem I’m seeing is that group names seem to be converted to lowercase.
I18n.t("emoji_picker.twitch", { defaultValue: "twitch" })
The more involved solution would be to make SiteTextsController
and TranslationOverride
work with custom emoji group names (or any other custom translation that needs to be added at runtime).
إعجابَين (2)
j.jaffeux
(Joffrey Jaffeux)
16 مايو 2020، 3:55م
12
Cool might investigate the second one at some point, thanks.
إعجابَين (2)
SvenC56
(Sven)
16 مايو 2020، 4:58م
13
Hey I just did console.log(I18n.translations.en.js)
which outputs me the following:
It seems that emoji_picker
is not available for a translation for me. There are also no effects if I paste in your code into my theme head.
Thank you.
إعجاب واحد (1)
sam
(Sam Saffron)
19 أغسطس 2021، 2:47ص
16
This was reported again here: (now closed)
Today I was trying to find the emoji (officially called party popper , but shorted to ) and muscle memory (with MacOS) has me trained to expect finding it by searching for party:
[image]
However, Discourse’s emoji picker doesn’t find it for the same search term, even if it is part of the emoji name.
[Screenshot 2021-08-16 at 11.28.20]
Perhaps the emojis official names could be an alias to each emoji (when they differ from the short version) to improve search on the emoji picker? …
We will be prioritizing this and get to it in the next release.
3 إعجابات
https://github.com/jjaffeux/emoji-db/pull/7
@j.jaffeux I created a PR to include search aliases in our emoji-db repo.
4 إعجابات