gerhard
(Gerhard Schlager)
02.Май.2018 21:15:22
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)
03.Май.2018 06:57:40
4
Just as a note here, we need it to be lazy loaded, this is why I haven’t been doing it yet.
7 лайков
sam
(Sam Saffron)
03.Май.2018 08:21:16
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 09:04:29
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 21:01:15
8
Just found out about this “public” list of translated emoji aliases: Translations
3 лайка
SvenC56
(Sven)
14.Май.2020 08:24:57
9
Привет
У меня общий вопрос. Я создал свою собственную группу кастомных эмодзи. Как переопределить этот ключ перевода?
Спасибо.
j.jaffeux
(Joffrey Jaffeux)
16.Май.2020 06:43:08
10
В настоящее время вам нужно добавлять переводы в тему или компонент. В вашем случае это будет выглядеть примерно так:
<script>
I18n.translations.en.js.emoji_picker.twitch = "Twitch";
</script>
Вы также можете добавить de, если вам нужно другое название для de.
@gerhard Мне пришлось спросить вас об этом: видите ли вы лучший способ реализовать это, учитывая что имена пользовательских групп задаются администраторами?
7 лайков
gerhard
(Gerhard Schlager)
16.Май.2020 14:46:25
11
Самое простое решение, которое я могу придумать, — использовать пользовательское имя группы, если перевод не найден. Единственная проблема, которую я вижу, заключается в том, что имена групп, похоже, преобразуются в нижний регистр.
I18n.t("emoji_picker.twitch", { defaultValue: "twitch" })
Более сложное решение — заставить SiteTextsController и TranslationOverride работать с пользовательскими именами групп эмодзи (или любым другим пользовательским переводом, который нужно добавить во время выполнения).
2 лайка
j.jaffeux
(Joffrey Jaffeux)
16.Май.2020 15:55:15
12
Круто, возможно, мы изучим второй вариант в какой-то момент, спасибо.
2 лайка
SvenC56
(Sven)
16.Май.2020 16:58:38
13
Привет! Я только что выполнил console.log(I18n.translations.en.js), и вот что вывелось:
Похоже, что emoji_picker недоступен для перевода. Также вставка вашего кода в заголовок моей темы не даёт никакого эффекта.
Спасибо.
1 лайк
sam
(Sam Saffron)
19.Август.2021 02:47:32
16
Это уже сообщалось здесь: (теперь закрыто)
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? …
Мы придадим этому приоритет и займемся этим в следующем выпуске.
4 лайка
master ← vinothkannans:search_aliases
merged 03:53PM - 21 Oct 21 UTC
@j.jaffeux Я создал PR для включения поисковых алиасов в наш репозиторий emoji-db.
5 лайков
Falco
(Falco)
02.Апрель.2026 21:16:59
25
Это было реализовано в следующих pull-запросах:
main ← feature/telegram-locale-search-aliases
merged 04:19PM - 06 Apr 26 UTC
## Summary
- Adds a Rake task (`emojis:telegram:import`) that imports emoji keyw… ord aliases from Telegram's translation platform ([translations.telegram.org](https://translations.telegram.org/en/emoji)) for 40 locales
- These are **search-only aliases** — they enhance emoji picker search without creating file symlinks
- Locales with fewer than 25 emoji aliases are automatically skipped
- Adds `locale_search_aliases` path to `DiscourseEmojis.paths` so Discourse can load per-locale files
- Bumps version to 1.0.45
## Context
https://meta.discourse.org/t/add-english-and-translated-aliases-for-emojis/86641
## Usage
```
rake emojis:telegram:import[en]
rake emojis:telegram:import[en,pt-br,fr]
rake emojis:telegram:import[all]
rake emojis:telegram:locales
```
## Test plan
- [ ] Verify `DiscourseEmojis.paths[:locale_search_aliases]` points to the correct directory
- [ ] Verify locale JSON files have correct format (emoji_name → [keyword1, keyword2, ...])
- [ ] Test Discourse-side integration: searching "champagne" finds `bottle_with_popping_cork` via English aliases
- [ ] Test Discourse-side integration: searching "joinha" finds `+1` via pt-br aliases when locale is pt-br
🤖 Generated with [Claude Code](https://claude.com/claude-code)
main ← feature/locale-emoji-search-aliases
merged 05:08PM - 06 Apr 26 UTC
## Summary
- Merges locale-specific emoji search aliases into `/emojis/search-al… iases.json` based on the user's `I18n.locale`, enabling emoji search in the user's language (e.g. "joinha" finds :+1: in pt_BR)
- Removes unused `search_aliases` attribute from `/emojis.json` — it was serialized but never consumed by the frontend (saves ~160KB per request)
- Requires discourse/discourse-emojis#12 to be merged and a gem release for locale data to be available
## Context
https://meta.discourse.org/t/add-english-and-translated-aliases-for-emojis/86641
## Test plan
- [ ] With discourse-emojis gem updated, verify searching "champagne" in emoji picker finds `bottle_with_popping_cork` (English locale aliases)
- [ ] Switch UI to pt_BR, verify searching "joinha" finds :+1:
- [ ] Verify `/emojis.json` no longer includes `search_aliases` per emoji
- [ ] Verify existing emoji search still works as before
🤖 Generated with [Claude Code](https://claude.com/claude-code)
В процессе была устранена ошибка, которая уменьшила размер полезной нагрузки emojis.json на 160 КБ
Это добавляет исчерпывающие локализованные алиасы для поиска.
4 лайка
Falco
(Falco)
06.Апрель.2026 17:50:02
26
Мы добавили поддержку локализованных алиасов эмодзи для некоторых языков, так что теперь
а также
4 лайка
Falco
(Falco)
Закрыл(а) тему
20.Апрель.2026 11:00:11
27
Эта тема была автоматически закрыта через 13 дней. Новые ответы больше не принимаются.