Feat/translate fi - #16746
Conversation
Adds Finnish translations for the admin dashboard, following the community translation contribution guide.
🦋 Changeset detectedLatest commit: 8c1ea0e The changes in this PR will be included in the next version bump. This PR includes changesets to release 83 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thanks for the contribution! Initial automated review looks good. The PR adds a complete Finnish (fi) locale to the Admin dashboard. The translation file is correctly named (fi.json), and spot-checks across multiple sections confirm the values are legitimate Finnish — not copies of English text. The required wiring changes (languages.ts, translations/index.ts, plural-config.json) all follow the established pattern for other languages. Finnish plural forms (["one", "other"]) are correct. A changeset for @medusajs/dashboard at patch level is included. No security issues, performance issues, or bugs were found. PR template is fully filled out. Triggered by: new PR opened |
Adds Finnish translations for the admin dashboard, following the community translation contribution guide.
Summary
What — What changes are introduced in this PR?
Adds Finnish (
fi) as a supported language for the Medusa Admin dashboard:packages/admin/dashboard/src/i18n/translations/fi.json— full Finnish translation ofen.jsonpackages/admin/dashboard/src/i18n/translations/index.ts— registersfiin the translation resources mappackages/admin/dashboard/src/i18n/languages.ts— addsfito the language list (display name "Suomi",date_localefromdate-fns/locale)packages/admin/dashboard/src/i18n/plural-config.json— adds"fi": ["one", "other"](Finnish uses the same two-form plural rule as English)Why — Why are these changes relevant or necessary?
Finnish was not yet among the community-translated languages available in the Admin dashboard. This lets Finnish-speaking merchants use the Admin in their native language, following the existing admin translation contribution guide.
How — How have these changes been implemented?
Followed the documented translation contribution flow: copied
en.jsonas the base, translated every string value to Finnish (keeping all keys, interpolation placeholders like{{count}}/{{title}}, and JSX-like tags such as<0>/<LinkComponent>untouched), then wired the new locale intoindex.ts,languages.ts, andplural-config.jsonthe same way every other language is registered.Testing — How have these changes been tested, or how can the reviewer test the feature?
yarn i18n:validate fi.json(run frompackages/admin/dashboard) passes — confirmsfi.jsonmatches the translation schema and has the correct plural key forms for every pluralized string.fi.jsonhas identical key structure toen.json(same leaf keys, no missing/extra entries).Examples
Not applicable — this is a translation-only change, not a new API or component.
Checklist
Please ensure the following before requesting a review:
.changeset/fi-translation.mdmarking@medusajs/dashboardas a patchvalidate-translations.spec.tsschema/plural-form tests, which run against all locale filesyarn i18n:validate fi.jsonAdditional Context
Adds the 34th community-contributed language for the Admin dashboard. Reference: Translate Medusa Admin guide.