Skip to content

Fix duplicate untranslated string in DatabaseRefreshDialog #18

@kanweiwei

Description

@kanweiwei

web/src/components/DatabaseRefreshDialog.tsx has two issues:

  1. Line 61-62: Line 61 uses t('app.databaseConnectionLost') for the heading, but line 62 repeats the same text as a hardcoded English paragraph right below it. The paragraph should either use a different i18n key with helpful guidance or be removed as redundant.

  2. Line 94: "(Refresh Page)" is hardcoded instead of being part of the i18n key.

What to do:

  1. Read web/src/components/DatabaseRefreshDialog.tsx
  2. Replace the hardcoded paragraph with an i18n key (e.g. app.databaseConnectionLostDescription)
  3. Include "(Refresh Page)" in the button's i18n key or create a separate key
  4. Add the new keys to all 4 locale files in packages/i18n/src/locales/
  5. Run: pnpm -C web run typecheck

Skills needed: TypeScript, basic i18n

Estimated time: 15 minutes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions