Skip to content

Prepare the interface for a second language #47

Open

Description

@imshashank

All strings are already in packages/i18n/translations/en.json, but about a hundred files import that JSON directly, src/app/layout.tsx hardcodes lang="en", and the Intl formatters in src/components/money.ts hardcode "en". Adding a language today would mean touching every file.

Proposal

  • A small typed lookup in packages/i18n that returns the dictionary for a locale, falling back to English for missing keys.
  • Locale from the user's preference, then Accept-Language, then English; dates, numbers and currency formatted with that locale.
  • A test that fails when a non-English dictionary has keys that English does not.

Done when

  • Adding packages/i18n/translations/<locale>.json is enough to ship a new language.
  • Then open a follow-up issue for the first translation you want to contribute.

Activity

  1. added
    help wanted
    i18n
    on Oct 6, 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

    help wantedi18n

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions