Skip to content

Orphaned flat locale files in core/i18n/locales/ (never loaded at runtime) #28964

Description

@zaveshaa

While doing a second pass over the i18n setup, I noticed four flat JSON files sitting next to the per-locale directories:

  • core/i18n/locales/en.json
  • core/i18n/locales/es.json
  • core/i18n/locales/de.json
  • core/i18n/locales/zh.json

Evidence they are unused:

  1. core/i18n/request.ts loads messages exclusively via import(`./locales/${validLocale}/${namespace}.json`) — the flat files are never referenced
  2. No other file in the repo imports them (checked .ts/.tsx/.js/.mjs/.json/.yml)
  3. Content drift confirms staleness: en.json contains a single "MenuInfo" namespace (capital M) with 3 keys, while the actual runtime namespace is menuInfo (lowercase) served from en/menuInfo.json

If these are leftovers from before the namespace refactor, they could be removed to avoid confusion when adding new locales. If some external translation pipeline still consumes them, feel free to close this — just flagging the inconsistency.

Happy to send a removal PR if you confirm they're safe to delete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions