gerhard
(Gerhard Schlager)
2018 年 5 月 2 日午後 9:15
1
Add alias support to emoji picker の議論を継続します:
英語および翻訳された検索エイリアスのサポートを追加することで、絵文字ピッカーを大幅に改善できます。Unicode コンソーシアムは、必要なすべてのデータを提供しています:
この機能は以下の 2 つの部分で構成されます:
英語のエイリアスを適切に実装する
ロケールごとのエイリアスサポートを追加し、フランス語のサイトで :sourire と入力するとウィンドウに が表示されるようにする
これを私のタスクリストに追加しました。
「いいね!」 16
j.jaffeux
(Joffrey Jaffeux)
2018 年 5 月 3 日午前 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.
「いいね!」 7
sam
(Sam Saffron)
2018 年 5 月 3 日午前 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)
2019 年 1 月 23 日午前 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)
2019 年 4 月 13 日午後 9:01
8
Just found out about this “public” list of translated emoji aliases: Translations
「いいね!」 3
SvenC56
(Sven)
2020 年 5 月 14 日午前 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)
2020 年 5 月 16 日午前 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 ?
「いいね!」 7
gerhard
(Gerhard Schlager)
2020 年 5 月 16 日午後 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)
2020 年 5 月 16 日午後 3:55
12
Cool might investigate the second one at some point, thanks.
「いいね!」 2
SvenC56
(Sven)
2020 年 5 月 16 日午後 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)
2021 年 8 月 19 日午前 2:47
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 当社の emoji-db リポジトリに検索エイリアスを含めるための PR を作成しました。
「いいね!」 5
Falco
(Falco)
2026 年 4 月 2 日午後 9:16
25
この機能は以下の PR で実装しました。
main ← feature/telegram-locale-search-aliases
opened 08:28PM - 02 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
drafted 09:09PM - 02 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 のペイロードを 160KB 削減するバグ修正も行いました
これにより、完全なローカライズされた検索エイリアスが利用可能になりました。
「いいね!」 4
Falco
(Falco)
2026 年 4 月 6 日午後 5:50
26
いくつかの言語でローカライズされた絵文字エイリアスのサポートをマージしました。これにより、ついに
また、
も可能です。
「いいね!」 3