Skip to content

Platform UI internationalization — admin interface is English-only #80

Description

@hellosunghyun

EmDash has solid content-level i18n (per-locale rows, fallback chains, LocaleSwitcher, etc.), but the platform's own UI — admin labels, error messages, toasts, dialogs — is all hardcoded in English with no abstraction layer.

Non-English-speaking site owners get a split experience: content in any language, but the admin is always English.

What exists today

  • ~1,500–2,000 hardcoded English strings across admin UI (~80%) and API handlers (~20%)
  • No i18n library, no message catalog, no t() function
  • Error codes exist (300+) but no message mappings — each handler writes its own string

Precedent

Strapi uses react-intl with ~848 keys across 34 languages. Payload CMS uses a custom t() with ~660 keys across 27. Ghost and Keystone haven't done this yet — EmDash doing it early would be a differentiator.

Library options

react-i18next Lingui react-intl
Downloads/wk 9.6M 180K 1.2M
Bundle (gzip) ~18.5 KB ~2 KB runtime ~17 KB
Strength Ecosystem, namespaces, lazy loading Smallest bundle, Vite plugin ICU standard, Strapi uses it
Trade-off Largest bundle Build tool integration needed Less flexible lazy loading

Architecture fit

The admin provider stack (ThemeProvider → Toasty → PluginAdminProvider → QueryClient → Router) is clean — an I18nProvider slots in at the top with no conflicts. No global state library to fight.

Proposed rollout

To avoid a massive diff, I'd break it into incremental PRs:

  1. Infra — i18n setup, English catalog, provider
  2. API messages — handler error messages → catalog keys
  3. Admin UI — module by module (Settings, Content, Media, etc.)
  4. First translation — second language (e.g. Korean) to validate the pipeline

Questions

  • Is this a direction you'd want to go?
  • Library preference?
  • Should admin locale be independent of content locale?
  • Should plugins be able to register their own translation keys?

Happy to do the work — just want to align on approach first. 😄

Activity

  1. Glazastyy commented on Apr 2, 2026

    @Glazastyy

    I think this could extend naturally beyond the admin UI into a project-wide i18n strategy

    I opened PR #109 adding pt-br to demos, fixture config, and docs as a small, non-breaking step to validate how locales are currently wired outside the admin

    Given that this issue proposes introducing an i18n layer for the admin and API, do you see value in aligning that with a broader approach that also covers:

    • demos
    • documentation
    • content structure
    • routing per locale (if applicable)

    My concern is avoiding two parallel i18n approaches (one for admin/UI and another for content/demos)

    Happy to adapt the PR depending on the intended direction

  2. added theissue type on Apr 2, 2026
  3. locked and limited conversation to collaborators on Apr 2, 2026
  4. converted this issue into a discussion #145 on Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions