@medusajs/dashboard 2.21.1 → 2.21.2-preview-20260925133948
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/app.js +21672 -582
- package/dist/app.mjs +1 -1
- package/dist/{chunk-UDPUYIKV.mjs → chunk-HUTZEPPT.mjs} +21673 -584
- package/dist/{chunk-3RY4ISLD.mjs → chunk-RQ6OWU3K.mjs} +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/{order-detail-YYIH6YFV.mjs → order-detail-MYDKPYGI.mjs} +6 -5
- package/dist/{product-attributes-3C76JM56.mjs → product-attributes-5RX3IK4I.mjs} +1 -1
- package/dist/{product-create-S672UW4V.mjs → product-create-UTSVUUSK.mjs} +1 -1
- package/dist/{product-detail-TC47N5TP.mjs → product-detail-KCLKWLJK.mjs} +2 -2
- package/dist/{product-edit-ZRP4ELVV.mjs → product-edit-32DFHXCZ.mjs} +1 -1
- package/dist/{product-options-manage-J6IMY2J5.mjs → product-options-manage-VKOXMTH5.mjs} +2 -2
- package/dist/{product-organization-7AD5G2G5.mjs → product-organization-NHDQR7MX.mjs} +1 -1
- package/dist/{refund-reason-list-ERV2GLHV.mjs → refund-reason-list-XWAHZGYQ.mjs} +1 -1
- package/dist/{region-create-RTTTOX5X.mjs → region-create-XT6B5FHU.mjs} +2 -2
- package/dist/{return-reason-list-4BOD6YBN.mjs → return-reason-list-UCY4AGYF.mjs} +1 -1
- package/dist/{shipping-profiles-list-JROCVDAK.mjs → shipping-profiles-list-R2OKGF64.mjs} +1 -1
- package/package.json +10 -9
- package/src/i18n/translations/$schema.json +12 -0
- package/src/i18n/translations/ar.json +1105 -22
- package/src/i18n/translations/bg.json +869 -21
- package/src/i18n/translations/bs.json +889 -21
- package/src/i18n/translations/cs.json +3691 -3103
- package/src/i18n/translations/de.json +1070 -26
- package/src/i18n/translations/el.json +911 -37
- package/src/i18n/translations/en.json +3 -0
- package/src/i18n/translations/enGB.json +494 -9
- package/src/i18n/translations/es.json +442 -10
- package/src/i18n/translations/fa.json +138 -6
- package/src/i18n/translations/fi.json +11 -3
- package/src/i18n/translations/fr.json +1070 -25
- package/src/i18n/translations/he.json +936 -20
- package/src/i18n/translations/hr.json +11 -3
- package/src/i18n/translations/hu.json +860 -31
- package/src/i18n/translations/id.json +3746 -2941
- package/src/i18n/translations/it.json +1043 -24
- package/src/i18n/translations/ja.json +208 -5
- package/src/i18n/translations/ko.json +819 -20
- package/src/i18n/translations/lt.json +950 -20
- package/src/i18n/translations/mk.json +945 -36
- package/src/i18n/translations/mn.json +943 -30
- package/src/i18n/translations/nl.json +853 -24
- package/src/i18n/translations/pl.json +11 -3
- package/src/i18n/translations/ptBR.json +156 -5
- package/src/i18n/translations/ptPT.json +620 -10
- package/src/i18n/translations/ro.json +973 -22
- package/src/i18n/translations/ru.json +58 -3
- package/src/i18n/translations/sv.json +10 -2
- package/src/i18n/translations/th.json +490 -9
- package/src/i18n/translations/tr.json +10 -2
- package/src/i18n/translations/uk.json +1121 -40
- package/src/i18n/translations/vi.json +825 -45
- package/src/i18n/translations/zhCN.json +830 -22
- package/src/i18n/translations/zhTW.json +585 -10
- package/src/routes/orders/order-detail/components/order-payment-section/order-payment-section.tsx +6 -5
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-table-adapter.tsx +1 -1
- package/src/routes/regions/region-create/components/create-region-form/create-region-form.tsx +4 -2
- package/src/routes/return-reasons/return-reason-list/components/return-reason-list-table/return-reason-table-adapter.tsx +1 -1
- package/src/routes/shipping-profiles/shipping-profiles-list/components/shipping-profile-list-table/shipping-profile-table-adapter.tsx +1 -1
package/README.md
CHANGED
|
@@ -28,3 +28,42 @@ export default {
|
|
|
28
28
|
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
|
29
29
|
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
|
|
30
30
|
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
|
|
31
|
+
|
|
32
|
+
## Translations
|
|
33
|
+
|
|
34
|
+
Translation files live in `src/i18n/translations`. `en.json` is the source of truth, and every other `<locale>.json` file is translated from it.
|
|
35
|
+
|
|
36
|
+
### Find missing translations
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
yarn i18n:sync missing
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Prints the number of strings in `en.json` that each locale is missing. Plural keys are expanded to the plural forms each locale uses, as defined in `src/i18n/plural-config.json`.
|
|
43
|
+
|
|
44
|
+
Pass `--output` to also write the missing strings to a JSON file:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
yarn i18n:sync missing --output missing.json
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The file is keyed by locale. Each entry has the number of missing strings (`count`), the locale's plural forms (`pluralForms`), and the missing keys nested as in `en.json` with their English text as values (`missing`).
|
|
51
|
+
|
|
52
|
+
### Apply translations
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
yarn i18n:sync apply --input <directory>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Merges translated strings into the locale files. The directory must contain JSON files named `<locale>.json`, or `<locale>.<anything>.json` to split a locale across several files (for example, `de.part-1.json`). Each file uses the same nested shape as `missing` in the `missing` output, with translated values.
|
|
59
|
+
|
|
60
|
+
New keys are inserted next to their neighbors in `en.json`, and existing keys keep their order. A translation is skipped with a warning if:
|
|
61
|
+
|
|
62
|
+
- Its key doesn't exist in `en.json`, or is a plural form the locale doesn't use.
|
|
63
|
+
- The locale already has a translation for the key. Existing translations are never overwritten.
|
|
64
|
+
- It's empty or not a string.
|
|
65
|
+
- Its `{{placeholders}}` or `<0>` tags don't match the English text. Plural forms may add or drop `{{count}}`.
|
|
66
|
+
|
|
67
|
+
### Automated sync
|
|
68
|
+
|
|
69
|
+
The [Admin i18n Sync](../../../.github/workflows/admin-i18n-sync.yml) workflow runs daily. It finds missing translations, translates them with Claude, and opens a PR on the `chore/admin-i18n-sync-translations` branch. It skips runs while a previous sync PR is still open.
|