Skip to content

Comments

Add 'usa' alias for US flag emoji search#1878

Open
liketheduck wants to merge 2 commits intofuto-org:masterfrom
liketheduck:fix/1865-usa-emoji-search
Open

Add 'usa' alias for US flag emoji search#1878
liketheduck wants to merge 2 commits intofuto-org:masterfrom
liketheduck:fix/1865-usa-emoji-search

Conversation

@liketheduck
Copy link

Summary

Adds "usa" as an alias for the US flag emoji in gemoji.jsongz, so searching "usa" in the emoji picker returns the expected result.

Closes #1865.

Changes

  • java/res/raw/gemoji.jsongz: Added "usa" to the aliases array for the US flag emoji (previously only "us").

Important: companion change needed in keyboard-large-resources

The emoji picker search in EmojiAction.kt queries against the i18n translation names in java/res-large/raw/emoji_i18n.jsondlgz, not the gemoji aliases. A corresponding change is needed in the keyboard-large-resources submodule (hosted on GitLab) to add "usa" and "america" as English search keywords for the US flag entry. Without that change, the alias fix here improves shortcode lookup but the picker search will remain incomplete.

Test plan

  • Verify :usa: shortcode resolves to US flag emoji
  • Verify gemoji data integrity (1905 entries, valid JSON after decompression)

Co-authored with Claude Code.

liketheduck and others added 2 commits February 11, 2026 11:29
Searching "usa" or "america" in the emoji picker now correctly shows the
US flag emoji (🇺🇸). Added "usa" to the gemoji aliases and added "usa"
and "america" to the English i18n search keywords.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reverts java/res-large to upstream commit. The corresponding i18n
keyword change needs to be merged in keyboard-large-resources first.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA-signed Emojis Enhancement Request for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Typing "usa" or "america" in emoji search will not show 🇺🇸 (USA flag) in results.

3 participants