Skip to content

feat: show the dashboard in the shell's language (English and Polish) - #10

Merged
jacalapa merged 1 commit into
mainfrom
feat/i18n
Nov 15, 2026
Merged

jacalapa merged 1 commit into
mainfrom
feat/i18n

Conversation

@jacalapa

Copy link
Copy Markdown
Contributor

Why

The dashboard's texts were hard-coded in English. ConfigWay and MonitorWay follow the language of Way.Shell (ShellOptions.Language or the user's choice in the shell), so in an app with several Ways the RunWay dashboard was the only English part of a Polish panel.

What

  • i18n/translations.ts with en and pl, and useI18n() reading the shell's language — the same pattern as ConfigWay and MonitorWay.
  • Menu, tiles, chart, job lists, job / recurrence / runner pages, statuses and audit entries are translated.
  • The data grid's own texts (pagination, "no rows") come from MUI X plPL; they live in i18n/dataGrid.ts, imported only by the tables, so the dashboard's first load does not grow.
  • Relative times use dayjs' Polish locale; dates are formatted in the dashboard's language instead of the browser's.
  • e2e: after the shell's language switch the dashboard heading is Pulpit.

Checks

  • npm run build and dotnet build of RunWay.Dashboard pass.
  • npm run lint: the same 14 problems as on main, none new.
  • e2e against the demo (Chrome): 15/16. The failing one, "data grid with a failed job", waits 60 s for FailingJob, which reaches Failed only after the default retries (0, 10, 60, 600 s) on a fresh database — timing, not this change.
  • Checked by hand in the demo: English by default, Polish after the shell's switch, on every page.

🤖 Generated with Claude Code

The dashboard's texts were hard-coded in English, so it stayed English when the
host set ShellOptions.Language or the user picked a language in the shell. Like
ConfigWay and MonitorWay, it now takes the language from Way.Shell:

- i18n/translations.ts with en and pl, useI18n() reading the shell's language
- the data grid's own texts (pagination, no rows) from MUI X plPL
- relative times through dayjs' Polish locale, dates in the dashboard's language
- e2e: the dashboard follows the shell's language switch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jacalapa
jacalapa merged commit 95fe14a into main Nov 15, 2026
3 checks passed
@jacalapa
jacalapa deleted the feat/i18n branch November 15, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant