emoji-picker-react icon indicating copy to clipboard operation
emoji-picker-react copied to clipboard

Add automatic multi-language support based on locale

Open MZRCode opened this issue 2 months ago • 2 comments

Currently, all category names, tooltips, and messages in emoji-picker-react are displayed only in English. It would be great if these strings automatically adapted to the selected locale.

Feature Request

When a developer sets a locale prop (for example 'tr', 'es', 'fr'), the component should:

  • Automatically translate category names (e.g., “Smileys & People”, “Animals & Nature”, etc.)
  • Localize UI messages (like “Search emojis…”, “No emojis found”, etc.)
  • Use a built-in language file or lightweight i18n system

Example

<EmojiPicker locale="tr" />

Should automatically render:

  • Categories → “Yüz İfadeleri ve İnsanlar”, “Hayvanlar ve Doğa”, etc.
  • Placeholder → “Emojilerde ara…”
  • No results → “Sonuç bulunamadı”

Benefits

  • Makes the component ready for global apps with no extra setup.
  • Keeps the API clean and minimal.
  • Backward-compatible (default locale = English).

MZRCode avatar Oct 31 '25 12:10 MZRCode

Up! Very much needed! All together also emoji name should be translate so they can be correctly found via search be. Am sure, somewhere, emojis have already their name translate in all languages

Vanals avatar Nov 11 '25 22:11 Vanals

Mind issuing a PR? I will help get the API right.

On Wed, Nov 12, 2025 at 12:04 AM Marco Vanali @.***> wrote:

Vanals left a comment (ealush/emoji-picker-react#472) https://github.com/ealush/emoji-picker-react/issues/472#issuecomment-3518895610

Up! Very much needed! emojis have already their name translate in all languages

— Reply to this email directly, view it on GitHub https://github.com/ealush/emoji-picker-react/issues/472#issuecomment-3518895610, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACV32P7TL2KLR22N7PAY24334JMNBAVCNFSM6AAAAACKYVOVWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKMJYHA4TKNRRGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ealush avatar Nov 11 '25 22:11 ealush