Skip to content

feat(admin): add Croatian translation#14919

Open
luxapan wants to merge 3 commits intomedusajs:developfrom
luxapan:feat/translate-hr
Open

feat(admin): add Croatian translation#14919
luxapan wants to merge 3 commits intomedusajs:developfrom
luxapan:feat/translate-hr

Conversation

@luxapan
Copy link
Copy Markdown

@luxapan luxapan commented Mar 20, 2026

What

Adds Croatian (hr) translation for the Medusa Admin dashboard.

Why

Allows Croatian-speaking merchants and admins to use Medusa Admin in their native language.

How

  • added packages/admin/dashboard/src/i18n/translations/hr.json
  • registered hr in packages/admin/dashboard/src/i18n/translations/index.ts
  • added Croatian language entry in packages/admin/dashboard/src/i18n/languages.ts

Testing

  • reviewed the translation for terminology consistency
  • validated JSON structure locally

Note

Low Risk
Low risk localization-only change that adds a new translation bundle and registers it; primary risk is missing/incorrect keys causing fallback strings or build issues if the JSON/locale import is misconfigured.

Overview
Adds Croatian (hr) support to the Admin dashboard by introducing a full hr.json translation bundle and registering it in the i18n translation map.

Updates the language selector configuration to include Hrvatski and wires in the date-fns Croatian locale for date formatting.

Reviewed by Cursor Bugbot for commit e34e4f3. Bugbot is set up for automated code reviews on this repo. Configure here.

@luxapan luxapan requested a review from a team as a code owner March 20, 2026 11:48
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 20, 2026

⚠️ No Changeset found

Latest commit: e34e4f3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 20, 2026

Someone is attempting to deploy a commit to the medusajs Team on Vercel.

A member of the Team first needs to authorize it.

@luxapan
Copy link
Copy Markdown
Author

luxapan commented Mar 20, 2026

Thanks! This PR only adds the Croatian admin translation and registers the locale, so it shouldn't require a version bump. Please authorize the Vercel preview if needed.

@medusa-os-bot
Copy link
Copy Markdown

medusa-os-bot bot commented Apr 9, 2026

Thank you for your contribution! 🎉

After an initial review, this PR looks good to us. Here's a summary:

✅ PR template is complete
✅ Follows admin translation contribution guidelines
✅ New language file correctly named with ISO-2 code (hr.json)
✅ File registered in translations/index.ts and languages.ts per the contribution docs
✅ No unrelated code changes

Notes:

  • The team will spot-check during final review that the values in hr.json are actual Croatian translations rather than English copies — this is a standard verification step we do for all translation PRs.

A team member will do a final review before this is merged. We appreciate your patience!

Copy link
Copy Markdown
Member

@shahednasser shahednasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants