Skip to content

feat: add czech translate for orders dashboard - #433

Merged
redeyecz merged 1 commit into
masterfrom
admin/translation
Jun 8, 2026
Merged

feat: add czech translate for orders dashboard#433
redeyecz merged 1 commit into
masterfrom
admin/translation

Conversation

@KaiUweCZE

@KaiUweCZE KaiUweCZE commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features
    • Added full Czech language support to the order dashboard, providing localisation for all dashboard elements including actions, columns, details, filters, statuses, tables, and user notifications.

@semanticdiff-com

semanticdiff-com Bot commented Jun 5, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts  0% smaller

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
new-engine-ui-storybook Ready Ready Preview, Comment Jun 5, 2026 2:29pm

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: e314231a-99fa-46a0-9ae1-c1f65b2efcf5

📥 Commits

Reviewing files that changed from the base of the PR and between f95bd1a and beac5d3.

📒 Files selected for processing (1)
  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📜 Recent review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Greptile Review
  • GitHub Check: main
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Kilo Code Review
🧰 Additional context used
📓 Path-based instructions (7)
apps/medusa-order-dashboard-plugin/src/admin/**/*.{ts,tsx}

📄 CodeRabbit inference engine (apps/medusa-order-dashboard-plugin/AGENTS.md)

apps/medusa-order-dashboard-plugin/src/admin/**/*.{ts,tsx}: Use same-origin Admin API calls from inside Medusa Admin with baseUrl: "/" and session auth, not standalone app environment variables like VITE_MEDUSA_BACKEND_URL
Build a dense, operational, scannable Medusa Admin surface. Do not add marketing layouts, decorative hero sections, or standalone admin shell navigation
Filters and row actions must be visibly and semantically separated
Table behavior must cover loading, empty, error, pagination, sorting where supported, filtering where supported, selection, and stable selected/eligible counts
Prefer Medusa UI primitives for Admin consistency instead of alternative UI libraries
Every visible string belongs in the plugin Admin i18n resources. Do not leave English literals in Czech UI, and do not copy broken Notion mojibake into final labels
Page components should render state and coordinate interactions; endpoint contracts, formatting, and eligibility helpers should live in separate local modules

Files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
apps/medusa-order-dashboard-plugin/src/admin/{routes,features}/order-dashboard/**

📄 CodeRabbit inference engine (apps/medusa-order-dashboard-plugin/AGENTS.md)

Extract feature-local helpers under src/admin/routes/order-dashboard/ or src/admin/features/order-dashboard/ when route code grows into multiple concerns

Files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
apps/medusa-order-dashboard-plugin/{package.json,src/admin/**/*.{ts,tsx}}

📄 CodeRabbit inference engine (apps/medusa-order-dashboard-plugin/AGENTS.md)

TanStack Table or VTable may be introduced only after documenting why Medusa UI primitives cannot support the required table behavior without fragile code, and must be added through package-manager commands with plugin build verification

Files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
apps/medusa-order-dashboard-plugin/src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (apps/medusa-order-dashboard-plugin/AGENTS.md)

apps/medusa-order-dashboard-plugin/src/**/*.{ts,tsx}: Do not use @techsio/ui-kit or libs/ui inside this plugin unless the task explicitly expands scope and the Medusa Admin bundling contract is verified
Keep business rules pure and testable where practical
Run plugin typecheck verification with pnpm.cmd --dir apps/medusa-order-dashboard-plugin run typecheck

Files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
apps/medusa-order-dashboard-plugin/src/admin/**

📄 CodeRabbit inference engine (apps/medusa-order-dashboard-plugin/AGENTS.md)

Keep API fetchers, query keys, mutation helpers, types, and formatters close to the dashboard route unless they become shared by another plugin route

Files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
apps/medusa-order-dashboard-plugin/src/**

📄 CodeRabbit inference engine (apps/medusa-order-dashboard-plugin/AGENTS.md)

Run plugin build verification with pnpm.cmd --dir apps/medusa-order-dashboard-plugin run build

Files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
apps/medusa-order-dashboard-plugin/src/**/*.{ts,tsx,json}

📄 CodeRabbit inference engine (apps/medusa-order-dashboard-plugin/AGENTS.md)

Run code formatter with pnpm.cmd exec biome check --write on changed plugin files

Files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
🧠 Learnings (11)
📓 Common learnings
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/src/admin/**/*.{ts,tsx} : Every visible string belongs in the plugin Admin i18n resources. Do not leave English literals in Czech UI, and do not copy broken Notion mojibake into final labels
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/src/admin/**/*.{ts,tsx} : Every visible string belongs in the plugin Admin i18n resources. Do not leave English literals in Czech UI, and do not copy broken Notion mojibake into final labels

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/{src,package.json,medusa-config.ts} : Plugin must export Admin customizations through the package `./admin` export generated by `medusa plugin:build`

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/src/admin/**/*.{ts,tsx} : Prefer Medusa UI primitives for Admin consistency instead of alternative UI libraries

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/page.tsx : Keep the route under `src/admin/routes/order-dashboard/page.tsx` unless a broader feature module is justified

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Inspect canonical local ticket exports in `apps/medusa-order-dashboard-plugin/local` directory (`dashboard-objednavek-test-2.md`, `dashboard-objednavek-test.md`, `admin-obecne-test.md`) before implementing or changing the dashboard

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/src/admin/{routes,features}/order-dashboard/** : Extract feature-local helpers under `src/admin/routes/order-dashboard/` or `src/admin/features/order-dashboard/` when route code grows into multiple concerns

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/src/admin/**/*.{ts,tsx} : Build a dense, operational, scannable Medusa Admin surface. Do not add marketing layouts, decorative hero sections, or standalone admin shell navigation

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/src/admin/**/*.{ts,tsx} : Filters and row actions must be visibly and semantically separated

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/src/**/*.{ts,tsx} : Do not use `techsio/ui-kit` or `libs/ui` inside this plugin unless the task explicitly expands scope and the Medusa Admin bundling contract is verified

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
📚 Learning: 2026-06-05T09:19:47.268Z
Learnt from: CR
Repo: TechsioCZ/new-engine PR: 0
File: apps/medusa-order-dashboard-plugin/AGENTS.md:0-0
Timestamp: 2026-06-05T09:19:47.268Z
Learning: Applies to apps/medusa-order-dashboard-plugin/{package.json,src/admin/**/*.{ts,tsx}} : TanStack Table or VTable may be introduced only after documenting why Medusa UI primitives cannot support the required table behavior without fragile code, and must be added through package-manager commands with plugin build verification

Applied to files:

  • apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
🔇 Additional comments (3)
apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts (3)

546-547: ⚡ Quick win

Verify UI layout with verbose sidebar translation.

The Czech translation for sidebar.actionRequiredOrders is significantly longer and more semantically detailed than the English version:

  • English: "{{count}} action required orders"
  • Czech: "{{count}} objednávek čeká na potvrzení administrátorem bez zaúčtované platby"

The Czech text is 2.7× longer and adds specific context about admin confirmation and payment status. Please verify that this expanded text doesn't break sidebar layouts, especially in compact views or mobile viewports.

Consider testing the dashboard with the Czech locale active to confirm the sidebar renders correctly. If truncation occurs, the translation may need to be shortened to match the brevity of the English version whilst preserving the core meaning.


625-625: LGTM!


407-622: Run Biome/typecheck/build for the plugin (and sanity-check the long sidebar string)

  • The Czech i18n object structure and interpolation placeholders look consistent, but the Biome/typecheck/build commands couldn’t be executed in this environment due to a repository clone failure.
  • Please run:
    • pnpm.cmd exec biome check --write apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
    • pnpm.cmd --dir apps/medusa-order-dashboard-plugin run typecheck
    • pnpm.cmd --dir apps/medusa-order-dashboard-plugin run build
  • Also confirm the long sidebar.actionRequiredOrders Czech text doesn’t cause overflow/layout issues in the Admin UI.

Walkthrough

This pull request adds complete Czech language support to the order dashboard plugin. A new Czech translation namespace object was introduced with Czech strings for all dashboard keys, and the i18n export mapping was updated to direct the cs locale to use these Czech translations instead of the English defaults.

Changes

Czech Order Dashboard Translations

Layer / File(s) Summary
Czech translations and i18n export
apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts
New czechOrderDashboardAdminI18n object provides Czech strings for actions, columns, details, filters, statuses, table, blockers, modal, and toast keys. The exported orderDashboardAdminI18n mapping updated so cs locale uses Czech namespace instead of English.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding Czech translations to the orders dashboard i18n configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch admin/translation
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch admin/translation

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed: dependency version conflict. Check your lock file or package.json.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps

greptile-apps Bot commented Jun 5, 2026

Copy link
Copy Markdown

Greptile Summary

This PR replaces the Czech locale placeholder (which was pointing to the English translations) with a full Czech translation object covering all keys in OrderDashboardAdminI18nNamespace. The satisfies type constraint ensures structural correctness at compile time.

  • All 18+ translation sections are fully populated; every {{interpolation}} variable present in the English strings is preserved in the Czech counterparts.
  • The cs locale now correctly resolves to Czech-language strings instead of silently falling back to English.

Confidence Score: 5/5

Safe to merge — this is an additive translation-only change with no logic modifications.

The change is purely additive: a new Czech locale object replaces a copy-paste placeholder. TypeScript's satisfies keyword enforces that every required key is present and typed correctly, so missing or misspelled keys would be caught at compile time. All interpolation variables are preserved verbatim across every translated string. There are no runtime code paths affected.

No files require special attention.

Important Files Changed

Filename Overview
apps/medusa-order-dashboard-plugin/src/admin/routes/order-dashboard/i18n.ts Adds full Czech translation object; TypeScript satisfies constraint enforces key completeness; all interpolation variables match the English source.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User locale resolved] --> B{locale === 'cs'?}
    B -- Yes --> C[czechOrderDashboardAdminI18n]
    B -- No --> D[englishOrderDashboardAdminI18n]
    C --> E[Czech strings rendered in UI]
    D --> F[English strings rendered in UI]
    C -.->|satisfies| G[OrderDashboardAdminI18nNamespace]
    D -.->|satisfies| G
Loading

Reviews (1): Last reviewed commit: "feat: add czech translate for orders das..." | Re-trigger Greptile

@redeyecz
redeyecz merged commit 75c130c into master Jun 8, 2026
7 checks passed
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants