web/src/components/DatabaseRefreshDialog.tsx has two issues:
-
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.
-
Line 94: "(Refresh Page)" is hardcoded instead of being part of the i18n key.
What to do:
- Read
web/src/components/DatabaseRefreshDialog.tsx
- Replace the hardcoded paragraph with an i18n key (e.g.
app.databaseConnectionLostDescription)
- Include "(Refresh Page)" in the button's i18n key or create a separate key
- Add the new keys to all 4 locale files in
packages/i18n/src/locales/
- Run:
pnpm -C web run typecheck
Skills needed: TypeScript, basic i18n
Estimated time: 15 minutes
web/src/components/DatabaseRefreshDialog.tsxhas two issues: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.Line 94:
"(Refresh Page)"is hardcoded instead of being part of the i18n key.What to do:
web/src/components/DatabaseRefreshDialog.tsxapp.databaseConnectionLostDescription)packages/i18n/src/locales/pnpm -C web run typecheckSkills needed: TypeScript, basic i18n
Estimated time: 15 minutes