Skip to content

Conversation

@kjeongh
Copy link

@kjeongh kjeongh commented Aug 7, 2025

This PR adds a fallback so that if fetching an i18n locale JSON via fetchJSON fails (due to network or CDN error), the picker will now automatically fall back to English (en). A warning message is logged in the console in such cases.

Currently, if the locale JSON cannot be loaded, the emoji picker renders as a blank UI. This change ensures a graceful fallback in such cases.

  • Ensures that internationalization does not cause the emoji picker UI to break.
  • User experience will remain smooth even if a translation file cannot be loaded.
  • No breaking changes.

Let me know if there is anything I should address or improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants