Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

fix(dashboard): route hardcoded panel strings through i18n (#1227)

Viktor Holik78bac83d6d87
diff --git a/bun.lock b/bun.lock
index 717d889b3..bb332ae48 100644
--- a/bun.lock
+++ b/bun.lock
@@ -39,7 +39,7 @@
"react-hook-form": "7.49.1",
"react-i18next": "17.0.8",
"react-jwt": "^2.0.0",
- "react-router-dom": "6.30.3",
+ "react-router-dom": "7.18.1",
"zod": "4.4.3",
},
"devDependencies": {
@@ -109,7 +109,7 @@
"react-hook-form": "7.49.1",
"react-i18next": "17.0.8",
"react-jwt": "^2.0.0",
- "react-router-dom": "6.30.3",
+ "react-router-dom": "7.18.1",
"zod": "4.4.3",
},
"devDependencies": {
@@ -172,8 +172,8 @@
"@medusajs/dashboard": "2.17.2",
"@medusajs/icons": "2.17.2",
"@medusajs/ui": "4.1.19",
- "@mercurjs/client": "2.2.0-canary.52",
- "@mercurjs/dashboard-shared": "2.2.0-canary.52",
+ "@mercurjs/client": "2.2.0-canary.53",
+ "@mercurjs/dashboard-shared": "2.2.0-canary.53",
"@radix-ui/react-dialog": "1.1.19",
"@radix-ui/react-dismissable-layer": "1.1.4",
"@tanstack/react-query": "5.64.2",
@@ -198,15 +198,15 @@
"react-hook-form": "7.49.1",
"react-i18next": "17.0.8",
"react-jwt": "^1.2.0",
- "react-router-dom": "6.30.3",
+ "react-router-dom": "7.18.1",
"zod": "4.4.3",
},
"devDependencies": {
"@medusajs/types": "2.17.2",
"@medusajs/ui-preset": "2.17.2",
- "@mercurjs/core": "2.2.0-canary.52",
- "@mercurjs/dashboard-sdk": "2.2.0-canary.52",
- "@mercurjs/types": "2.2.0-canary.52",
+ "@mercurjs/core": "2.2.0-canary.53",
+ "@mercurjs/dashboard-sdk": "2.2.0-canary.53",
+ "@mercurjs/types": "2.2.0-canary.53",
"@types/react": "^19.2.17",
"@types/react-dom": "^18.2.22",
"autoprefixer": "^10.4.20",
@@ -230,7 +230,7 @@
"@antfu/ni": "^27.0.1",
"@medusajs/admin-bundler": "2.17.2",
"@medusajs/framework": "2.17.2",
- "@mercurjs/dashboard-sdk": "2.2.0-canary.52",
+ "@mercurjs/dashboard-sdk": "2.2.0-canary.53",
"@vitejs/plugin-react": "^6.0.3",
"commander": "^15.0.0",
"cosmiconfig": "^9.0.0",
@@ -290,8 +290,8 @@
"@medusajs/test-utils": "2.17.2",
"@medusajs/types": "2.17.2",
"@medusajs/ui": "4.1.19",
- "@mercurjs/cli": "2.2.0-canary.52",
- "@mercurjs/types": "2.2.0-canary.52",
+ "@mercurjs/cli": "2.2.0-canary.53",
+ "@mercurjs/types": "2.2.0-canary.53",
"@swc/core": "^1.7.28",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
@@ -386,7 +386,7 @@
"@medusajs/dashboard": "2.17.2",
"@medusajs/icons": "2.17.2",
"@medusajs/ui": "4.1.19",
- "@mercurjs/client": "2.2.0-canary.52",
+ "@mercurjs/client": "2.2.0-canary.53",
"@radix-ui/react-dialog": "1.1.19",
"@radix-ui/react-dismissable-layer": "1.1.4",
"@tanstack/react-query": "5.64.2",
@@ -411,13 +411,13 @@
"react-hook-form": "7.49.1",
"react-i18next": "17.0.8",
"react-jwt": "^1.2.0",
- "react-router-dom": "6.30.3",
+ "react-router-dom": "7.18.1",
"zod": "4.4.3",
},
"devDependencies": {
- "@mercurjs/core": "2.2.0-canary.52",
- "@mercurjs/dashboard-sdk": "2.2.0-canary.52",
- "@mercurjs/types": "2.2.0-canary.52",
+ "@mercurjs/core": "2.2.0-canary.53",
+ "@mercurjs/dashboard-sdk": "2.2.0-canary.53",
+ "@mercurjs/types": "2.2.0-canary.53",
"@types/lodash.debounce": "^4.0.8",
"@types/react": "^19.2.17",
"@types/react-dom": "^18.2.22",
@@ -454,11 +454,11 @@
"@medusajs/icons": "2.17.2",
"@medusajs/medusa": "2.17.2",
"@medusajs/ui": "4.1.19",
- "@mercurjs/client": "2.2.0-canary.52",
- "@mercurjs/core": "2.2.0-canary.52",
- "@mercurjs/dashboard-sdk": "2.2.0-canary.52",
- "@mercurjs/dashboard-shared": "2.2.0-canary.52",
- "@mercurjs/vendor": "2.2.0-canary.52",
+ "@mercurjs/client": "2.2.0-canary.53",
+ "@mercurjs/core": "2.2.0-canary.53",
+ "@mercurjs/dashboard-sdk": "2.2.0-canary.53",
+ "@mercurjs/dashboard-shared": "2.2.0-canary.53",
+ "@mercurjs/vendor": "2.2.0-canary.53",
"@talkjs/react": "^0.1.11",
"@tanstack/react-query": "5.64.2",
"@tanstack/react-table": "8.20.5",
@@ -468,13 +468,13 @@
"react-hook-form": "7.49.1",
"react-i18next": "17.0.8",
"react-jwt": "2.0.0",
- "react-router-dom": "6.30.3",
+ "react-router-dom": "7.18.1",
"zod": "4.4.3",
},
"devDependencies": {
"@medusajs/cli": "2.17.2",
- "@mercurjs/cli": "2.2.0-canary.52",
- "@mercurjs/types": "2.2.0-canary.52",
+ "@mercurjs/cli": "2.2.0-canary.53",
+ "@mercurjs/types": "2.2.0-canary.53",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
@@ -512,8 +512,8 @@
"@medusajs/dashboard": "2.17.2",
"@medusajs/icons": "2.17.2",
"@medusajs/ui": "4.1.19",
- "@mercurjs/client": "2.2.0-canary.52",
- "@mercurjs/dashboard-shared": "2.2.0-canary.52",
+ "@mercurjs/client": "2.2.0-canary.53",
+ "@mercurjs/dashboard-shared": "2.2.0-canary.53",
"@radix-ui/react-dialog": "1.1.19",
"@radix-ui/react-dismissable-layer": "1.1.4",
"@tanstack/react-query": "5.64.2",
@@ -538,15 +538,15 @@
"react-hook-form": "7.49.1",
"react-i18next": "17.0.8",
"react-jwt": "^1.2.0",
- "react-router-dom": "6.30.3",
+ "react-router-dom": "7.18.1",
"zod": "4.4.3",
},
"devDependencies": {
"@medusajs/types": "2.17.2",
"@medusajs/ui-preset": "2.17.2",
- "@mercurjs/core": "2.2.0-canary.52",
- "@mercurjs/dashboard-sdk": "2.2.0-canary.52",
- "@mercurjs/types": "2.2.0-canary.52",
+ "@mercurjs/core": "2.2.0-canary.53",
+ "@mercurjs/dashboard-sdk": "2.2.0-canary.53",
+ "@mercurjs/types": "2.2.0-canary.53",
"@types/react": "^19.2.17",
"@types/react-dom": "^18.2.22",
"autoprefixer": "^10.4.20",
@@ -1493,7 +1493,7 @@
"@react-types/shared": ["@react-types/[email protected]", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-gp6xo/s2lX54AlTjOiqwDnxA7UW79BNvI9dB9pr3LZTzRKCd1ZA+ZbgKw/ReIiWuvvVw/8QFJpnqeeFyLocMcQ=="],
- "@remix-run/router": ["@remix-run/[email protected]", "", {}, "sha512-Ic6m2U/rMjTkhERIa/0ZtXJP17QUi2CbWE7cqx4J58M8aA3QTfW+2UlQ4psvTX9IO1RfNVhK3pcpdjej7L+t2w=="],
+ "@remix-run/router": ["@remix-run/[email protected]", "", {}, "sha512-4An71tdz9X8+3sI4Qqqd2LWd9vS39J7sqd9EU4Scw7TJE/qB10Flv/UuqbPVgfQV9XoK8Np6jNquZitnZq5i+Q=="],
"@rolldown/binding-android-arm64": ["@rolldown/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-EZLpf/8y7GXkkra90ML47kzik/GMP3EMcE9bPyHmRfxLC6z9+aW5A8poCsoxjrT5GfEcNAAvWwUHjvP1pUQkfw=="],
@@ -3091,9 +3091,9 @@
"react-remove-scroll-bar": ["[email protected]", "", { "dependencies": { "react-style-singleton": "^2.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q=="],
- "react-router": ["[email protected]", "", { "dependencies": { "@remix-run/router": "1.23.2" }, "peerDependencies": { "react": ">=16.8" } }, "sha512-XRnlbKMTmktBkjCLE8/XcZFlnHvr2Ltdr1eJX4idL55/9BbORzyZEaIkBFDhFGCEWBBItsVrDxwx3gnisMitdw=="],
+ "react-router": ["[email protected]", "", { "dependencies": { "cookie": "^1.0.1", "set-cookie-parser": "^2.6.0" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" }, "optionalPeers": ["react-dom"] }, "sha512-GDLgg3i3uM0aeJO3Fm+TCS+sDQ7gu12T6x0qdTEzcwqEfleci7JwugVNIF3U//0FWKnJT7ptG+20B2jfDqnZAg=="],
- "react-router-dom": ["[email protected]", "", { "dependencies": { "@remix-run/router": "1.23.2", "react-router": "6.30.3" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "sha512-pxPcv1AczD4vso7G4Z3TKcvlxK7g7TNt3/FNGMhfqyntocvYKj+GCatfigGDjbLozC4baguJ0ReCigoDJXb0ag=="],
+ "react-router-dom": ["[email protected]", "", { "dependencies": { "react-router": "7.18.1" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" } }, "sha512-KaZh+X/6UtEp28x51AUYZDMg9NGoz2ja3dNHa+ta/tk40vCzKhQ/RypCWBMLbmDr6//E24Vv5uPsrqXFozdkAg=="],
"react-stately": ["[email protected]", "", { "dependencies": { "@internationalized/date": "^3.12.1", "@internationalized/number": "^3.6.6", "@internationalized/string": "^3.2.8", "@react-types/shared": "^3.34.0", "@swc/helpers": "^0.5.0", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-OdxhWvHgs2L4OJGIs7hnuTr5WjjMM6enhNEAMRqiekhF8+ITvA2LRwNftOZwcogaoCslGYq5S2VQTQwnm0GbCA=="],
@@ -3173,6 +3173,8 @@
"set-blocking": ["[email protected]", "", {}, "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="],
+ "set-cookie-parser": ["[email protected]", "", {}, "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw=="],
+
"setprototypeof": ["[email protected]", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="],
"shallowequal": ["[email protected]", "", {}, "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="],
@@ -3753,6 +3755,8 @@
"@medusajs/draft-order/radix-ui": ["[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.1", "@radix-ui/react-accessible-icon": "1.1.1", "@radix-ui/react-accordion": "1.2.2", "@radix-ui/react-alert-dialog": "1.1.5", "@radix-ui/react-aspect-ratio": "1.1.1", "@radix-ui/react-avatar": "1.1.2", "@radix-ui/react-checkbox": "1.1.3", "@radix-ui/react-collapsible": "1.1.2", "@radix-ui/react-collection": "1.1.1", "@radix-ui/react-compose-refs": "1.1.1", "@radix-ui/react-context": "1.1.1", "@radix-ui/react-context-menu": "2.2.5", "@radix-ui/react-dialog": "1.1.5", "@radix-ui/react-direction": "1.1.0", "@radix-ui/react-dismissable-layer": "1.1.4", "@radix-ui/react-dropdown-menu": "2.1.5", "@radix-ui/react-focus-guards": "1.1.1", "@radix-ui/react-focus-scope": "1.1.1", "@radix-ui/react-form": "0.1.1", "@radix-ui/react-hover-card": "1.1.5", "@radix-ui/react-label": "2.1.1", "@radix-ui/react-menu": "2.1.5", "@radix-ui/react-menubar": "1.1.5", "@radix-ui/react-navigation-menu": "1.2.4", "@radix-ui/react-popover": "1.1.5", "@radix-ui/react-popper": "1.2.1", "@radix-ui/react-portal": "1.1.3", "@radix-ui/react-presence": "1.1.2", "@radix-ui/react-primitive": "2.0.1", "@radix-ui/react-progress": "1.1.1", "@radix-ui/react-radio-group": "1.2.2", "@radix-ui/react-roving-focus": "1.1.1", "@radix-ui/react-scroll-area": "1.2.2", "@radix-ui/react-select": "2.1.5", "@radix-ui/react-separator": "1.1.1", "@radix-ui/react-slider": "1.2.2", "@radix-ui/react-slot": "1.1.1", "@radix-ui/react-switch": "1.1.2", "@radix-ui/react-tabs": "1.1.2", "@radix-ui/react-toast": "1.2.5", "@radix-ui/react-toggle": "1.1.1", "@radix-ui/react-toggle-group": "1.1.1", "@radix-ui/react-toolbar": "1.1.1", "@radix-ui/react-tooltip": "1.1.7", "@radix-ui/react-use-callback-ref": "1.1.0", "@radix-ui/react-use-controllable-state": "1.1.0", "@radix-ui/react-use-escape-keydown": "1.1.0", "@radix-ui/react-use-layout-effect": "1.1.0", "@radix-ui/react-use-size": "1.1.0", "@radix-ui/react-visually-hidden": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-P2F30iTIG/eheoZbF3QXo7kDoFgnj/zxX1NwPq02G00ggq7OSXFsMuyn98WHtQCql2DsO8ZCbBk+VbbgVrlwOg=="],
+ "@medusajs/draft-order/react-router-dom": ["[email protected]", "", { "dependencies": { "@remix-run/router": "1.23.2", "react-router": "6.30.3" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "sha512-pxPcv1AczD4vso7G4Z3TKcvlxK7g7TNt3/FNGMhfqyntocvYKj+GCatfigGDjbLozC4baguJ0ReCigoDJXb0ag=="],
+
"@medusajs/framework/glob": ["[email protected]", "", { "dependencies": { "minimatch": "^10.2.2", "minipass": "^7.1.3", "path-scurry": "^2.0.2" } }, "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw=="],
"@medusajs/framework/zod-validation-error": ["[email protected]", "", { "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" } }, "sha512-hmk+pkyKq7Q71PiWVSDUc3VfpzpvcRHZ3QPw9yEMVvmtCekaMeOHnbr3WbxfrgEnQTv6haGP4cmv0Ojmihzsxw=="],
@@ -4239,6 +4243,8 @@
"react-remove-scroll-bar/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
+ "react-router/cookie": ["[email protected]", "", {}, "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ=="],
+
"react-style-singleton/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
"restore-cursor/onetime": ["[email protected]", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="],
@@ -4577,8 +4583,6 @@
"@medusajs/dashboard/radix-ui/@radix-ui/react-visually-hidden": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.0.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-vVfA2IZ9q/J+gEamvj761Oq1FpWgCDaNOOIfbPVp2MVPLEomUr5+Vf7kJGwQ24YxZSlQVar7Bes8kyTo5Dshpg=="],
- "@medusajs/dashboard/react-router-dom/@remix-run/router": ["@remix-run/[email protected]", "", {}, "sha512-4An71tdz9X8+3sI4Qqqd2LWd9vS39J7sqd9EU4Scw7TJE/qB10Flv/UuqbPVgfQV9XoK8Np6jNquZitnZq5i+Q=="],
-
"@medusajs/dashboard/react-router-dom/react-router": ["[email protected]", "", { "dependencies": { "@remix-run/router": "1.23.3" }, "peerDependencies": { "react": ">=16.8" } }, "sha512-SVUsDe+DybHM/WmYKIVYhZh1o5Dcuf16yM6WjG02Q9XVFMZIJyHYhwrr6bFBXZkVP6z69kNkMyBCujt8FaFLJA=="],
"@medusajs/draft-order/radix-ui/@radix-ui/primitive": ["@radix-ui/[email protected]", "", {}, "sha512-SJ31y+Q/zAyShtXJc8x83i9TYdbAfHZ++tUZnvjJJqFjzsdUnKsxPL6IEtBlxKkU7yzer//GQtZSV4GbldL3YA=="],
@@ -4679,6 +4683,10 @@
"@medusajs/draft-order/radix-ui/@radix-ui/react-visually-hidden": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.0.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-vVfA2IZ9q/J+gEamvj761Oq1FpWgCDaNOOIfbPVp2MVPLEomUr5+Vf7kJGwQ24YxZSlQVar7Bes8kyTo5Dshpg=="],
+ "@medusajs/draft-order/react-router-dom/@remix-run/router": ["@remix-run/[email protected]", "", {}, "sha512-Ic6m2U/rMjTkhERIa/0ZtXJP17QUi2CbWE7cqx4J58M8aA3QTfW+2UlQ4psvTX9IO1RfNVhK3pcpdjej7L+t2w=="],
+
+ "@medusajs/draft-order/react-router-dom/react-router": ["[email protected]", "", { "dependencies": { "@remix-run/router": "1.23.2" }, "peerDependencies": { "react": ">=16.8" } }, "sha512-XRnlbKMTmktBkjCLE8/XcZFlnHvr2Ltdr1eJX4idL55/9BbORzyZEaIkBFDhFGCEWBBItsVrDxwx3gnisMitdw=="],
+
"@medusajs/framework/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],
"@medusajs/types/vite/esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.21.5", "@esbuild/android-arm": "0.21.5", "@esbuild/android-arm64": "0.21.5", "@esbuild/android-x64": "0.21.5", "@esbuild/darwin-arm64": "0.21.5", "@esbuild/darwin-x64": "0.21.5", "@esbuild/freebsd-arm64": "0.21.5", "@esbuild/freebsd-x64": "0.21.5", "@esbuild/linux-arm": "0.21.5", "@esbuild/linux-arm64": "0.21.5", "@esbuild/linux-ia32": "0.21.5", "@esbuild/linux-loong64": "0.21.5", "@esbuild/linux-mips64el": "0.21.5", "@esbuild/linux-ppc64": "0.21.5", "@esbuild/linux-riscv64": "0.21.5", "@esbuild/linux-s390x": "0.21.5", "@esbuild/linux-x64": "0.21.5", "@esbuild/netbsd-x64": "0.21.5", "@esbuild/openbsd-x64": "0.21.5", "@esbuild/sunos-x64": "0.21.5", "@esbuild/win32-arm64": "0.21.5", "@esbuild/win32-ia32": "0.21.5", "@esbuild/win32-x64": "0.21.5" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw=="],
diff --git a/packages/admin/src/hooks/table/columns/use-commission-rules-table-columns.tsx b/packages/admin/src/hooks/table/columns/use-commission-rules-table-columns.tsx
index 22725e215..2f7a66ddf 100644
--- a/packages/admin/src/hooks/table/columns/use-commission-rules-table-columns.tsx
+++ b/packages/admin/src/hooks/table/columns/use-commission-rules-table-columns.tsx
@@ -1,4 +1,5 @@
import { useMemo } from "react";
+import { useTranslation } from "react-i18next";
import { createColumnHelper } from "@tanstack/react-table";
@@ -17,38 +18,40 @@ export const useCommissionRulesTableColumns = ({
}: {
onSuccess?: () => void;
}) => {
+ const { t } = useTranslation();
+
return useMemo(
() => [
columnHelper.accessor("name", {
- header: () => <TextHeader text="Rule Name" />,
+ header: () => <TextHeader text={t("commissions.rulesTable.name")} />,
cell: ({ getValue }) => <TextCell text={getValue()} />,
}),
columnHelper.accessor("reference", {
- header: () => <TextHeader text="Type" />,
+ header: () => <TextHeader text={t("fields.type")} />,
cell: ({ getValue }) => <TextCell text={getValue()} />,
}),
columnHelper.accessor("ref_value", {
- header: () => <TextHeader text="Attribute" />,
+ header: () => <TextHeader text={t("commissions.rulesTable.attribute")} />,
cell: ({ getValue }) => <TextCell text={getValue()} />,
}),
columnHelper.accessor("fee_value", {
- header: () => <TextHeader text="Fee" />,
+ header: () => <TextHeader text={t("commissions.rulesTable.fee")} />,
cell: ({ getValue }) => <TextCell text={getValue()} />,
}),
columnHelper.accessor("is_active", {
- header: () => <TextHeader text="Status" />,
+ header: () => <TextHeader text={t("fields.status")} />,
cell: ({ getValue }) => {
const value = getValue();
return (
<StatusCell color={value ? "green" : "grey"}>
- {value ? "Enabled" : "Disabled"}
+ {value ? t("general.enabled") : t("general.disabled")}
</StatusCell>
);
},
}),
columnHelper.accessor("id", {
- header: () => <TextHeader text="Status" />,
+ header: () => <TextHeader text={t("fields.status")} />,
cell: (props) => {
return (
<CommissionActionMenu
@@ -60,6 +63,6 @@ export const useCommissionRulesTableColumns = ({
},
}),
],
- [onSuccess],
+ [onSuccess, t],
);
};
diff --git a/packages/admin/src/hooks/table/columns/use-shipping-option-table-columns.tsx b/packages/admin/src/hooks/table/columns/use-shipping-option-table-columns.tsx
index 39a867084..aef207262 100644
--- a/packages/admin/src/hooks/table/columns/use-shipping-option-table-columns.tsx
+++ b/packages/admin/src/hooks/table/columns/use-shipping-option-table-columns.tsx
@@ -21,7 +21,7 @@ export const useShippingOptionTableColumns = () => {
columnHelper.accessor("shipping_profile", {
header: () => t("fields.shippingProfile"),
cell: ({ row }) => (
- <TextCell text={row.original.shipping_profile?.name || "N/A"} />
+ <TextCell text={row.original.shipping_profile?.name || t("general.notAvailable")} />
),
}),
columnHelper.display({
@@ -41,14 +41,14 @@ export const useShippingOptionTableColumns = () => {
cell: ({ row }) => {
const serviceZoneName = row.original.service_zone?.name
- return <TextCell text={serviceZoneName || "N/A"} />
+ return <TextCell text={serviceZoneName || t("general.notAvailable")} />
},
}),
columnHelper.display({
id: "enabled_in_store",
header: () => t("fields.enabledInStore"),
cell: ({ row }) => {
- let text = "N/A"
+ let text = t("general.notAvailable")
const val = row.original.rules?.find(
(r) => r.attribute === "enabled_in_store"
)
@@ -64,7 +64,7 @@ export const useShippingOptionTableColumns = () => {
id: "is_return",
header: () => t("fields.isReturn"),
cell: ({ row }) => {
- let text = "N/A"
+ let text = t("general.notAvailable")
const val = row.original.rules?.find(
(r) => r.attribute === "is_return"
)
diff --git a/packages/admin/src/hooks/use-view-configurations.tsx b/packages/admin/src/hooks/use-view-configurations.tsx
index b0c9379ed..a57aa4587 100644
--- a/packages/admin/src/hooks/use-view-configurations.tsx
+++ b/packages/admin/src/hooks/use-view-configurations.tsx
@@ -1,4 +1,6 @@
import { useMemo } from "react"
+import i18n from "i18next"
+import { useTranslation } from "react-i18next"
import { toast } from "@medusajs/ui"
import { ClientError } from "@mercurjs/client"
import { useFeatureFlag } from "../providers/feature-flag-provider"
@@ -20,7 +22,7 @@ const handleError = (error: Error, message?: string) => {
} else if (error.message) {
errorMessage = error.message
} else {
- errorMessage = "An error occurred"
+ errorMessage = i18n.t("errorBoundary.defaultTitle")
}
}
@@ -28,6 +30,7 @@ const handleError = (error: Error, message?: string) => {
}
export const useViewConfigurations = (entity: string) => {
+ const { t } = useTranslation()
const isViewConfigEnabled = useFeatureFlag("view_configurations")
// List views
@@ -43,10 +46,10 @@ export const useViewConfigurations = (entity: string) => {
// Create view mutation
const createView = useCreateViewConfigurationBase(entity, {
onSuccess: () => {
- toast.success(`View created`)
+ toast.success(t("views.toasts.created"))
},
onError: (error) => {
- handleError(error, "Failed to create view")
+ handleError(error, t("views.toasts.createFailed"))
},
})
@@ -55,7 +58,7 @@ export const useViewConfigurations = (entity: string) => {
onSuccess: () => {
},
onError: (error) => {
- handleError(error, "Failed to update active view")
+ handleError(error, t("views.toasts.updateActiveFailed"))
},
})
@@ -77,21 +80,23 @@ export const useViewConfigurations = (entity: string) => {
// Hook for update/delete operations on a specific view
export const useViewConfiguration = (entity: string, viewId: string) => {
+ const { t } = useTranslation()
+
const updateView = useUpdateViewConfigurationBase(entity, viewId, {
onSuccess: () => {
- toast.success(`View updated`)
+ toast.success(t("views.toasts.updated"))
},
onError: (error) => {
- handleError(error, "Failed to update view")
+ handleError(error, t("views.toasts.updateFailed"))
},
})
const deleteView = useDeleteViewConfigurationBase(entity, viewId, {
onSuccess: () => {
- toast.success("View deleted successfully")
+ toast.success(t("views.toasts.deleted"))
},
onError: (error) => {
- handleError(error, "Failed to delete view")
+ handleError(error, t("views.toasts.deleteFailed"))
},
})
diff --git a/packages/admin/src/i18n/translations/$schema.json b/packages/admin/src/i18n/translations/$schema.json
index c74c91eed..b8a2a7043 100644
--- a/packages/admin/src/i18n/translations/$schema.json
+++ b/packages/admin/src/i18n/translations/$schema.json
@@ -8,6 +8,12 @@
"general": {
"type": "object",
"properties": {
+ "unknownError": {
+ "type": "string"
+ },
+ "notAvailable": {
+ "type": "string"
+ },
"ascending": {
"type": "string"
},
@@ -385,6 +391,18 @@
"validation": {
"type": "object",
"properties": {
+ "requiredField": {
+ "type": "string"
+ },
+ "valueRequired": {
+ "type": "string"
+ },
+ "currencyCodeNotFound": {
+ "type": "string"
+ },
+ "shippingOptionIdMissing": {
+ "type": "string"
+ },
"mustBeInt": {
"type": "string"
},
@@ -9376,6 +9394,77 @@
"promotions": {
"type": "object",
"properties": {
+ "templates": {
+ "type": "object",
+ "properties": {
+ "amountOffProducts": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ }
+ },
+ "amountOffOrder": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ }
+ },
+ "percentageOffProduct": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ }
+ },
+ "percentageOffOrder": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ }
+ },
+ "buyGet": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ }
+ },
+ "freeShipping": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
"domain": {
"type": "string"
},
@@ -11505,6 +11594,17 @@
"scheduledClosure": {
"type": "object",
"properties": {
+ "validation": {
+ "type": "object",
+ "properties": {
+ "closedFromRequired": {
+ "type": "string"
+ },
+ "closedFromInPast": {
+ "type": "string"
+ }
+ }
+ },
"header": {
"type": "string"
},
@@ -14507,6 +14607,32 @@
"views": {
"type": "object",
"properties": {
+ "toasts": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "string"
+ },
+ "createFailed": {
+ "type": "string"
+ },
+ "updateActiveFailed": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "string"
+ },
+ "updateFailed": {
+ "type": "string"
+ },
+ "deleted": {
+ "type": "string"
+ },
+ "deleteFailed": {
+ "type": "string"
+ }
+ }
+ },
"save": {
"type": "string"
},
@@ -14826,6 +14952,20 @@
"commissions": {
"type": "object",
"properties": {
+ "rulesTable": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "attribute": {
+ "type": "string"
+ },
+ "fee": {
+ "type": "string"
+ }
+ }
+ },
"domain": {
"type": "string"
},
diff --git a/packages/admin/src/i18n/translations/ar.json b/packages/admin/src/i18n/translations/ar.json
index b141d7288..eaef1b4d9 100644
--- a/packages/admin/src/i18n/translations/ar.json
+++ b/packages/admin/src/i18n/translations/ar.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "تم إنشاء العرض",
+ "createFailed": "فشل إنشاء العرض",
+ "updateActiveFailed": "فشل تحديث العرض النشط",
+ "updated": "تم تحديث العرض",
+ "updateFailed": "فشل تحديث العرض",
+ "deleted": "تم حذف العرض بنجاح",
+ "deleteFailed": "فشل حذف العرض"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "اسم القاعدة",
+ "attribute": "السمة",
+ "fee": "الرسوم"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "حدث خطأ غير معروف",
+ "notAvailable": "غير متاح",
"ascending": "تصاعدي",
"descending": "تنازلي",
"add": "إضافة",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "حقل مطلوب",
+ "valueRequired": "القيمة مطلوبة",
+ "currencyCodeNotFound": "رمز العملة غير موجود",
+ "shippingOptionIdMissing": "معرّف خيار الشحن مفقود",
"mustBeInt": "يجب أن تكون القيمة عددًا صحيحًا.",
"mustBePositive": "يجب أن تكون القيمة عددًا موجبًا."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "خصم مبلغ على المنتجات",
+ "description": "خصم على منتجات محددة أو مجموعة من المنتجات"
+ },
+ "amountOffOrder": {
+ "title": "خصم مبلغ على الطلب",
+ "description": "خصم على إجمالي مبلغ الطلب"
+ },
+ "percentageOffProduct": {
+ "title": "خصم نسبة مئوية على المنتج",
+ "description": "خصم نسبة مئوية على منتجات محددة"
+ },
+ "percentageOffOrder": {
+ "title": "خصم نسبة مئوية على الطلب",
+ "description": "خصم نسبة مئوية من إجمالي مبلغ الطلب"
+ },
+ "buyGet": {
+ "title": "اشترِ X واحصل على Y",
+ "description": "اشترِ X منتج (منتجات)، واحصل على Y منتج (منتجات)"
+ },
+ "freeShipping": {
+ "title": "شحن مجاني",
+ "description": "يطبّق خصمًا بنسبة 100% على رسوم الشحن"
+ }
+ },
"domain": "العروض الترويجية",
"sections": {
"details": "تفاصيل العرض الترويجي"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "تاريخ بدء الإغلاق مطلوب",
+ "closedFromInPast": "لا يمكن أن يكون تاريخ بدء الإغلاق في الماضي"
+ }
+ },
"domain": "المتجر",
"manageYourStoresDetails": "إدارة تفاصيل متجرك",
"editStore": "تحرير المتجر",
diff --git a/packages/admin/src/i18n/translations/bg.json b/packages/admin/src/i18n/translations/bg.json
index 6341e5fe4..a107ed946 100644
--- a/packages/admin/src/i18n/translations/bg.json
+++ b/packages/admin/src/i18n/translations/bg.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Изгледът е създаден",
+ "createFailed": "Неуспешно създаване на изглед",
+ "updateActiveFailed": "Неуспешно обновяване на активния изглед",
+ "updated": "Изгледът е обновен",
+ "updateFailed": "Неуспешно обновяване на изглед",
+ "deleted": "Изгледът е изтрит успешно",
+ "deleteFailed": "Неуспешно изтриване на изглед"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Име на правилото",
+ "attribute": "Атрибут",
+ "fee": "Такса"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Възникна неизвестна грешка",
+ "notAvailable": "Н/П",
"ascending": "Възходящо",
"descending": "Низходящо",
"add": "Добави",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Задължително поле",
+ "valueRequired": "Изисква се стойност",
+ "currencyCodeNotFound": "Кодът на валутата не е намерен",
+ "shippingOptionIdMissing": "Липсва параметър ID на метод за доставка",
"mustBeInt": "Стойността трябва да е цяло число.",
"mustBePositive": "Стойността трябва да е положително число."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Отстъпка от продукти",
+ "description": "Отстъпка за конкретни продукти или група продукти"
+ },
+ "amountOffOrder": {
+ "title": "Отстъпка от поръчка",
+ "description": "Отстъпка от общата сума на поръчката"
+ },
+ "percentageOffProduct": {
+ "title": "Процентна отстъпка от продукт",
+ "description": "Процентна отстъпка от избрани продукти"
+ },
+ "percentageOffOrder": {
+ "title": "Процентна отстъпка от поръчка",
+ "description": "Процентна отстъпка от общата сума на поръчката"
+ },
+ "buyGet": {
+ "title": "Купи X, вземи Y",
+ "description": "Купи X продукт(а), вземи Y продукт(а)"
+ },
+ "freeShipping": {
+ "title": "Безплатна доставка",
+ "description": "Прилага 100% отстъпка върху таксите за доставка"
+ }
+ },
"domain": "Промоции",
"sections": {
"details": "Детайли за промоцията"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Изисква се начална дата на затваряне",
+ "closedFromInPast": "Началната дата на затваряне не може да бъде в миналото"
+ }
+ },
"domain": "Магазин",
"manageYourStoresDetails": "Управлявайте детайлите на вашия магазин",
"editStore": "Редактиране на магазин",
diff --git a/packages/admin/src/i18n/translations/bs.json b/packages/admin/src/i18n/translations/bs.json
index 922e94ef4..47105a30a 100644
--- a/packages/admin/src/i18n/translations/bs.json
+++ b/packages/admin/src/i18n/translations/bs.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Prikaz je kreiran",
+ "createFailed": "Kreiranje prikaza nije uspjelo",
+ "updateActiveFailed": "Ažuriranje aktivnog prikaza nije uspjelo",
+ "updated": "Prikaz je ažuriran",
+ "updateFailed": "Ažuriranje prikaza nije uspjelo",
+ "deleted": "Prikaz je uspješno obrisan",
+ "deleteFailed": "Brisanje prikaza nije uspjelo"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Naziv pravila",
+ "attribute": "Atribut",
+ "fee": "Provizija"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Došlo je do nepoznate greške",
+ "notAvailable": "N/D",
"ascending": "Rastuće",
"descending": "Opadajuće",
"add": "Dodaj",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Obavezno polje",
+ "valueRequired": "Vrijednost je obavezna",
+ "currencyCodeNotFound": "Kod valute nije pronađen",
+ "shippingOptionIdMissing": "Nedostaje parametar ID opcije dostave",
"mustBeInt": "Vrijednost mora biti cijeli broj.",
"mustBePositive": "Vrijednost mora biti pozitivan broj."
},
@@ -2317,6 +2341,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Popust na proizvode",
+ "description": "Popust na određene proizvode ili grupu proizvoda"
+ },
+ "amountOffOrder": {
+ "title": "Popust na narudžbu",
+ "description": "Popust na ukupan iznos narudžbe"
+ },
+ "percentageOffProduct": {
+ "title": "Procentualni popust na proizvod",
+ "description": "Procentualni popust na odabrane proizvode"
+ },
+ "percentageOffOrder": {
+ "title": "Procentualni popust na narudžbu",
+ "description": "Procentualni popust na ukupan iznos narudžbe"
+ },
+ "buyGet": {
+ "title": "Kupi X, dobij Y",
+ "description": "Kupi X proizvod(a), dobij Y proizvod(a)"
+ },
+ "freeShipping": {
+ "title": "Besplatna dostava",
+ "description": "Primjenjuje 100% popust na troškove dostave"
+ }
+ },
"domain": "Promocije",
"sections": {
"details": "Detalji promocije"
@@ -2785,6 +2835,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Datum početka zatvaranja je obavezan",
+ "closedFromInPast": "Datum početka zatvaranja ne može biti u prošlosti"
+ }
+ },
"domain": "Trgovina",
"manageYourStoresDetails": "Upravljajte podacima svoje trgovine",
"editStore": "Uredi trgovinu",
diff --git a/packages/admin/src/i18n/translations/cs.json b/packages/admin/src/i18n/translations/cs.json
index 38697f31f..5e96f4ea7 100644
--- a/packages/admin/src/i18n/translations/cs.json
+++ b/packages/admin/src/i18n/translations/cs.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Zobrazení vytvořeno",
+ "createFailed": "Nepodařilo se vytvořit zobrazení",
+ "updateActiveFailed": "Nepodařilo se aktualizovat aktivní zobrazení",
+ "updated": "Zobrazení aktualizováno",
+ "updateFailed": "Nepodařilo se aktualizovat zobrazení",
+ "deleted": "Zobrazení bylo úspěšně smazáno",
+ "deleteFailed": "Nepodařilo se smazat zobrazení"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Název pravidla",
+ "attribute": "Atribut",
+ "fee": "Poplatek"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Došlo k neznámé chybě",
+ "notAvailable": "N/A",
"ascending": "Vzestupně",
"descending": "Sestupně",
"add": "Přidat",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Povinné pole",
+ "valueRequired": "Hodnota je povinná",
+ "currencyCodeNotFound": "Kód měny nebyl nalezen",
+ "shippingOptionIdMissing": "Chybí parametr ID možnosti dopravy",
"mustBeInt": "Hodnota musí být celé číslo.",
"mustBePositive": "Hodnota musí být kladné číslo."
},
@@ -2315,6 +2339,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Sleva v hodnotě na produkty",
+ "description": "Sleva na konkrétní produkty nebo kolekci produktů"
+ },
+ "amountOffOrder": {
+ "title": "Sleva v hodnotě na objednávku",
+ "description": "Sleva z celkové částky objednávky"
+ },
+ "percentageOffProduct": {
+ "title": "Procentuální sleva na produkt",
+ "description": "Procentuální sleva na vybrané produkty"
+ },
+ "percentageOffOrder": {
+ "title": "Procentuální sleva na objednávku",
+ "description": "Procentuální sleva z celkové částky objednávky"
+ },
+ "buyGet": {
+ "title": "Kup X Získej Y",
+ "description": "Kup X produkt(ů), získej Y produkt(ů)"
+ },
+ "freeShipping": {
+ "title": "Doprava zdarma",
+ "description": "Uplatní 100% slevu na poplatky za dopravu"
+ }
+ },
"domain": "Propagace",
"sections": {
"details": "Detaily propagace"
@@ -2783,6 +2833,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Datum zahájení uzavření je povinné",
+ "closedFromInPast": "Datum zahájení uzavření nemůže být v minulosti"
+ }
+ },
"domain": "Obchod",
"manageYourStoresDetails": "Spravujte detaily svého obchodu",
"editStore": "Upravit obchod",
diff --git a/packages/admin/src/i18n/translations/de.json b/packages/admin/src/i18n/translations/de.json
index 25e209320..2b188e77f 100644
--- a/packages/admin/src/i18n/translations/de.json
+++ b/packages/admin/src/i18n/translations/de.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Ansicht erstellt",
+ "createFailed": "Ansicht konnte nicht erstellt werden",
+ "updateActiveFailed": "Aktive Ansicht konnte nicht aktualisiert werden",
+ "updated": "Ansicht aktualisiert",
+ "updateFailed": "Ansicht konnte nicht aktualisiert werden",
+ "deleted": "Ansicht erfolgreich gelöscht",
+ "deleteFailed": "Ansicht konnte nicht gelöscht werden"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Regelname",
+ "attribute": "Attribut",
+ "fee": "Gebühr"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Ein unbekannter Fehler ist aufgetreten",
+ "notAvailable": "N/A",
"ascending": "Aufsteigend",
"descending": "Absteigend",
"add": "Hinzufügen",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Pflichtfeld",
+ "valueRequired": "Wert ist erforderlich",
+ "currencyCodeNotFound": "Währungscode nicht gefunden",
+ "shippingOptionIdMissing": "Parameter für die Versandoptions-ID fehlt",
"mustBeInt": "Der Wert muss eine ganze Zahl sein.",
"mustBePositive": "Der Wert muss eine positive Zahl sein."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Betrag auf Produkte",
+ "description": "Bestimmte Produkte oder Produktkollektionen rabattieren"
+ },
+ "amountOffOrder": {
+ "title": "Betrag auf Bestellung",
+ "description": "Rabattiert den Gesamtbetrag der Bestellung"
+ },
+ "percentageOffProduct": {
+ "title": "Prozentsatz auf Produkt",
+ "description": "Rabattiert einen Prozentsatz auf ausgewählte Produkte"
+ },
+ "percentageOffOrder": {
+ "title": "Prozentsatz auf Bestellung",
+ "description": "Rabattiert einen Prozentsatz des Bestellgesamtbetrags"
+ },
+ "buyGet": {
+ "title": "Kaufe X, erhalte Y",
+ "description": "Kaufe X Produkt(e), erhalte Y Produkt(e)"
+ },
+ "freeShipping": {
+ "title": "Kostenloser Versand",
+ "description": "Wendet einen Rabatt von 100% auf die Versandkosten an"
+ }
+ },
"domain": "Werbeaktionen",
"sections": {
"details": "Aktionsdetails"
@@ -2787,6 +2837,12 @@
"deleteUserSuccess": "Benutzer {{name}} wurde erfolgreich entfernt."
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Das Startdatum der Schließung ist erforderlich",
+ "closedFromInPast": "Das Startdatum der Schließung darf nicht in der Vergangenheit liegen"
+ }
+ },
"domain": "Shop",
"manageYourStoresDetails": "Verwalten Sie die Details Ihres Shops",
"editStore": "Shop bearbeiten",
diff --git a/packages/admin/src/i18n/translations/el.json b/packages/admin/src/i18n/translations/el.json
index 7c5c64f0e..f8d81b0df 100644
--- a/packages/admin/src/i18n/translations/el.json
+++ b/packages/admin/src/i18n/translations/el.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Η προβολή δημιουργήθηκε",
+ "createFailed": "Αποτυχία δημιουργίας προβολής",
+ "updateActiveFailed": "Αποτυχία ενημέρωσης ενεργής προβολής",
+ "updated": "Η προβολή ενημερώθηκε",
+ "updateFailed": "Αποτυχία ενημέρωσης προβολής",
+ "deleted": "Η προβολή διαγράφηκε με επιτυχία",
+ "deleteFailed": "Αποτυχία διαγραφής προβολής"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Όνομα κανόνα",
+ "attribute": "Χαρακτηριστικό",
+ "fee": "Χρέωση"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Παρουσιάστηκε άγνωστο σφάλμα",
+ "notAvailable": "Μη διαθέσιμο",
"ascending": "Αύξουσα",
"descending": "Φθίνουσα",
"add": "Προσθήκη",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Υποχρεωτικό πεδίο",
+ "valueRequired": "Απαιτείται τιμή",
+ "currencyCodeNotFound": "Ο κωδικός νομίσματος δεν βρέθηκε",
+ "shippingOptionIdMissing": "Λείπει η παράμετρος ID επιλογής αποστολής",
"mustBeInt": "Η τιμή πρέπει να είναι ακέραιος αριθμός.",
"mustBePositive": "Η τιμή πρέπει να είναι θετικός αριθμός."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Έκπτωση ποσού σε προϊόντα",
+ "description": "Έκπτωση σε συγκεκριμένα προϊόντα ή συλλογή προϊόντων"
+ },
+ "amountOffOrder": {
+ "title": "Έκπτωση ποσού στην παραγγελία",
+ "description": "Έκπτωση στο συνολικό ποσό της παραγγελίας"
+ },
+ "percentageOffProduct": {
+ "title": "Ποσοστιαία έκπτωση σε προϊόν",
+ "description": "Ποσοστιαία έκπτωση σε επιλεγμένα προϊόντα"
+ },
+ "percentageOffOrder": {
+ "title": "Ποσοστιαία έκπτωση στην παραγγελία",
+ "description": "Ποσοστιαία έκπτωση επί του συνολικού ποσού της παραγγελίας"
+ },
+ "buyGet": {
+ "title": "Αγόρασε X Πάρε Y",
+ "description": "Αγόρασε X προϊόν(τα), πάρε Y προϊόν(τα)"
+ },
+ "freeShipping": {
+ "title": "Δωρεάν αποστολή",
+ "description": "Εφαρμόζει έκπτωση 100% στα έξοδα αποστολής"
+ }
+ },
"domain": "Προωθήσεις",
"sections": {
"details": "Λεπτομέρειες προώθησης"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Απαιτείται η ημερομηνία έναρξης κλεισίματος",
+ "closedFromInPast": "Η ημερομηνία έναρξης κλεισίματος δεν μπορεί να είναι στο παρελθόν"
+ }
+ },
"domain": "Κατάστημα",
"manageYourStoresDetails": "Διαχειριστείτε τα στοιχεία του καταστήματός σας",
"editStore": "Επεξεργασία καταστήματος",
diff --git a/packages/admin/src/i18n/translations/en.json b/packages/admin/src/i18n/translations/en.json
index 0b2bd72c8..8872220ac 100644
--- a/packages/admin/src/i18n/translations/en.json
+++ b/packages/admin/src/i18n/translations/en.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "An unknown error occurred",
+ "notAvailable": "N/A",
"ascending": "Ascending",
"descending": "Descending",
"add": "Add",
@@ -96,6 +98,10 @@
}
},
"validation": {
+ "requiredField": "Required field",
+ "valueRequired": "Value is required",
+ "currencyCodeNotFound": "Currency code not found",
+ "shippingOptionIdMissing": "Shipping Option ID parameter is missing",
"mustBeInt": "The value must be a whole number.",
"mustBePositive": "The value must be a positive number."
},
@@ -2329,6 +2335,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Amount off products",
+ "description": "Discount specific products or collection of products"
+ },
+ "amountOffOrder": {
+ "title": "Amount off order",
+ "description": "Discounts the total order amount"
+ },
+ "percentageOffProduct": {
+ "title": "Percentage off product",
+ "description": "Discounts a percentage off selected products"
+ },
+ "percentageOffOrder": {
+ "title": "Percentage off order",
+ "description": "Discounts a percentage of the total order amount"
+ },
+ "buyGet": {
+ "title": "Buy X Get Y",
+ "description": "Buy X product(s), get Y product(s)"
+ },
+ "freeShipping": {
+ "title": "Free shipping",
+ "description": "Applies a 100% discount to shipping fees"
+ }
+ },
"domain": "Promotions",
"sections": {
"details": "Promotion Details"
@@ -2897,6 +2929,10 @@
}
},
"scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Close from date is required",
+ "closedFromInPast": "Close from date cannot be in the past"
+ },
"header": "Scheduled Closure",
"edit": {
"header": "Schedule Store Closure",
@@ -3740,6 +3776,15 @@
"seconds_other": "Seconds"
},
"views": {
+ "toasts": {
+ "created": "View created",
+ "createFailed": "Failed to create view",
+ "updateActiveFailed": "Failed to update active view",
+ "updated": "View updated",
+ "updateFailed": "Failed to update view",
+ "deleted": "View deleted successfully",
+ "deleteFailed": "Failed to delete view"
+ },
"save": "Save",
"saveAsNew": "Save as new view",
"saveAsSystemDefault": "Save as system default",
@@ -3948,6 +3993,11 @@
"domain": "Commission Lines"
},
"commissions": {
+ "rulesTable": {
+ "name": "Rule Name",
+ "attribute": "Attribute",
+ "fee": "Fee"
+ },
"domain": "Commissions",
"create": {
"header": "Create Commission Rule",
diff --git a/packages/admin/src/i18n/translations/es.json b/packages/admin/src/i18n/translations/es.json
index d6067dcca..5f815c8a4 100644
--- a/packages/admin/src/i18n/translations/es.json
+++ b/packages/admin/src/i18n/translations/es.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Vista creada",
+ "createFailed": "Error al crear la vista",
+ "updateActiveFailed": "Error al actualizar la vista activa",
+ "updated": "Vista actualizada",
+ "updateFailed": "Error al actualizar la vista",
+ "deleted": "Vista eliminada correctamente",
+ "deleteFailed": "Error al eliminar la vista"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Nombre de la regla",
+ "attribute": "Atributo",
+ "fee": "Comisión"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Se ha producido un error desconocido",
+ "notAvailable": "N/A",
"ascending": "Ascendente",
"descending": "Descendente",
"add": "Agregar",
@@ -118,6 +138,10 @@
}
},
"validation": {
+ "requiredField": "Campo obligatorio",
+ "valueRequired": "El valor es obligatorio",
+ "currencyCodeNotFound": "Código de moneda no encontrado",
+ "shippingOptionIdMissing": "Falta el parámetro de ID de la opción de envío",
"mustBeInt": "El valor debe ser un número entero.",
"mustBePositive": "El valor debe ser un número positivo."
},
@@ -2337,6 +2361,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Importe de descuento en productos",
+ "description": "Descuento en productos específicos o en una colección de productos"
+ },
+ "amountOffOrder": {
+ "title": "Importe de descuento en el pedido",
+ "description": "Descuenta el importe total del pedido"
+ },
+ "percentageOffProduct": {
+ "title": "Porcentaje de descuento en el producto",
+ "description": "Descuenta un porcentaje de los productos seleccionados"
+ },
+ "percentageOffOrder": {
+ "title": "Porcentaje de descuento en el pedido",
+ "description": "Descuenta un porcentaje del importe total del pedido"
+ },
+ "buyGet": {
+ "title": "Compra X y llévate Y",
+ "description": "Compra X producto(s) y llévate Y producto(s)"
+ },
+ "freeShipping": {
+ "title": "Envío gratis",
+ "description": "Aplica un descuento del 100% en los gastos de envío"
+ }
+ },
"domain": "Promociones",
"sections": {
"details": "Detalles de la Promoción"
@@ -2803,6 +2853,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "La fecha de inicio del cierre es obligatoria",
+ "closedFromInPast": "La fecha de inicio del cierre no puede estar en el pasado"
+ }
+ },
"domain": "Tienda",
"manageYourStoresDetails": "Gestiona los detalles de tu tienda",
"editStore": "Editar tienda",
diff --git a/packages/admin/src/i18n/translations/fa.json b/packages/admin/src/i18n/translations/fa.json
index 4dbf18f78..e4f7d23c5 100644
--- a/packages/admin/src/i18n/translations/fa.json
+++ b/packages/admin/src/i18n/translations/fa.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "نما ایجاد شد",
+ "createFailed": "ایجاد نما ناموفق بود",
+ "updateActiveFailed": "به‌روزرسانی نمای فعال ناموفق بود",
+ "updated": "نما به‌روزرسانی شد",
+ "updateFailed": "به‌روزرسانی نما ناموفق بود",
+ "deleted": "نما با موفقیت حذف شد",
+ "deleteFailed": "حذف نما ناموفق بود"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "نام قاعده",
+ "attribute": "ویژگی",
+ "fee": "کارمزد"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "خطای ناشناخته‌ای رخ داد",
+ "notAvailable": "موجود نیست",
"ascending": "صعودی",
"descending": "نزولی",
"add": "اضافه کردن",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "فیلد الزامی",
+ "valueRequired": "مقدار الزامی است",
+ "currencyCodeNotFound": "کد ارز یافت نشد",
+ "shippingOptionIdMissing": "پارامتر شناسه گزینه ارسال موجود نیست",
"mustBeInt": "مقدار باید یک عدد صحیح باشد.",
"mustBePositive": "مقدار باید یک عدد مثبت باشد."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "تخفیف مبلغی روی محصولات",
+ "description": "تخفیف روی محصولات مشخص یا مجموعه‌ای از محصولات"
+ },
+ "amountOffOrder": {
+ "title": "تخفیف مبلغی روی سفارش",
+ "description": "تخفیف روی مبلغ کل سفارش"
+ },
+ "percentageOffProduct": {
+ "title": "تخفیف درصدی روی محصول",
+ "description": "تخفیف درصدی روی محصولات انتخاب‌شده"
+ },
+ "percentageOffOrder": {
+ "title": "تخفیف درصدی روی سفارش",
+ "description": "تخفیف درصدی از مبلغ کل سفارش"
+ },
+ "buyGet": {
+ "title": "X بخر Y بگیر",
+ "description": "X محصول بخرید، Y محصول بگیرید"
+ },
+ "freeShipping": {
+ "title": "ارسال رایگان",
+ "description": "تخفیف ۱۰۰٪ روی هزینه ارسال اعمال می‌کند"
+ }
+ },
"domain": "تبلیغات",
"sections": {
"details": "جزئیات تبلیغات"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "تاریخ شروع تعطیلی الزامی است",
+ "closedFromInPast": "تاریخ شروع تعطیلی نمی‌تواند در گذشته باشد"
+ }
+ },
"domain": "فروشگاه",
"manageYourStoresDetails": "جزئیات فروشگاه خود را مدیریت کنید",
"editStore": "ویرایش فروشگاه",
diff --git a/packages/admin/src/i18n/translations/fr.json b/packages/admin/src/i18n/translations/fr.json
index 881654b19..7d8c71a12 100644
--- a/packages/admin/src/i18n/translations/fr.json
+++ b/packages/admin/src/i18n/translations/fr.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Vue créée",
+ "createFailed": "Échec de la création de la vue",
+ "updateActiveFailed": "Échec de la mise à jour de la vue active",
+ "updated": "Vue mise à jour",
+ "updateFailed": "Échec de la mise à jour de la vue",
+ "deleted": "Vue supprimée avec succès",
+ "deleteFailed": "Échec de la suppression de la vue"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Nom de la règle",
+ "attribute": "Attribut",
+ "fee": "Frais"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Une erreur inconnue s'est produite",
+ "notAvailable": "N/A",
"ascending": "Ascendant",
"descending": "Descendant",
"add": "Ajouter",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Champ obligatoire",
+ "valueRequired": "La valeur est obligatoire",
+ "currencyCodeNotFound": "Code de devise introuvable",
+ "shippingOptionIdMissing": "Le paramètre ID de l'option de livraison est manquant",
"mustBeInt": "La valeur doit être un nombre entier.",
"mustBePositive": "La valeur doit être un nombre positif."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Montant de réduction sur les produits",
+ "description": "Remise sur des produits spécifiques ou une collection de produits"
+ },
+ "amountOffOrder": {
+ "title": "Montant de réduction sur la commande",
+ "description": "Remise sur le montant total de la commande"
+ },
+ "percentageOffProduct": {
+ "title": "Pourcentage de réduction sur le produit",
+ "description": "Remise d'un pourcentage sur les produits sélectionnés"
+ },
+ "percentageOffOrder": {
+ "title": "Pourcentage de réduction sur la commande",
+ "description": "Remise d'un pourcentage sur le montant total de la commande"
+ },
+ "buyGet": {
+ "title": "Achetez X, obtenez Y",
+ "description": "Achetez X produit(s), obtenez Y produit(s)"
+ },
+ "freeShipping": {
+ "title": "Livraison gratuite",
+ "description": "Applique une réduction de 100% sur les frais de livraison"
+ }
+ },
"domain": "Promotions",
"sections": {
"details": "Détails de la promotion"
@@ -2787,6 +2837,12 @@
"deleteUserSuccess": "L'utilisateur {{name}} a été supprimé avec succès."
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "La date de début de fermeture est obligatoire",
+ "closedFromInPast": "La date de début de fermeture ne peut pas être dans le passé"
+ }
+ },
"domain": "Boutique",
"manageYourStoresDetails": "Gérer les détails de votre boutique.",
"editStore": "Modifier la boutique",
diff --git a/packages/admin/src/i18n/translations/he.json b/packages/admin/src/i18n/translations/he.json
index ba16bdf2c..1d7dcceeb 100644
--- a/packages/admin/src/i18n/translations/he.json
+++ b/packages/admin/src/i18n/translations/he.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "התצוגה נוצרה",
+ "createFailed": "יצירת התצוגה נכשלה",
+ "updateActiveFailed": "עדכון התצוגה הפעילה נכשל",
+ "updated": "התצוגה עודכנה",
+ "updateFailed": "עדכון התצוגה נכשל",
+ "deleted": "התצוגה נמחקה בהצלחה",
+ "deleteFailed": "מחיקת התצוגה נכשלה"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "שם הכלל",
+ "attribute": "מאפיין",
+ "fee": "עמלה"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "אירעה שגיאה לא ידועה",
+ "notAvailable": "לא זמין",
"ascending": "סדר עולה",
"descending": "סדר יורד",
"add": "הוסף",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "שדה חובה",
+ "valueRequired": "ערך נדרש",
+ "currencyCodeNotFound": "קוד המטבע לא נמצא",
+ "shippingOptionIdMissing": "פרמטר מזהה אפשרות המשלוח חסר",
"mustBeInt": "הערך חייב להיות מספר שלם.",
"mustBePositive": "הערך חייב להיות מספר חיובי."
},
@@ -2315,6 +2339,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "הנחת סכום על מוצרים",
+ "description": "הנחה על מוצרים מסוימים או אוסף מוצרים"
+ },
+ "amountOffOrder": {
+ "title": "הנחת סכום על הזמנה",
+ "description": "הנחה על סכום ההזמנה הכולל"
+ },
+ "percentageOffProduct": {
+ "title": "הנחת אחוזים על מוצר",
+ "description": "הנחה באחוזים על מוצרים נבחרים"
+ },
+ "percentageOffOrder": {
+ "title": "הנחת אחוזים על הזמנה",
+ "description": "הנחה באחוזים מסכום ההזמנה הכולל"
+ },
+ "buyGet": {
+ "title": "קנה X קבל Y",
+ "description": "קנה X מוצר(ים), קבל Y מוצר(ים)"
+ },
+ "freeShipping": {
+ "title": "משלוח חינם",
+ "description": "מחיל הנחה של 100% על דמי המשלוח"
+ }
+ },
"domain": "מבצעים",
"sections": {
"details": "פרטי מבצע"
@@ -2783,6 +2833,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "תאריך תחילת הסגירה נדרש",
+ "closedFromInPast": "תאריך תחילת הסגירה לא יכול להיות בעבר"
+ }
+ },
"domain": "חנות",
"manageYourStoresDetails": "נהל את פרטי החנות שלך",
"editStore": "ערוך חנות",
diff --git a/packages/admin/src/i18n/translations/hu.json b/packages/admin/src/i18n/translations/hu.json
index dde6ebfb8..2ad9cbdd6 100644
--- a/packages/admin/src/i18n/translations/hu.json
+++ b/packages/admin/src/i18n/translations/hu.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Nézet létrehozva",
+ "createFailed": "A nézet létrehozása nem sikerült",
+ "updateActiveFailed": "Az aktív nézet frissítése nem sikerült",
+ "updated": "Nézet frissítve",
+ "updateFailed": "A nézet frissítése nem sikerült",
+ "deleted": "Nézet sikeresen törölve",
+ "deleteFailed": "A nézet törlése nem sikerült"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Szabály neve",
+ "attribute": "Attribútum",
+ "fee": "Díj"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Ismeretlen hiba történt",
+ "notAvailable": "N/A",
"ascending": "Növekvő",
"descending": "Csökkenő",
"add": "Hozzáadás",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Kötelező mező",
+ "valueRequired": "Az érték megadása kötelező",
+ "currencyCodeNotFound": "A pénznemkód nem található",
+ "shippingOptionIdMissing": "Hiányzik a szállítási mód azonosító paramétere",
"mustBeInt": "Az értéknek egész számnak kell lennie.",
"mustBePositive": "Az értéknek pozitívnak kell lennie."
},
@@ -2317,6 +2341,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Kedvezmény termékekre",
+ "description": "Kedvezmény adott termékekre vagy termékcsoportra"
+ },
+ "amountOffOrder": {
+ "title": "Kedvezmény a rendelésre",
+ "description": "Kedvezmény a rendelés teljes összegéből"
+ },
+ "percentageOffProduct": {
+ "title": "Százalékos kedvezmény termékre",
+ "description": "Százalékos kedvezmény a kiválasztott termékekre"
+ },
+ "percentageOffOrder": {
+ "title": "Százalékos kedvezmény a rendelésre",
+ "description": "Százalékos kedvezmény a rendelés teljes összegéből"
+ },
+ "buyGet": {
+ "title": "Vegyél X-et, kapsz Y-t",
+ "description": "Vegyél X terméket, kapsz Y terméket"
+ },
+ "freeShipping": {
+ "title": "Ingyenes szállítás",
+ "description": "100%-os kedvezményt alkalmaz a szállítási díjra"
+ }
+ },
"domain": "Promóciók",
"sections": {
"details": "Promóció Részletei"
@@ -2785,6 +2835,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "A zárás kezdő dátuma kötelező",
+ "closedFromInPast": "A zárás kezdő dátuma nem lehet a múltban"
+ }
+ },
"domain": "Áruház",
"manageYourStoresDetails": "Kezelje áruházának részleteit",
"editStore": "Áruház szerkesztése",
diff --git a/packages/admin/src/i18n/translations/id.json b/packages/admin/src/i18n/translations/id.json
index b09328602..94d55ece4 100644
--- a/packages/admin/src/i18n/translations/id.json
+++ b/packages/admin/src/i18n/translations/id.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Tampilan dibuat",
+ "createFailed": "Gagal membuat tampilan",
+ "updateActiveFailed": "Gagal memperbarui tampilan aktif",
+ "updated": "Tampilan diperbarui",
+ "updateFailed": "Gagal memperbarui tampilan",
+ "deleted": "Tampilan berhasil dihapus",
+ "deleteFailed": "Gagal menghapus tampilan"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Nama Aturan",
+ "attribute": "Atribut",
+ "fee": "Biaya"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Terjadi kesalahan yang tidak diketahui",
+ "notAvailable": "T/A",
"ascending": "Menaik",
"descending": "Menurun",
"add": "Tambah",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Kolom wajib diisi",
+ "valueRequired": "Nilai wajib diisi",
+ "currencyCodeNotFound": "Kode mata uang tidak ditemukan",
+ "shippingOptionIdMissing": "Parameter ID Opsi Pengiriman tidak ada",
"mustBeInt": "Nilai harus berupa bilangan bulat.",
"mustBePositive": "Nilai harus berupa bilangan positif."
},
@@ -2315,6 +2339,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Potongan harga produk",
+ "description": "Diskon untuk produk tertentu atau koleksi produk"
+ },
+ "amountOffOrder": {
+ "title": "Potongan harga pesanan",
+ "description": "Diskon dari total jumlah pesanan"
+ },
+ "percentageOffProduct": {
+ "title": "Diskon persentase produk",
+ "description": "Diskon persentase untuk produk yang dipilih"
+ },
+ "percentageOffOrder": {
+ "title": "Diskon persentase pesanan",
+ "description": "Diskon persentase dari total jumlah pesanan"
+ },
+ "buyGet": {
+ "title": "Beli X Dapat Y",
+ "description": "Beli X produk, dapat Y produk"
+ },
+ "freeShipping": {
+ "title": "Gratis ongkos kirim",
+ "description": "Menerapkan diskon 100% untuk biaya pengiriman"
+ }
+ },
"domain": "Promosi",
"sections": {
"details": "Detail Promosi"
@@ -2783,6 +2833,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Tanggal mulai penutupan wajib diisi",
+ "closedFromInPast": "Tanggal mulai penutupan tidak boleh di masa lalu"
+ }
+ },
"domain": "Toko",
"manageYourStoresDetails": "Kelola detail toko Anda",
"editStore": "Edit toko",
diff --git a/packages/admin/src/i18n/translations/it.json b/packages/admin/src/i18n/translations/it.json
index 53af8a844..78ec0bb99 100644
--- a/packages/admin/src/i18n/translations/it.json
+++ b/packages/admin/src/i18n/translations/it.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Vista creata",
+ "createFailed": "Impossibile creare la vista",
+ "updateActiveFailed": "Impossibile aggiornare la vista attiva",
+ "updated": "Vista aggiornata",
+ "updateFailed": "Impossibile aggiornare la vista",
+ "deleted": "Vista eliminata con successo",
+ "deleteFailed": "Impossibile eliminare la vista"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Nome della regola",
+ "attribute": "Attributo",
+ "fee": "Commissione"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Si è verificato un errore sconosciuto",
+ "notAvailable": "N/A",
"ascending": "Crescente",
"descending": "Decrescente",
"add": "Aggiungi",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Campo obbligatorio",
+ "valueRequired": "Il valore è obbligatorio",
+ "currencyCodeNotFound": "Codice valuta non trovato",
+ "shippingOptionIdMissing": "Il parametro ID dell'opzione di spedizione è mancante",
"mustBeInt": "Il valore deve essere un numero intero.",
"mustBePositive": "Il valore deve essere un numero positivo."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Importo di sconto sui prodotti",
+ "description": "Sconto su prodotti specifici o una raccolta di prodotti"
+ },
+ "amountOffOrder": {
+ "title": "Importo di sconto sull'ordine",
+ "description": "Sconta l'importo totale dell'ordine"
+ },
+ "percentageOffProduct": {
+ "title": "Percentuale di sconto sul prodotto",
+ "description": "Sconta una percentuale sui prodotti selezionati"
+ },
+ "percentageOffOrder": {
+ "title": "Percentuale di sconto sull'ordine",
+ "description": "Sconta una percentuale dell'importo totale dell'ordine"
+ },
+ "buyGet": {
+ "title": "Compra X, ottieni Y",
+ "description": "Compra X prodotto/i, ottieni Y prodotto/i"
+ },
+ "freeShipping": {
+ "title": "Spedizione gratuita",
+ "description": "Applica uno sconto del 100% sulle spese di spedizione"
+ }
+ },
"domain": "Promozioni",
"sections": {
"details": "Dettagli Promozione"
@@ -2787,6 +2837,12 @@
"deleteUserSuccess": "L'utente {{name}} è stato rimosso con successo."
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "La data di inizio della chiusura è obbligatoria",
+ "closedFromInPast": "La data di inizio della chiusura non può essere nel passato"
+ }
+ },
"domain": "Negozio",
"manageYourStoresDetails": "Gestisci i dettagli del tuo negozio",
"editStore": "Modifica negozio",
diff --git a/packages/admin/src/i18n/translations/ja.json b/packages/admin/src/i18n/translations/ja.json
index c67a45457..59b376e97 100644
--- a/packages/admin/src/i18n/translations/ja.json
+++ b/packages/admin/src/i18n/translations/ja.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "ビューを作成しました",
+ "createFailed": "ビューの作成に失敗しました",
+ "updateActiveFailed": "アクティブなビューの更新に失敗しました",
+ "updated": "ビューを更新しました",
+ "updateFailed": "ビューの更新に失敗しました",
+ "deleted": "ビューを削除しました",
+ "deleteFailed": "ビューの削除に失敗しました"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "ルール名",
+ "attribute": "属性",
+ "fee": "手数料"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "不明なエラーが発生しました",
+ "notAvailable": "N/A",
"ascending": "昇順",
"descending": "降順",
"add": "追加",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "必須項目です",
+ "valueRequired": "値を入力してください",
+ "currencyCodeNotFound": "通貨コードが見つかりません",
+ "shippingOptionIdMissing": "配送オプションIDパラメータがありません",
"mustBeInt": "値は数値でなければなりません。",
"mustBePositive": "値は正の数値でなければなりません。"
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "商品の割引額",
+ "description": "特定の商品または商品コレクションを割引します"
+ },
+ "amountOffOrder": {
+ "title": "注文の割引額",
+ "description": "注文合計金額を割引します"
+ },
+ "percentageOffProduct": {
+ "title": "商品の割引率",
+ "description": "選択した商品を割引率で割引します"
+ },
+ "percentageOffOrder": {
+ "title": "注文の割引率",
+ "description": "注文合計金額を割引率で割引します"
+ },
+ "buyGet": {
+ "title": "X個購入でY個獲得",
+ "description": "商品をX個購入すると、Y個獲得できます"
+ },
+ "freeShipping": {
+ "title": "送料無料",
+ "description": "送料に100%の割引を適用します"
+ }
+ },
"domain": "プロモーション",
"sections": {
"details": "プロモーションの詳細"
@@ -2787,6 +2837,12 @@
"deleteUserSuccess": "ユーザー {{name}} を削除しました。"
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "閉店開始日を入力してください",
+ "closedFromInPast": "閉店開始日を過去の日付にすることはできません"
+ }
+ },
"domain": "ストア",
"manageYourStoresDetails": "ストアの詳細を管理します。",
"editStore": "ストアを編集",
diff --git a/packages/admin/src/i18n/translations/ko.json b/packages/admin/src/i18n/translations/ko.json
index 0a2a409e8..7a03aef71 100644
--- a/packages/admin/src/i18n/translations/ko.json
+++ b/packages/admin/src/i18n/translations/ko.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "보기가 생성되었습니다",
+ "createFailed": "보기 생성에 실패했습니다",
+ "updateActiveFailed": "활성 보기 업데이트에 실패했습니다",
+ "updated": "보기가 업데이트되었습니다",
+ "updateFailed": "보기 업데이트에 실패했습니다",
+ "deleted": "보기가 삭제되었습니다",
+ "deleteFailed": "보기 삭제에 실패했습니다"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "규칙 이름",
+ "attribute": "속성",
+ "fee": "수수료"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "알 수 없는 오류가 발생했습니다",
+ "notAvailable": "N/A",
"ascending": "오름차순",
"descending": "내림차순",
"add": "추가",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "필수 항목입니다",
+ "valueRequired": "값을 입력해야 합니다",
+ "currencyCodeNotFound": "통화 코드를 찾을 수 없습니다",
+ "shippingOptionIdMissing": "배송 옵션 ID 매개변수가 누락되었습니다",
"mustBeInt": "값은 정수여야 합니다.",
"mustBePositive": "값은 양수여야 합니다."
},
@@ -2315,6 +2339,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "상품 할인 금액",
+ "description": "특정 상품 또는 상품 컬렉션을 할인합니다"
+ },
+ "amountOffOrder": {
+ "title": "주문 할인 금액",
+ "description": "주문 총액을 할인합니다"
+ },
+ "percentageOffProduct": {
+ "title": "상품 할인율",
+ "description": "선택한 상품을 비율로 할인합니다"
+ },
+ "percentageOffOrder": {
+ "title": "주문 할인율",
+ "description": "주문 총액을 비율로 할인합니다"
+ },
+ "buyGet": {
+ "title": "X개 구매 시 Y개 증정",
+ "description": "상품 X개를 구매하면 Y개를 증정합니다"
+ },
+ "freeShipping": {
+ "title": "무료 배송",
+ "description": "배송비에 100% 할인을 적용합니다"
+ }
+ },
"domain": "프로모션",
"sections": {
"details": "프로모션 상세 정보"
@@ -2783,6 +2833,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "휴무 시작일을 입력해야 합니다",
+ "closedFromInPast": "휴무 시작일은 과거 날짜로 설정할 수 없습니다"
+ }
+ },
"domain": "스토어",
"manageYourStoresDetails": "스토어의 상세 정보를 관리합니다",
"editStore": "스토어 편집",
diff --git a/packages/admin/src/i18n/translations/lt.json b/packages/admin/src/i18n/translations/lt.json
index 624dbfa04..962510140 100644
--- a/packages/admin/src/i18n/translations/lt.json
+++ b/packages/admin/src/i18n/translations/lt.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Rodinys sukurtas",
+ "createFailed": "Nepavyko sukurti rodinio",
+ "updateActiveFailed": "Nepavyko atnaujinti aktyvaus rodinio",
+ "updated": "Rodinys atnaujintas",
+ "updateFailed": "Nepavyko atnaujinti rodinio",
+ "deleted": "Rodinys sėkmingai ištrintas",
+ "deleteFailed": "Nepavyko ištrinti rodinio"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Taisyklės pavadinimas",
+ "attribute": "Atributas",
+ "fee": "Mokestis"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Įvyko nežinoma klaida",
+ "notAvailable": "N/A",
"ascending": "Didėjančia tvarka",
"descending": "Mažėjančia tvarka",
"add": "Pridėti",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Privalomas laukas",
+ "valueRequired": "Reikšmė yra privaloma",
+ "currencyCodeNotFound": "Valiutos kodas nerastas",
+ "shippingOptionIdMissing": "Trūksta pristatymo būdo ID parametro",
"mustBeInt": "Reikšmė turi būti sveikasis skaičius.",
"mustBePositive": "Reikšmė turi būti teigiamas skaičius."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Nuolaida produktams",
+ "description": "Nuolaida konkretiems produktams arba produktų grupei"
+ },
+ "amountOffOrder": {
+ "title": "Nuolaida užsakymui",
+ "description": "Nuolaida nuo bendros užsakymo sumos"
+ },
+ "percentageOffProduct": {
+ "title": "Procentinė nuolaida produktui",
+ "description": "Procentinė nuolaida pasirinktiems produktams"
+ },
+ "percentageOffOrder": {
+ "title": "Procentinė nuolaida užsakymui",
+ "description": "Procentinė nuolaida nuo bendros užsakymo sumos"
+ },
+ "buyGet": {
+ "title": "Pirk X, gauk Y",
+ "description": "Pirk X produktą (-ų), gauk Y produktą (-ų)"
+ },
+ "freeShipping": {
+ "title": "Nemokamas pristatymas",
+ "description": "Pritaiko 100% nuolaidą pristatymo mokesčiams"
+ }
+ },
"domain": "Akcijos",
"sections": {
"details": "Akcijos nustatymai"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Uždarymo pradžios data yra privaloma",
+ "closedFromInPast": "Uždarymo pradžios data negali būti praeityje"
+ }
+ },
"domain": "Parduotuvė",
"manageYourStoresDetails": "Tvarkykite savo parduotuvės nustatymus",
"editStore": "Keisti parduotuvę",
diff --git a/packages/admin/src/i18n/translations/mk.json b/packages/admin/src/i18n/translations/mk.json
index dbe4d115b..cd790bd0a 100644
--- a/packages/admin/src/i18n/translations/mk.json
+++ b/packages/admin/src/i18n/translations/mk.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Прегледот е создаден",
+ "createFailed": "Неуспешно создавање на преглед",
+ "updateActiveFailed": "Неуспешно ажурирање на активниот преглед",
+ "updated": "Прегледот е ажуриран",
+ "updateFailed": "Неуспешно ажурирање на преглед",
+ "deleted": "Прегледот е успешно избришан",
+ "deleteFailed": "Неуспешно бришење на преглед"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Име на правило",
+ "attribute": "Атрибут",
+ "fee": "Провизија"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Настана непозната грешка",
+ "notAvailable": "Н/Д",
"ascending": "Растечки",
"descending": "Опаѓачки",
"add": "Додадете",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Задолжително поле",
+ "valueRequired": "Потребна е вредност",
+ "currencyCodeNotFound": "Кодот на валутата не е пронајден",
+ "shippingOptionIdMissing": "Недостасува параметарот ID на опцијата за испорака",
"mustBeInt": "Вредноста мора да биде цел број.",
"mustBePositive": "Вредноста мора да биде позитивен број."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Попуст на производи",
+ "description": "Попуст на одредени производи или група производи"
+ },
+ "amountOffOrder": {
+ "title": "Попуст на нарачка",
+ "description": "Попуст на вкупниот износ на нарачката"
+ },
+ "percentageOffProduct": {
+ "title": "Процентуален попуст на производ",
+ "description": "Процентуален попуст на избрани производи"
+ },
+ "percentageOffOrder": {
+ "title": "Процентуален попуст на нарачка",
+ "description": "Процентуален попуст на вкупниот износ на нарачката"
+ },
+ "buyGet": {
+ "title": "Купи X, добиј Y",
+ "description": "Купи X производ(и), добиј Y производ(и)"
+ },
+ "freeShipping": {
+ "title": "Бесплатна испорака",
+ "description": "Применува 100% попуст на трошоците за испорака"
+ }
+ },
"domain": "Промоции",
"sections": {
"details": "Детали за промоција"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Потребна е датумот на почеток на затворање",
+ "closedFromInPast": "Датумот на почеток на затворање не може да биде во минатото"
+ }
+ },
"domain": "Продавница",
"manageYourStoresDetails": "Управувајте со деталите на вашата продавница",
"editStore": "Уреди продавница",
diff --git a/packages/admin/src/i18n/translations/mn.json b/packages/admin/src/i18n/translations/mn.json
index 95b1b727c..dc16189a0 100644
--- a/packages/admin/src/i18n/translations/mn.json
+++ b/packages/admin/src/i18n/translations/mn.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Харагдац үүслээ",
+ "createFailed": "Харагдац үүсгэж чадсангүй",
+ "updateActiveFailed": "Идэвхтэй харагдацыг шинэчилж чадсангүй",
+ "updated": "Харагдац шинэчлэгдлээ",
+ "updateFailed": "Харагдацыг шинэчилж чадсангүй",
+ "deleted": "Харагдац амжилттай устгагдлаа",
+ "deleteFailed": "Харагдацыг устгаж чадсангүй"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Дүрмийн нэр",
+ "attribute": "Атрибут",
+ "fee": "Шимтгэл"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Тодорхойгүй алдаа гарлаа",
+ "notAvailable": "Байхгүй",
"ascending": "Өсөх",
"descending": "Буурах",
"add": "Нэмэх",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Заавал бөглөх талбар",
+ "valueRequired": "Утга оруулах шаардлагатай",
+ "currencyCodeNotFound": "Валютын код олдсонгүй",
+ "shippingOptionIdMissing": "Хүргэлтийн сонголтын ID параметр байхгүй байна",
"mustBeInt": "Утга нь бүтэн тоо байх ёстой.",
"mustBePositive": "Утга нь эерэг тоо байх ёстой."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Бүтээгдэхүүний хөнгөлөлт",
+ "description": "Тодорхой бүтээгдэхүүн эсвэл бүтээгдэхүүний багцад хөнгөлөлт үзүүлэх"
+ },
+ "amountOffOrder": {
+ "title": "Захиалгын хөнгөлөлт",
+ "description": "Захиалгын нийт дүнгээс хөнгөлөлт үзүүлэх"
+ },
+ "percentageOffProduct": {
+ "title": "Бүтээгдэхүүний хувийн хөнгөлөлт",
+ "description": "Сонгосон бүтээгдэхүүнд хувийн хөнгөлөлт үзүүлэх"
+ },
+ "percentageOffOrder": {
+ "title": "Захиалгын хувийн хөнгөлөлт",
+ "description": "Захиалгын нийт дүнгээс хувийн хөнгөлөлт үзүүлэх"
+ },
+ "buyGet": {
+ "title": "X аваад Y ав",
+ "description": "X бүтээгдэхүүн аваад Y бүтээгдэхүүн ав"
+ },
+ "freeShipping": {
+ "title": "Үнэгүй хүргэлт",
+ "description": "Хүргэлтийн төлбөрт 100% хөнгөлөлт үзүүлнэ"
+ }
+ },
"domain": "Урамшууллууд",
"sections": {
"details": "Урамшууллын дэлгэрэнгүй"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Хаах эхлэх огноо заавал шаардлагатай",
+ "closedFromInPast": "Хаах эхлэх огноо өнгөрсөн хугацаанд байж болохгүй"
+ }
+ },
"domain": "Дэлгүүр",
"manageYourStoresDetails": "Таны дэлгүүрийн дэлгэрэнгүй мэдээллийг удирдах",
"editStore": "Дэлгүүрийг засах",
diff --git a/packages/admin/src/i18n/translations/nl.json b/packages/admin/src/i18n/translations/nl.json
index 85b147a50..9a6f615d3 100644
--- a/packages/admin/src/i18n/translations/nl.json
+++ b/packages/admin/src/i18n/translations/nl.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Weergave aangemaakt",
+ "createFailed": "Aanmaken van weergave mislukt",
+ "updateActiveFailed": "Bijwerken van actieve weergave mislukt",
+ "updated": "Weergave bijgewerkt",
+ "updateFailed": "Bijwerken van weergave mislukt",
+ "deleted": "Weergave succesvol verwijderd",
+ "deleteFailed": "Verwijderen van weergave mislukt"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Regelnaam",
+ "attribute": "Attribuut",
+ "fee": "Vergoeding"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Er is een onbekende fout opgetreden",
+ "notAvailable": "N/A",
"ascending": "Oplopend",
"descending": "Aflopend",
"add": "Toevoegen",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Verplicht veld",
+ "valueRequired": "Waarde is verplicht",
+ "currencyCodeNotFound": "Valutacode niet gevonden",
+ "shippingOptionIdMissing": "Parameter voor verzendoptie-ID ontbreekt",
"mustBeInt": "De waarde moet een geheel getal zijn.",
"mustBePositive": "De waarde moet een positief getal zijn."
},
@@ -2317,6 +2341,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Bedrag korting op producten",
+ "description": "Korting op specifieke producten of een productcollectie"
+ },
+ "amountOffOrder": {
+ "title": "Bedrag korting op bestelling",
+ "description": "Geeft korting op het totale bestelbedrag"
+ },
+ "percentageOffProduct": {
+ "title": "Percentage korting op product",
+ "description": "Geeft een percentage korting op geselecteerde producten"
+ },
+ "percentageOffOrder": {
+ "title": "Percentage korting op bestelling",
+ "description": "Geeft een percentage korting op het totale bestelbedrag"
+ },
+ "buyGet": {
+ "title": "Koop X, krijg Y",
+ "description": "Koop X product(en), krijg Y product(en)"
+ },
+ "freeShipping": {
+ "title": "Gratis verzending",
+ "description": "Past 100% korting toe op verzendkosten"
+ }
+ },
"domain": "Promoties",
"sections": {
"details": "Promotiedetails"
@@ -2785,6 +2835,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Startdatum van sluiting is verplicht",
+ "closedFromInPast": "Startdatum van sluiting mag niet in het verleden liggen"
+ }
+ },
"domain": "Winkel",
"manageYourStoresDetails": "Beheer de gegevens van uw winkel",
"editStore": "Winkel bewerken",
diff --git a/packages/admin/src/i18n/translations/pl.json b/packages/admin/src/i18n/translations/pl.json
index 7698c1570..d0a15c920 100644
--- a/packages/admin/src/i18n/translations/pl.json
+++ b/packages/admin/src/i18n/translations/pl.json
@@ -1,6 +1,15 @@
{
+ "commissions": {
+ "rulesTable": {
+ "name": "Nazwa reguły",
+ "attribute": "Atrybut",
+ "fee": "Opłata"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Wystąpił nieznany błąd",
+ "notAvailable": "N/A",
"ascending": "Rosnąco",
"descending": "Malejąco",
"add": "Dodaj",
@@ -104,6 +113,10 @@
"numberOfKeys_many": "{{count}} kluczy"
},
"validation": {
+ "requiredField": "Pole wymagane",
+ "valueRequired": "Wartość jest wymagana",
+ "currencyCodeNotFound": "Nie znaleziono kodu waluty",
+ "shippingOptionIdMissing": "Brak parametru ID opcji wysyłki",
"mustBeInt": "Wartość musi być liczbą całkowitą.",
"mustBePositive": "Wartość musi być liczbą dodatnią."
},
@@ -2384,6 +2397,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Zniżka kwotowa na produkty",
+ "description": "Rabat na wybrane produkty lub kolekcję produktów"
+ },
+ "amountOffOrder": {
+ "title": "Zniżka kwotowa na zamówienie",
+ "description": "Rabat od łącznej kwoty zamówienia"
+ },
+ "percentageOffProduct": {
+ "title": "Zniżka procentowa na produkt",
+ "description": "Rabat procentowy na wybrane produkty"
+ },
+ "percentageOffOrder": {
+ "title": "Zniżka procentowa na zamówienie",
+ "description": "Rabat procentowy od łącznej kwoty zamówienia"
+ },
+ "buyGet": {
+ "title": "Kup X Odbierz Y",
+ "description": "Kup X produkt(ów), odbierz Y produkt(ów)"
+ },
+ "freeShipping": {
+ "title": "Darmowa wysyłka",
+ "description": "Nalicza 100% rabatu na koszty wysyłki"
+ }
+ },
"domain": "Promocje",
"sections": {
"details": "Szczegóły promocji"
@@ -2956,6 +2995,10 @@
}
},
"scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Data rozpoczęcia zamknięcia jest wymagana",
+ "closedFromInPast": "Data rozpoczęcia zamknięcia nie może być w przeszłości"
+ },
"header": "Zaplanowane zamknięcie",
"edit": {
"header": "Zaplanuj zamknięcie sklepu",
@@ -3829,6 +3872,15 @@
"seconds_many": "Sekund"
},
"views": {
+ "toasts": {
+ "created": "Widok utworzony",
+ "createFailed": "Nie udało się utworzyć widoku",
+ "updateActiveFailed": "Nie udało się zaktualizować aktywnego widoku",
+ "updated": "Widok zaktualizowany",
+ "updateFailed": "Nie udało się zaktualizować widoku",
+ "deleted": "Widok został pomyślnie usunięty",
+ "deleteFailed": "Nie udało się usunąć widoku"
+ },
"save": "Zapisz",
"saveAsNew": "Zapisz jako nowy widok",
"updateDefaultForEveryone": "Zaktualizuj domyślny dla wszystkich",
diff --git a/packages/admin/src/i18n/translations/ptBR.json b/packages/admin/src/i18n/translations/ptBR.json
index 24b0396d3..88833fe79 100644
--- a/packages/admin/src/i18n/translations/ptBR.json
+++ b/packages/admin/src/i18n/translations/ptBR.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Visualização criada",
+ "createFailed": "Falha ao criar visualização",
+ "updateActiveFailed": "Falha ao atualizar a visualização ativa",
+ "updated": "Visualização atualizada",
+ "updateFailed": "Falha ao atualizar visualização",
+ "deleted": "Visualização excluída com sucesso",
+ "deleteFailed": "Falha ao excluir visualização"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Nome da regra",
+ "attribute": "Atributo",
+ "fee": "Taxa"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Ocorreu um erro desconhecido",
+ "notAvailable": "N/A",
"ascending": "Ascendente",
"descending": "Descendente",
"add": "Adicionar",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Campo obrigatório",
+ "valueRequired": "O valor é obrigatório",
+ "currencyCodeNotFound": "Código da moeda não encontrado",
+ "shippingOptionIdMissing": "O parâmetro ID da opção de envio está ausente",
"mustBeInt": "O valor deve ser um número inteiro.",
"mustBePositive": "O valor deve ser um número positivo."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Valor de desconto em produtos",
+ "description": "Aplica desconto a produtos específicos ou a uma coleção de produtos"
+ },
+ "amountOffOrder": {
+ "title": "Valor de desconto no pedido",
+ "description": "Aplica desconto sobre o valor total do pedido"
+ },
+ "percentageOffProduct": {
+ "title": "Percentual de desconto no produto",
+ "description": "Aplica um desconto percentual sobre os produtos selecionados"
+ },
+ "percentageOffOrder": {
+ "title": "Percentual de desconto no pedido",
+ "description": "Aplica um desconto percentual sobre o valor total do pedido"
+ },
+ "buyGet": {
+ "title": "Compre X Ganhe Y",
+ "description": "Compre X produto(s), ganhe Y produto(s)"
+ },
+ "freeShipping": {
+ "title": "Frete grátis",
+ "description": "Aplica 100% de desconto nas taxas de envio"
+ }
+ },
"domain": "Promoções",
"sections": {
"details": "Detalhes da Promoção"
@@ -2787,6 +2837,12 @@
"deleteUserSuccess": "O usuário {{name}} foi removido com sucesso."
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "A data de início do fechamento é obrigatória",
+ "closedFromInPast": "A data de início do fechamento não pode estar no passado"
+ }
+ },
"domain": "Loja",
"manageYourStoresDetails": "Gerencie os detalhes da sua loja",
"editStore": "Editar loja",
diff --git a/packages/admin/src/i18n/translations/ro.json b/packages/admin/src/i18n/translations/ro.json
index 701607d53..283df5b2f 100644
--- a/packages/admin/src/i18n/translations/ro.json
+++ b/packages/admin/src/i18n/translations/ro.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Vizualizare creată",
+ "createFailed": "Crearea vizualizării a eșuat",
+ "updateActiveFailed": "Actualizarea vizualizării active a eșuat",
+ "updated": "Vizualizare actualizată",
+ "updateFailed": "Actualizarea vizualizării a eșuat",
+ "deleted": "Vizualizarea a fost ștearsă cu succes",
+ "deleteFailed": "Ștergerea vizualizării a eșuat"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Numele regulii",
+ "attribute": "Atribut",
+ "fee": "Comision"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "A apărut o eroare necunoscută",
+ "notAvailable": "N/A",
"ascending": "Ascendent",
"descending": "Descendent",
"add": "Adăuga",
@@ -96,6 +116,10 @@
"numberOfKeys_other": "{{count}} chei"
},
"validation": {
+ "requiredField": "Câmp obligatoriu",
+ "valueRequired": "Valoarea este obligatorie",
+ "currencyCodeNotFound": "Codul valutei nu a fost găsit",
+ "shippingOptionIdMissing": "Parametrul ID-ul opțiunii de livrare lipsește",
"mustBeInt": "Valoarea trebuie să fie un număr întreg.",
"mustBePositive": "Valoarea trebuie să fie un număr pozitiv."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Reducere valorică la produse",
+ "description": "Reduce prețul unor produse specifice sau al unei colecții de produse"
+ },
+ "amountOffOrder": {
+ "title": "Reducere valorică la comandă",
+ "description": "Reduce valoarea totală a comenzii"
+ },
+ "percentageOffProduct": {
+ "title": "Reducere procentuală la produs",
+ "description": "Aplică o reducere procentuală la produsele selectate"
+ },
+ "percentageOffOrder": {
+ "title": "Reducere procentuală la comandă",
+ "description": "Aplică o reducere procentuală la valoarea totală a comenzii"
+ },
+ "buyGet": {
+ "title": "Cumperi X Primești Y",
+ "description": "Cumperi X produs(e), primești Y produs(e)"
+ },
+ "freeShipping": {
+ "title": "Livrare gratuită",
+ "description": "Aplică o reducere de 100% la taxele de livrare"
+ }
+ },
"domain": "Promoții",
"sections": {
"details": "Detalii de promovare"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Data de început a închiderii este obligatorie",
+ "closedFromInPast": "Data de început a închiderii nu poate fi în trecut"
+ }
+ },
"domain": "Magazin",
"manageYourStoresDetails": "Gestionați detaliile magazinului dvs",
"editStore": "Editează magazinul",
diff --git a/packages/admin/src/i18n/translations/ru.json b/packages/admin/src/i18n/translations/ru.json
index 2d820b2f9..41b06cf1e 100644
--- a/packages/admin/src/i18n/translations/ru.json
+++ b/packages/admin/src/i18n/translations/ru.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Представление создано",
+ "createFailed": "Не удалось создать представление",
+ "updateActiveFailed": "Не удалось обновить активное представление",
+ "updated": "Представление обновлено",
+ "updateFailed": "Не удалось обновить представление",
+ "deleted": "Представление успешно удалено",
+ "deleteFailed": "Не удалось удалить представление"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Название правила",
+ "attribute": "Атрибут",
+ "fee": "Комиссия"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Произошла неизвестная ошибка",
+ "notAvailable": "Н/Д",
"ascending": "По возрастанию",
"descending": "По убыванию",
"add": "Добавить",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Обязательное поле",
+ "valueRequired": "Необходимо указать значение",
+ "currencyCodeNotFound": "Код валюты не найден",
+ "shippingOptionIdMissing": "Отсутствует параметр ID способа доставки",
"mustBeInt": "Значение должно быть целым числом.",
"mustBePositive": "Значение должно быть положительным числом."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Скидка на товары",
+ "description": "Скидка на определённые товары или группу товаров"
+ },
+ "amountOffOrder": {
+ "title": "Скидка на заказ",
+ "description": "Скидка на общую сумму заказа"
+ },
+ "percentageOffProduct": {
+ "title": "Процент скидки на товар",
+ "description": "Процентная скидка на выбранные товары"
+ },
+ "percentageOffOrder": {
+ "title": "Процент скидки на заказ",
+ "description": "Процентная скидка на общую сумму заказа"
+ },
+ "buyGet": {
+ "title": "Купи X — получи Y",
+ "description": "Купи X товар(ов), получи Y товар(ов)"
+ },
+ "freeShipping": {
+ "title": "Бесплатная доставка",
+ "description": "Применяет 100% скидку на стоимость доставки"
+ }
+ },
"domain": "Акции",
"sections": {
"details": "Детали акции"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Укажите дату начала закрытия",
+ "closedFromInPast": "Дата начала закрытия не может быть в прошлом"
+ }
+ },
"domain": "Магазин",
"manageYourStoresDetails": "Управляйте данными вашего магазина",
"editStore": "Редактировать магазин",
diff --git a/packages/admin/src/i18n/translations/th.json b/packages/admin/src/i18n/translations/th.json
index 2e3c96cb1..4a4818f0c 100644
--- a/packages/admin/src/i18n/translations/th.json
+++ b/packages/admin/src/i18n/translations/th.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "สร้างมุมมองแล้ว",
+ "createFailed": "ไม่สามารถสร้างมุมมองได้",
+ "updateActiveFailed": "ไม่สามารถอัปเดตมุมมองที่ใช้งานอยู่ได้",
+ "updated": "อัปเดตมุมมองแล้ว",
+ "updateFailed": "ไม่สามารถอัปเดตมุมมองได้",
+ "deleted": "ลบมุมมองสำเร็จแล้ว",
+ "deleteFailed": "ไม่สามารถลบมุมมองได้"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "ชื่อกฎ",
+ "attribute": "คุณลักษณะ",
+ "fee": "ค่าธรรมเนียม"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "เกิดข้อผิดพลาดที่ไม่ทราบสาเหตุ",
+ "notAvailable": "ไม่มีข้อมูล",
"ascending": "เรียงจากน้อยไปมาก",
"descending": "เรียงจากมากไปน้อย",
"add": "เพิ่ม",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "ช่องที่จำเป็นต้องกรอก",
+ "valueRequired": "จำเป็นต้องระบุค่า",
+ "currencyCodeNotFound": "ไม่พบรหัสสกุลเงิน",
+ "shippingOptionIdMissing": "ไม่มีพารามิเตอร์ ID ตัวเลือกการจัดส่ง",
"mustBeInt": "ค่าต้องเป็นตัวเลขจำนวนเต็ม",
"mustBePositive": "ค่าต้องเป็นตัวเลขที่เป็นบวก"
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "ส่วนลดสำหรับสินค้า",
+ "description": "ลดราคาสินค้าเฉพาะรายการหรือกลุ่มสินค้า"
+ },
+ "amountOffOrder": {
+ "title": "ส่วนลดสำหรับคำสั่งซื้อ",
+ "description": "ลดราคาจากยอดรวมของคำสั่งซื้อ"
+ },
+ "percentageOffProduct": {
+ "title": "ส่วนลดเป็นเปอร์เซ็นต์สำหรับสินค้า",
+ "description": "ลดราคาเป็นเปอร์เซ็นต์สำหรับสินค้าที่เลือก"
+ },
+ "percentageOffOrder": {
+ "title": "ส่วนลดเป็นเปอร์เซ็นต์สำหรับคำสั่งซื้อ",
+ "description": "ลดราคาเป็นเปอร์เซ็นต์จากยอดรวมของคำสั่งซื้อ"
+ },
+ "buyGet": {
+ "title": "ซื้อ X รับ Y",
+ "description": "ซื้อสินค้า X ชิ้น รับสินค้า Y ชิ้น"
+ },
+ "freeShipping": {
+ "title": "จัดส่งฟรี",
+ "description": "ใช้ส่วนลด 100% กับค่าจัดส่ง"
+ }
+ },
"domain": "โปรโมชั่น",
"sections": {
"details": "รายละเอียดโปรโมชั่น"
@@ -2787,6 +2837,12 @@
"deleteUserSuccess": "ลบผู้ใช้ {{name}} สำเร็จแล้ว"
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "จำเป็นต้องระบุวันที่เริ่มปิดร้าน",
+ "closedFromInPast": "วันที่เริ่มปิดร้านต้องไม่เป็นวันที่ผ่านมาแล้ว"
+ }
+ },
"domain": "ร้านค้า",
"manageYourStoresDetails": "จัดการรายละเอียดร้านค้าของคุณ",
"editStore": "แก้ไขร้านค้า",
diff --git a/packages/admin/src/i18n/translations/tr.json b/packages/admin/src/i18n/translations/tr.json
index f2374450b..4fb31005e 100644
--- a/packages/admin/src/i18n/translations/tr.json
+++ b/packages/admin/src/i18n/translations/tr.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Görünüm oluşturuldu",
+ "createFailed": "Görünüm oluşturulamadı",
+ "updateActiveFailed": "Aktif görünüm güncellenemedi",
+ "updated": "Görünüm güncellendi",
+ "updateFailed": "Görünüm güncellenemedi",
+ "deleted": "Görünüm başarıyla silindi",
+ "deleteFailed": "Görünüm silinemedi"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Kural Adı",
+ "attribute": "Özellik",
+ "fee": "Ücret"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Bilinmeyen bir hata oluştu",
+ "notAvailable": "Yok",
"ascending": "Artan",
"descending": "Azalan",
"add": "Ekle",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Zorunlu alan",
+ "valueRequired": "Değer zorunludur",
+ "currencyCodeNotFound": "Para birimi kodu bulunamadı",
+ "shippingOptionIdMissing": "Kargo Seçeneği ID parametresi eksik",
"mustBeInt": "Değer tam sayı olmalıdır.",
"mustBePositive": "Değer pozitif bir sayı olmalıdır."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Ürünlerde tutar indirimi",
+ "description": "Belirli ürünlerde veya ürün koleksiyonunda indirim uygular"
+ },
+ "amountOffOrder": {
+ "title": "Siparişte tutar indirimi",
+ "description": "Toplam sipariş tutarında indirim uygular"
+ },
+ "percentageOffProduct": {
+ "title": "Üründe yüzde indirimi",
+ "description": "Seçili ürünlerde yüzde indirimi uygular"
+ },
+ "percentageOffOrder": {
+ "title": "Siparişte yüzde indirimi",
+ "description": "Toplam sipariş tutarında yüzde indirimi uygular"
+ },
+ "buyGet": {
+ "title": "X Al Y Kazan",
+ "description": "X ürün al, Y ürün kazan"
+ },
+ "freeShipping": {
+ "title": "Ücretsiz kargo",
+ "description": "Kargo ücretlerine %100 indirim uygular"
+ }
+ },
"domain": "Promosyonlar",
"sections": {
"details": "Promosyon Detayları"
@@ -2786,6 +2836,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Kapanış başlangıç tarihi zorunludur",
+ "closedFromInPast": "Kapanış başlangıç tarihi geçmişte olamaz"
+ }
+ },
"domain": "Mağaza",
"manageYourStoresDetails": "Mağazanızın detaylarını yönetin",
"editStore": "Mağazayı Düzenle",
diff --git a/packages/admin/src/i18n/translations/uk.json b/packages/admin/src/i18n/translations/uk.json
index 457b0fe2f..ebb1e40b0 100644
--- a/packages/admin/src/i18n/translations/uk.json
+++ b/packages/admin/src/i18n/translations/uk.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Подання створено",
+ "createFailed": "Не вдалося створити подання",
+ "updateActiveFailed": "Не вдалося оновити активне подання",
+ "updated": "Подання оновлено",
+ "updateFailed": "Не вдалося оновити подання",
+ "deleted": "Подання успішно видалено",
+ "deleteFailed": "Не вдалося видалити подання"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Назва правила",
+ "attribute": "Атрибут",
+ "fee": "Комісія"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Сталася невідома помилка",
+ "notAvailable": "Н/Д",
"ascending": "По зростанню",
"descending": "По спаданню",
"add": "Додати",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Обов'язкове поле",
+ "valueRequired": "Потрібно вказати значення",
+ "currencyCodeNotFound": "Код валюти не знайдено",
+ "shippingOptionIdMissing": "Відсутній параметр ID способу доставки",
"mustBeInt": "Значення повинно бути цілим числом.",
"mustBePositive": "Значення повинно бути додатнім числом."
},
@@ -2318,6 +2342,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Знижка на товари",
+ "description": "Знижка на певні товари або групу товарів"
+ },
+ "amountOffOrder": {
+ "title": "Знижка на замовлення",
+ "description": "Знижка на загальну суму замовлення"
+ },
+ "percentageOffProduct": {
+ "title": "Відсоток знижки на товар",
+ "description": "Відсоткова знижка на вибрані товари"
+ },
+ "percentageOffOrder": {
+ "title": "Відсоток знижки на замовлення",
+ "description": "Відсоткова знижка на загальну суму замовлення"
+ },
+ "buyGet": {
+ "title": "Купи X — отримай Y",
+ "description": "Купи X товар(ів), отримай Y товар(ів)"
+ },
+ "freeShipping": {
+ "title": "Безкоштовна доставка",
+ "description": "Застосовує 100% знижку на вартість доставки"
+ }
+ },
"domain": "Акції",
"sections": {
"details": "Деталі акції"
@@ -2787,6 +2837,12 @@
"deleteUserSuccess": "Користувача {{name}} успішно видалено."
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Вкажіть дату початку закриття",
+ "closedFromInPast": "Дата початку закриття не може бути в минулому"
+ }
+ },
"domain": "Магазин",
"manageYourStoresDetails": "Керуйте деталями вашого магазину",
"editStore": "Редагувати магазин",
diff --git a/packages/admin/src/i18n/translations/vi.json b/packages/admin/src/i18n/translations/vi.json
index d63b7bad6..05279c28c 100644
--- a/packages/admin/src/i18n/translations/vi.json
+++ b/packages/admin/src/i18n/translations/vi.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "Đã tạo chế độ xem",
+ "createFailed": "Không thể tạo chế độ xem",
+ "updateActiveFailed": "Không thể cập nhật chế độ xem đang hoạt động",
+ "updated": "Đã cập nhật chế độ xem",
+ "updateFailed": "Không thể cập nhật chế độ xem",
+ "deleted": "Đã xóa chế độ xem thành công",
+ "deleteFailed": "Không thể xóa chế độ xem"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "Tên quy tắc",
+ "attribute": "Thuộc tính",
+ "fee": "Phí"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Đã xảy ra lỗi không xác định",
+ "notAvailable": "Không có",
"ascending": "Tăng dần",
"descending": "Giảm dần",
"add": "Thêm",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "Trường bắt buộc",
+ "valueRequired": "Giá trị là bắt buộc",
+ "currencyCodeNotFound": "Không tìm thấy mã tiền tệ",
+ "shippingOptionIdMissing": "Thiếu tham số ID tùy chọn vận chuyển",
"mustBeInt": "Giá trị phải là số nguyên.",
"mustBePositive": "Giá trị phải là số dương."
},
@@ -2315,6 +2339,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "Giảm số tiền cho sản phẩm",
+ "description": "Giảm giá cho sản phẩm cụ thể hoặc bộ sưu tập sản phẩm"
+ },
+ "amountOffOrder": {
+ "title": "Giảm số tiền cho đơn hàng",
+ "description": "Giảm giá tổng số tiền của đơn hàng"
+ },
+ "percentageOffProduct": {
+ "title": "Giảm phần trăm cho sản phẩm",
+ "description": "Giảm giá theo phần trăm cho các sản phẩm đã chọn"
+ },
+ "percentageOffOrder": {
+ "title": "Giảm phần trăm cho đơn hàng",
+ "description": "Giảm giá theo phần trăm trên tổng số tiền của đơn hàng"
+ },
+ "buyGet": {
+ "title": "Mua X Tặng Y",
+ "description": "Mua X sản phẩm, tặng Y sản phẩm"
+ },
+ "freeShipping": {
+ "title": "Miễn phí vận chuyển",
+ "description": "Áp dụng giảm giá 100% cho phí vận chuyển"
+ }
+ },
"domain": "Khuyến mãi",
"sections": {
"details": "Chi tiết khuyến mãi"
@@ -2783,6 +2833,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "Ngày bắt đầu đóng cửa là bắt buộc",
+ "closedFromInPast": "Ngày bắt đầu đóng cửa không thể ở trong quá khứ"
+ }
+ },
"domain": "Cửa hàng",
"manageYourStoresDetails": "Quản lý chi tiết cửa hàng của bạn",
"editStore": "Chỉnh sửa cửa hàng",
diff --git a/packages/admin/src/i18n/translations/zhCN.json b/packages/admin/src/i18n/translations/zhCN.json
index 944928535..ec57d029f 100644
--- a/packages/admin/src/i18n/translations/zhCN.json
+++ b/packages/admin/src/i18n/translations/zhCN.json
@@ -1,6 +1,26 @@
{
+ "views": {
+ "toasts": {
+ "created": "视图已创建",
+ "createFailed": "创建视图失败",
+ "updateActiveFailed": "更新当前视图失败",
+ "updated": "视图已更新",
+ "updateFailed": "更新视图失败",
+ "deleted": "视图已成功删除",
+ "deleteFailed": "删除视图失败"
+ }
+ },
+ "commissions": {
+ "rulesTable": {
+ "name": "规则名称",
+ "attribute": "属性",
+ "fee": "费用"
+ }
+ },
"$schema": "./$schema.json",
"general": {
+ "unknownError": "发生未知错误",
+ "notAvailable": "N/A",
"ascending": "升序",
"descending": "降序",
"add": "添加",
@@ -96,6 +116,10 @@
}
},
"validation": {
+ "requiredField": "必填项",
+ "valueRequired": "此值为必填项",
+ "currencyCodeNotFound": "未找到货币代码",
+ "shippingOptionIdMissing": "缺少配送选项 ID 参数",
"mustBeInt": "值必须是整数。",
"mustBePositive": "值必须是正数。"
},
@@ -2315,6 +2339,32 @@
}
},
"promotions": {
+ "templates": {
+ "amountOffProducts": {
+ "title": "商品减价",
+ "description": "对特定商品或商品系列进行折扣"
+ },
+ "amountOffOrder": {
+ "title": "订单减价",
+ "description": "对订单总金额进行折扣"
+ },
+ "percentageOffProduct": {
+ "title": "商品折扣",
+ "description": "对所选商品按百分比折扣"
+ },
+ "percentageOffOrder": {
+ "title": "订单折扣",
+ "description": "对订单总金额按百分比折扣"
+ },
+ "buyGet": {
+ "title": "买 X 赠 Y",
+ "description": "购买 X 件商品,赠送 Y 件商品"
+ },
+ "freeShipping": {
+ "title": "免运费",
+ "description": "对运费应用 100% 折扣"
+ }
+ },
"domain": "促销活动",
"sections": {
"details": "促销详情"
@@ -2783,6 +2833,12 @@
}
},
"store": {
+ "scheduledClosure": {
+ "validation": {
+ "closedFromRequired": "必须填写关闭开始日期",
+ "closedFromInPast": "关闭开始日期不能是过去的日期"
+ }
+ },
"domain": "商店",
"manageYourStoresDetails": "管理您的商店详细信息",
"editStore": "编辑商店",
diff --git a/packages/admin/src/pages/categories/categories-metadata/categories-metadata.tsx b/packages/admin/src/pages/categories/categories-metadata/categories-metadata.tsx
index 9c1efa4b8..4661cd60e 100644
--- a/packages/admin/src/pages/categories/categories-metadata/categories-metadata.tsx
+++ b/packages/admin/src/pages/categories/categories-metadata/categories-metadata.tsx
@@ -1,4 +1,5 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import {
useProductCategory,
@@ -9,6 +10,7 @@ import { RouteDrawer } from "@components/modals"
import { ClientError } from "@mercurjs/client"
export const CategoriesMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { product_category, isPending, isError, error } = useProductCategory(id!)
@@ -30,7 +32,7 @@ export const CategoriesMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occured'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/collections/collection-metadata/collection-metadata.tsx b/packages/admin/src/pages/collections/collection-metadata/collection-metadata.tsx
index 337ac6f19..f22dc2afd 100644
--- a/packages/admin/src/pages/collections/collection-metadata/collection-metadata.tsx
+++ b/packages/admin/src/pages/collections/collection-metadata/collection-metadata.tsx
@@ -1,9 +1,11 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { MetadataForm } from "@components/forms/metadata-form/metadata-form"
import { useCollection, useUpdateCollection } from "@hooks/api"
import { ClientError } from "@mercurjs/client"
export const CollectionMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { collection, isPending, isError, error } = useCollection(id!)
@@ -25,7 +27,7 @@ export const CollectionMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/customer-groups/customer-group-metadata/customer-metadata.tsx b/packages/admin/src/pages/customer-groups/customer-group-metadata/customer-metadata.tsx
index 83a8293c8..0df38214b 100644
--- a/packages/admin/src/pages/customer-groups/customer-group-metadata/customer-metadata.tsx
+++ b/packages/admin/src/pages/customer-groups/customer-group-metadata/customer-metadata.tsx
@@ -1,10 +1,12 @@
import { useParams } from "react-router-dom";
+import { useTranslation } from "react-i18next";
import { useCustomerGroup, useUpdateCustomerGroup } from "@hooks/api";
import { MetadataForm } from "@components/forms/metadata-form";
import { ClientError } from "@mercurjs/client";
export const CustomerGroupMetadata = () => {
+ const { t } = useTranslation();
const { id } = useParams();
const { customer_group, isPending, isError, error } = useCustomerGroup(id!);
@@ -30,7 +32,7 @@ export const CustomerGroupMetadata = () => {
return result;
} catch (error) {
const message =
- error instanceof ClientError ? error.message : "An error occurred";
+ error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle");
callbacks.onError?.(message);
throw error;
}
diff --git a/packages/admin/src/pages/customers/customer-metadata/customer-metadata.tsx b/packages/admin/src/pages/customers/customer-metadata/customer-metadata.tsx
index 79f2eafe0..6a8bb1735 100644
--- a/packages/admin/src/pages/customers/customer-metadata/customer-metadata.tsx
+++ b/packages/admin/src/pages/customers/customer-metadata/customer-metadata.tsx
@@ -1,10 +1,12 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { ClientError } from "@mercurjs/client"
import { MetadataForm } from "@components/forms/metadata-form"
import { useCustomer, useUpdateCustomer } from "@hooks/api"
export const CustomerMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { customer, isPending, isError, error } = useCustomer(id!)
@@ -26,7 +28,7 @@ export const CustomerMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/inventory/inventory-metadata/inventory-metadata.tsx b/packages/admin/src/pages/inventory/inventory-metadata/inventory-metadata.tsx
index 7c84714f5..c47227968 100644
--- a/packages/admin/src/pages/inventory/inventory-metadata/inventory-metadata.tsx
+++ b/packages/admin/src/pages/inventory/inventory-metadata/inventory-metadata.tsx
@@ -1,4 +1,5 @@
import { useParams } from "react-router-dom";
+import { useTranslation } from "react-i18next";
import { useInventoryItem, useUpdateInventoryItem } from "@hooks/api";
import { MetadataForm } from "@components/forms/metadata-form";
@@ -6,6 +7,7 @@ import { RouteDrawer } from "@components/modals";
import { ClientError } from "@mercurjs/client";
export const InventoryItemMetadata = () => {
+ const { t } = useTranslation();
const { id } = useParams();
const { inventory_item, isPending, isError, error } = useInventoryItem(id!);
@@ -31,7 +33,7 @@ export const InventoryItemMetadata = () => {
return result;
} catch (error) {
const message =
- error instanceof ClientError ? error.message : "An error occurred";
+ error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle");
callbacks.onError?.(message);
throw error;
}
diff --git a/packages/admin/src/pages/locations/location-service-zone-shipping-option-pricing/location-service-zone-shipping-option-pricing.tsx b/packages/admin/src/pages/locations/location-service-zone-shipping-option-pricing/location-service-zone-shipping-option-pricing.tsx
index 11e1e3051..afe96d47a 100644
--- a/packages/admin/src/pages/locations/location-service-zone-shipping-option-pricing/location-service-zone-shipping-option-pricing.tsx
+++ b/packages/admin/src/pages/locations/location-service-zone-shipping-option-pricing/location-service-zone-shipping-option-pricing.tsx
@@ -1,3 +1,4 @@
+import { useTranslation } from "react-i18next"
import { useParams } from "react-router-dom"
import { RouteFocusModal } from "../../../components/modals"
@@ -5,11 +6,12 @@ import { useShippingOption } from "../../../hooks/api/shipping-options"
import { EditShippingOptionsPricingForm } from "./components/create-shipping-options-form"
export function LocationServiceZoneShippingOptionPricing() {
+ const { t } = useTranslation()
const { so_id, location_id } = useParams()
if (!so_id) {
throw new Response(
- JSON.stringify({ message: "Shipping Option ID paramater is missing" }),
+ JSON.stringify({ message: t("validation.shippingOptionIdMissing") }),
{ status: 404, headers: { "Content-Type": "application/json" } }
)
}
diff --git a/packages/admin/src/pages/marketplace/marketplace-metadata/marketplace-metadata.tsx b/packages/admin/src/pages/marketplace/marketplace-metadata/marketplace-metadata.tsx
index 0a4eda7ac..bdc9af9ad 100644
--- a/packages/admin/src/pages/marketplace/marketplace-metadata/marketplace-metadata.tsx
+++ b/packages/admin/src/pages/marketplace/marketplace-metadata/marketplace-metadata.tsx
@@ -1,9 +1,12 @@
+import { useTranslation } from "react-i18next"
+
import { MetadataForm } from "@components/forms/metadata-form"
import { RouteDrawer } from "@components/modals"
import { useStore, useUpdateStore } from "@hooks/api"
import { ClientError } from "@mercurjs/client"
export const MarketplaceMetadata = () => {
+ const { t } = useTranslation()
const { store, isPending, isError, error } = useStore()
const { mutateAsync, isPending: isMutating } = useUpdateStore(store?.id ?? '')
@@ -30,7 +33,7 @@ export const MarketplaceMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx b/packages/admin/src/pages/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx
index bf1aa0c14..3f2241276 100644
--- a/packages/admin/src/pages/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx
+++ b/packages/admin/src/pages/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx
@@ -153,7 +153,7 @@ export function OrderAllocateItemsForm({ order }: OrderAllocateItemsFormProps) {
}
} catch (e) {
toast.error(t("general.error"), {
- description: e instanceof Error ? e.message : "An unknown error occurred",
+ description: e instanceof Error ? e.message : t("general.unknownError"),
dismissLabel: t("actions.close"),
})
}
diff --git a/packages/admin/src/pages/orders/order-detail/components/order-remaining-orders-group-section/order-remaining-orders-group-section.tsx b/packages/admin/src/pages/orders/order-detail/components/order-remaining-orders-group-section/order-remaining-orders-group-section.tsx
index cc65bd107..594f24f0c 100644
--- a/packages/admin/src/pages/orders/order-detail/components/order-remaining-orders-group-section/order-remaining-orders-group-section.tsx
+++ b/packages/admin/src/pages/orders/order-detail/components/order-remaining-orders-group-section/order-remaining-orders-group-section.tsx
@@ -107,6 +107,8 @@ export const OrderRemainingOrdersGroupSection = () => {
const columnHelper = createColumnHelper<HttpTypes.AdminOrder>()
const useColumns = () => {
+ const { t } = useTranslation()
+
return useMemo(
() => [
columnHelper.accessor("display_id", {
@@ -115,7 +117,7 @@ const useColumns = () => {
}),
columnHelper.display({
id: "seller",
- header: () => <TextHeader text="Store" />,
+ header: () => <TextHeader text={t("fields.store")} />,
cell: ({ row }) => {
const seller = (row.original as any).seller
return <TextCell text={seller?.name ?? "-"} />
@@ -143,6 +145,6 @@ const useColumns = () => {
),
}),
],
- []
+ [t]
)
}
diff --git a/packages/admin/src/pages/orders/order-metadata/order-metadata.tsx b/packages/admin/src/pages/orders/order-metadata/order-metadata.tsx
index 6cc6d0515..2e39d3556 100644
--- a/packages/admin/src/pages/orders/order-metadata/order-metadata.tsx
+++ b/packages/admin/src/pages/orders/order-metadata/order-metadata.tsx
@@ -1,9 +1,11 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { MetadataForm } from "@components/forms/metadata-form/metadata-form"
import { useOrder, useUpdateOrder } from "@hooks/api"
import { ClientError } from "@mercurjs/client"
export const OrderMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { order, isPending, isError, error } = useOrder(id!, {
@@ -28,7 +30,7 @@ export const OrderMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/price-lists/common/utils.ts b/packages/admin/src/pages/price-lists/common/utils.ts
index b070de5ea..fb26dd6ba 100644
--- a/packages/admin/src/pages/price-lists/common/utils.ts
+++ b/packages/admin/src/pages/price-lists/common/utils.ts
@@ -1,5 +1,5 @@
import { HttpTypes } from "@medusajs/types"
-import { TFunction } from "i18next"
+import i18n, { TFunction } from "i18next"
import { castNumber } from "../../../lib/cast-number"
import { PriceListDateStatus, PriceListStatus } from "./constants"
import {
@@ -81,7 +81,7 @@ const extractPricesFromVariants = (
if (!currencyCode) {
throw new Response(
- JSON.stringify({ message: "Currency code not found" }),
+ JSON.stringify({ message: i18n.t("validation.currencyCodeNotFound") }),
{ status: 400, headers: { "Content-Type": "application/json" } }
)
}
diff --git a/packages/admin/src/pages/product-tags/product-tag-metadata/product-tag-metadata.tsx b/packages/admin/src/pages/product-tags/product-tag-metadata/product-tag-metadata.tsx
index 51d1c0a8c..308f428d5 100644
--- a/packages/admin/src/pages/product-tags/product-tag-metadata/product-tag-metadata.tsx
+++ b/packages/admin/src/pages/product-tags/product-tag-metadata/product-tag-metadata.tsx
@@ -1,9 +1,11 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { MetadataForm } from "@components/forms/metadata-form/metadata-form"
import { useProductTag, useUpdateProductTag } from "@hooks/api"
import { ClientError } from "@mercurjs/client"
export const ProductTagMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { product_tag, isPending, isError, error } = useProductTag(id!)
@@ -26,7 +28,7 @@ export const ProductTagMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/product-types/product-type-metadata/product-type-metadata.tsx b/packages/admin/src/pages/product-types/product-type-metadata/product-type-metadata.tsx
index c3112136e..1da2859ae 100644
--- a/packages/admin/src/pages/product-types/product-type-metadata/product-type-metadata.tsx
+++ b/packages/admin/src/pages/product-types/product-type-metadata/product-type-metadata.tsx
@@ -1,9 +1,11 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { MetadataForm } from "@components/forms/metadata-form/metadata-form"
import { useProductType, useUpdateProductType } from "@hooks/api"
import { ClientError } from "@mercurjs/client"
export const ProductTypeMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { product_type, isPending, isError, error } = useProductType(id!)
@@ -25,7 +27,7 @@ export const ProductTypeMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/product-variants/product-variant-metadata/product-variant-metadata.tsx b/packages/admin/src/pages/product-variants/product-variant-metadata/product-variant-metadata.tsx
index 17af7e017..728e033b4 100644
--- a/packages/admin/src/pages/product-variants/product-variant-metadata/product-variant-metadata.tsx
+++ b/packages/admin/src/pages/product-variants/product-variant-metadata/product-variant-metadata.tsx
@@ -1,9 +1,11 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { MetadataForm } from "@components/forms/metadata-form/metadata-form"
import { useProductVariant, useUpdateProductVariant } from "@hooks/api"
import { ClientError } from "@mercurjs/client"
export const ProductVariantMetadata = () => {
+ const { t } = useTranslation()
const { id, variant_id } = useParams()
const { variant, isPending, isError, error } = useProductVariant(
@@ -32,7 +34,7 @@ export const ProductVariantMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/products/product-add-existing-attributes/product-add-existing-attributes.tsx b/packages/admin/src/pages/products/product-add-existing-attributes/product-add-existing-attributes.tsx
index d3ab014d5..f69943953 100644
--- a/packages/admin/src/pages/products/product-add-existing-attributes/product-add-existing-attributes.tsx
+++ b/packages/admin/src/pages/products/product-add-existing-attributes/product-add-existing-attributes.tsx
@@ -23,6 +23,7 @@ import { useTranslation } from "react-i18next";
import { useParams } from "react-router-dom";
import { keepPreviousData } from "@tanstack/react-query";
import { zodResolver } from "@hookform/resolvers/zod";
+import i18n from "i18next";
import * as zod from "zod";
import { DataTable } from "../../../components/data-table";
@@ -65,7 +66,7 @@ const AttributeValueSchema = zod.object({
if (Array.isArray(val)) return val.length > 0;
return val.length > 0;
},
- { message: "Value is required" }
+ { message: i18n.t("validation.valueRequired") }
),
});
diff --git a/packages/admin/src/pages/products/product-metadata/product-metadata.tsx b/packages/admin/src/pages/products/product-metadata/product-metadata.tsx
index d9585d068..2cd6af3c6 100644
--- a/packages/admin/src/pages/products/product-metadata/product-metadata.tsx
+++ b/packages/admin/src/pages/products/product-metadata/product-metadata.tsx
@@ -1,10 +1,12 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { MetadataForm } from "@components/forms/metadata-form/metadata-form"
import { useProduct, useUpdateProduct } from "@hooks/api"
import { ClientError } from "@mercurjs/client"
import { PRODUCT_DETAIL_QUERY } from "../constants"
export const ProductMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { product, isPending, isError, error } = useProduct(id!, PRODUCT_DETAIL_QUERY)
@@ -26,7 +28,7 @@ export const ProductMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/form-schema.ts b/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/form-schema.ts
index ab5fb3542..bdab67d7d 100644
--- a/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/form-schema.ts
+++ b/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/form-schema.ts
@@ -1,15 +1,16 @@
+import i18n from "i18next"
import { z } from "zod"
import { CreateCampaignSchema } from "../../../../campaigns/campaign-create/components/create-campaign-form"
const RuleSchema = z.array(
z.object({
id: z.string().optional(),
- attribute: z.string().min(1, { message: "Required field" }),
- operator: z.string().min(1, { message: "Required field" }),
+ attribute: z.string().min(1, { message: i18n.t("validation.requiredField") }),
+ operator: z.string().min(1, { message: i18n.t("validation.requiredField") }),
values: z.union([
- z.number().min(1, { message: "Required field" }),
- z.string().min(1, { message: "Required field" }),
- z.array(z.string()).min(1, { message: "Required field" }),
+ z.number().min(1, { message: i18n.t("validation.requiredField") }),
+ z.string().min(1, { message: i18n.t("validation.requiredField") }),
+ z.array(z.string()).min(1, { message: i18n.t("validation.requiredField") }),
]),
required: z.boolean().optional(),
disguised: z.boolean().optional(),
@@ -50,7 +51,7 @@ export const CreatePromotionSchema = z
},
{
path: ["application_method.max_quantity"],
- message: `required field`,
+ message: i18n.t("validation.requiredField"),
}
)
diff --git a/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/promotion-details-tab.tsx b/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/promotion-details-tab.tsx
index dd05d3c8f..1cf207670 100644
--- a/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/promotion-details-tab.tsx
+++ b/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/promotion-details-tab.tsx
@@ -32,7 +32,7 @@ type AllocationMode = "each" | "across" | "once"
type PromotionDetailsTabProps = {
currentTemplate?: {
id: string
- title: string
+ titleKey: string
hiddenFields: string[]
}
}
@@ -87,7 +87,7 @@ const Root = ({ currentTemplate }: PromotionDetailsTabProps) => {
>
{t(`promotions.sections.details`)}
- {currentTemplate?.title && (
+ {currentTemplate?.titleKey && (
<Badge
className="ml-2 align-middle"
color="grey"
@@ -95,7 +95,7 @@ const Root = ({ currentTemplate }: PromotionDetailsTabProps) => {
rounded="full"
data-testid="promotion-create-form-promotion-template-badge"
>
- {currentTemplate?.title}
+ {t(currentTemplate.titleKey)}
</Badge>
)}
</Heading>
diff --git a/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/promotion-template-tab.tsx b/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/promotion-template-tab.tsx
index 8fbc268ca..153d0c5c3 100644
--- a/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/promotion-template-tab.tsx
+++ b/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/promotion-template-tab.tsx
@@ -40,8 +40,8 @@ const Root = () => {
<RadioGroup.ChoiceBox
key={template.id}
value={template.id}
- label={template.title}
- description={template.description}
+ label={t(template.titleKey)}
+ description={t(template.descriptionKey)}
data-testid={`promotion-create-form-template-option-${template.id}`}
/>
)
diff --git a/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/templates.ts b/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/templates.ts
index 6a830b97f..91b651a61 100644
--- a/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/templates.ts
+++ b/packages/admin/src/pages/promotions/promotion-create/components/create-promotion-form/templates.ts
@@ -32,8 +32,8 @@ export const templates = [
{
id: "amount_off_products",
type: "standard",
- title: "Amount off products",
- description: "Discount specific products or collection of products",
+ titleKey: "promotions.templates.amountOffProducts.title",
+ descriptionKey: "promotions.templates.amountOffProducts.description",
hiddenFields: amountOfProductHiddenFields,
defaults: {
is_automatic: "false",
@@ -48,8 +48,8 @@ export const templates = [
{
id: "amount_off_order",
type: "standard",
- title: "Amount off order",
- description: "Discounts the total order amount",
+ titleKey: "promotions.templates.amountOffOrder.title",
+ descriptionKey: "promotions.templates.amountOffOrder.description",
hiddenFields: amountOfOrderHiddenFields,
defaults: {
is_automatic: "false",
@@ -64,8 +64,8 @@ export const templates = [
{
id: "percentage_off_product",
type: "standard",
- title: "Percentage off product",
- description: "Discounts a percentage off selected products",
+ titleKey: "promotions.templates.percentageOffProduct.title",
+ descriptionKey: "promotions.templates.percentageOffProduct.description",
hiddenFields: percentageOfProductHiddenFields,
defaults: {
is_automatic: "false",
@@ -80,8 +80,8 @@ export const templates = [
{
id: "percentage_off_order",
type: "standard",
- title: "Percentage off order",
- description: "Discounts a percentage of the total order amount",
+ titleKey: "promotions.templates.percentageOffOrder.title",
+ descriptionKey: "promotions.templates.percentageOffOrder.description",
hiddenFields: percentageOfOrderHiddenFields,
defaults: {
is_automatic: "false",
@@ -96,8 +96,8 @@ export const templates = [
{
id: "buy_get",
type: "buy_get",
- title: "Buy X Get Y",
- description: "Buy X product(s), get Y product(s)",
+ titleKey: "promotions.templates.buyGet.title",
+ descriptionKey: "promotions.templates.buyGet.description",
hiddenFields: buyGetHiddenFields,
defaults: {
is_automatic: "false",
@@ -113,8 +113,8 @@ export const templates = [
{
id: "shipping_discount",
type: "standard",
- title: "Free shipping",
- description: "Applies a 100% discount to shipping fees",
+ titleKey: "promotions.templates.freeShipping.title",
+ descriptionKey: "promotions.templates.freeShipping.description",
hiddenFields: freeShippingHiddenFields,
defaults: {
is_automatic: "false",
diff --git a/packages/admin/src/pages/regions/region-metadata/region-metadata.tsx b/packages/admin/src/pages/regions/region-metadata/region-metadata.tsx
index 2e07cc914..00ed17620 100644
--- a/packages/admin/src/pages/regions/region-metadata/region-metadata.tsx
+++ b/packages/admin/src/pages/regions/region-metadata/region-metadata.tsx
@@ -1,4 +1,5 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { MetadataForm } from "@components/forms/metadata-form"
import { RouteDrawer } from "@components/modals"
@@ -6,6 +7,7 @@ import { useRegion, useUpdateRegion } from "@hooks/api"
import { ClientError } from "@mercurjs/client"
export const RegionMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { region, isPending, isError, error } = useRegion(id!)
@@ -27,7 +29,7 @@ export const RegionMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/reservations/reservation-metadata/reservation-metadata.tsx b/packages/admin/src/pages/reservations/reservation-metadata/reservation-metadata.tsx
index 857b9b331..81deb99a7 100644
--- a/packages/admin/src/pages/reservations/reservation-metadata/reservation-metadata.tsx
+++ b/packages/admin/src/pages/reservations/reservation-metadata/reservation-metadata.tsx
@@ -1,4 +1,5 @@
import { useParams } from "react-router-dom";
+import { useTranslation } from "react-i18next";
import { useReservationItem, useUpdateReservationItem } from "@hooks/api";
import { MetadataForm } from "@components/forms/metadata-form";
@@ -6,6 +7,7 @@ import { RouteDrawer } from "@components/modals";
import { ClientError } from "@mercurjs/client";
export const ReservationMetadata = () => {
+ const { t } = useTranslation();
const { id } = useParams();
const { reservation, isPending, isError, error } = useReservationItem(id!);
@@ -31,7 +33,7 @@ export const ReservationMetadata = () => {
return result;
} catch (error) {
const message =
- error instanceof ClientError ? error.message : "An error occurred";
+ error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle");
callbacks.onError?.(message);
throw error;
}
diff --git a/packages/admin/src/pages/sales-channels/sales-channel-metadata/sales-channel-metadata.tsx b/packages/admin/src/pages/sales-channels/sales-channel-metadata/sales-channel-metadata.tsx
index 96182544b..c084732d8 100644
--- a/packages/admin/src/pages/sales-channels/sales-channel-metadata/sales-channel-metadata.tsx
+++ b/packages/admin/src/pages/sales-channels/sales-channel-metadata/sales-channel-metadata.tsx
@@ -1,4 +1,5 @@
import { useParams } from "react-router-dom";
+import { useTranslation } from "react-i18next";
import { RouteDrawer } from "@components/modals";
import { MetadataForm } from "@components/forms/metadata-form";
@@ -6,6 +7,7 @@ import { useSalesChannel, useUpdateSalesChannel } from "@hooks/api";
import { ClientError } from "@mercurjs/client";
export const SalesChannelMetadata = () => {
+ const { t } = useTranslation();
const { id } = useParams();
const {
@@ -36,7 +38,7 @@ export const SalesChannelMetadata = () => {
return result;
} catch (error) {
const message =
- error instanceof ClientError ? error.message : "An error occurred";
+ error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle");
callbacks.onError?.(message);
throw error;
}
diff --git a/packages/admin/src/pages/shipping-profiles/shipping-profile-metadata/shipping-profile-metadata.tsx b/packages/admin/src/pages/shipping-profiles/shipping-profile-metadata/shipping-profile-metadata.tsx
index ec5ed35d0..aa178910e 100644
--- a/packages/admin/src/pages/shipping-profiles/shipping-profile-metadata/shipping-profile-metadata.tsx
+++ b/packages/admin/src/pages/shipping-profiles/shipping-profile-metadata/shipping-profile-metadata.tsx
@@ -1,4 +1,5 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { MetadataForm } from "@components/forms/metadata-form/metadata-form"
import {
useShippingProfile,
@@ -7,6 +8,7 @@ import {
import { ClientError } from "@mercurjs/client"
export const ShippingProfileMetadata = () => {
+ const { t } = useTranslation()
const { shipping_profile_id } = useParams()
const { shipping_profile, isPending, isError, error } = useShippingProfile(
@@ -32,7 +34,7 @@ export const ShippingProfileMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/stores/store-closure-edit/components/store-closure-form.tsx b/packages/admin/src/pages/stores/store-closure-edit/components/store-closure-form.tsx
index 68fdd8da1..5349e1eca 100644
--- a/packages/admin/src/pages/stores/store-closure-edit/components/store-closure-form.tsx
+++ b/packages/admin/src/pages/stores/store-closure-edit/components/store-closure-form.tsx
@@ -1,4 +1,5 @@
import { zodResolver } from "@hookform/resolvers/zod";
+import i18n from "i18next";
import { Button, DatePicker, toast } from "@medusajs/ui";
import { useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
@@ -19,11 +20,13 @@ type StoreClosureFormProps = {
const StoreClosureSchema = z
.object({
- closed_from: z.date({ required_error: "Close from date is required" }),
+ closed_from: z.date({
+ required_error: i18n.t("store.scheduledClosure.validation.closedFromRequired"),
+ }),
closed_to: z.date().nullable(),
})
.refine((data) => data.closed_from >= new Date(new Date().toDateString()), {
- message: "Close from date cannot be in the past",
+ message: i18n.t("store.scheduledClosure.validation.closedFromInPast"),
path: ["closed_from"],
});
diff --git a/packages/admin/src/pages/tax-regions/tax-region-metadata/tax-region-metadata.tsx b/packages/admin/src/pages/tax-regions/tax-region-metadata/tax-region-metadata.tsx
index fa8bf7103..c38788be7 100644
--- a/packages/admin/src/pages/tax-regions/tax-region-metadata/tax-region-metadata.tsx
+++ b/packages/admin/src/pages/tax-regions/tax-region-metadata/tax-region-metadata.tsx
@@ -1,4 +1,5 @@
import { useParams } from "react-router-dom"
+import { useTranslation } from "react-i18next"
import { useTaxRegion, useUpdateTaxRegion } from "@hooks/api"
import { MetadataForm } from "@components/forms/metadata-form"
@@ -6,6 +7,7 @@ import { RouteDrawer } from "@components/modals"
import { ClientError } from "@mercurjs/client"
export const TaxRegionMetadata = () => {
+ const { t } = useTranslation()
const { id } = useParams()
const { tax_region, isPending, isError, error } = useTaxRegion(id!)
@@ -27,7 +29,7 @@ export const TaxRegionMetadata = () => {
return result
} catch (error) {
- const message = error instanceof ClientError ? error.message : 'An error occurred'
+ const message = error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle")
callbacks.onError?.(message)
throw error
}
diff --git a/packages/admin/src/pages/users/user-metadata/user-metadata.tsx b/packages/admin/src/pages/users/user-metadata/user-metadata.tsx
index 515deae97..ab57a43b3 100644
--- a/packages/admin/src/pages/users/user-metadata/user-metadata.tsx
+++ b/packages/admin/src/pages/users/user-metadata/user-metadata.tsx
@@ -1,4 +1,5 @@
import { useParams } from "react-router-dom";
+import { useTranslation } from "react-i18next";
import { MetadataForm } from "@components/forms/metadata-form";
import { RouteDrawer } from "@components/modals";
@@ -6,6 +7,7 @@ import { useUpdateUser, useUser } from "@hooks/api";
import { ClientError } from "@mercurjs/client";
export const UserMetadata = () => {
+ const { t } = useTranslation();
const { id } = useParams();
const { user, isPending, isError, error } = useUser(id!);
@@ -31,7 +33,7 @@ export const UserMetadata = () => {
return result;
} catch (error) {
const message =
- error instanceof ClientError ? error.message : "An error occurred";
+ error instanceof ClientError ? error.message : t("errorBoundary.defaultTitle");
callbacks.onError?.(message);
throw error;
}
diff --git a/packages/dashboard-shared/src/components/forms/metadata-form/metadata-form.tsx b/packages/dashboard-shared/src/components/forms/metadata-form/metadata-form.tsx
index 1726ec1a7..04c234747 100644
--- a/packages/dashboard-shared/src/components/forms/metadata-form/metadata-form.tsx
+++ b/packages/dashboard-shared/src/components/forms/metadata-form/metadata-form.tsx
@@ -189,7 +189,7 @@ const InnerForm = <TRes,>({
aria-labelledby={METADATA_KEY_LABEL_ID}
{...field}
disabled={isDisabled}
- placeholder="Key"
+ placeholder={t("metadata.edit.labels.key")}
/>
</Form.Control>
</Form.Item>
@@ -208,7 +208,7 @@ const InnerForm = <TRes,>({
{...field}
value={isDisabled ? placeholder : value}
disabled={isDisabled}
- placeholder="Value"
+ placeholder={t("metadata.edit.labels.value")}
/>
</Form.Control>
</Form.Item>
diff --git a/packages/dashboard-shared/src/components/table/data-table/data-table-filter/select-filter.tsx b/packages/dashboard-shared/src/components/table/data-table/data-table-filter/select-filter.tsx
index fa7ba017f..f31e45a4b 100644
--- a/packages/dashboard-shared/src/components/table/data-table/data-table-filter/select-filter.tsx
+++ b/packages/dashboard-shared/src/components/table/data-table/data-table-filter/select-filter.tsx
@@ -138,7 +138,7 @@ export const SelectFilter = ({
value={search}
onValueChange={setSearch}
className="txt-compact-small placeholder:text-ui-fg-muted bg-transparent outline-none"
- placeholder="Search"
+ placeholder={t("general.search")}
/>
<div className="flex h-5 w-5 items-center justify-center">
<button
diff --git a/packages/vendor/src/hooks/table/columns/use-shipping-option-table-columns.tsx b/packages/vendor/src/hooks/table/columns/use-shipping-option-table-columns.tsx
index 39a867084..aef207262 100644
--- a/packages/vendor/src/hooks/table/columns/use-shipping-option-table-columns.tsx
+++ b/packages/vendor/src/hooks/table/columns/use-shipping-option-table-columns.tsx
@@ -21,7 +21,7 @@ export const useShippingOptionTableColumns = () => {
columnHelper.accessor("shipping_profile", {
header: () => t("fields.shippingProfile"),
cell: ({ row }) => (
- <TextCell text={row.original.shipping_profile?.name || "N/A"} />
+ <TextCell text={row.original.shipping_profile?.name || t("general.notAvailable")} />
),
}),
columnHelper.display({
@@ -41,14 +41,14 @@ export const useShippingOptionTableColumns = () => {
cell: ({ row }) => {
const serviceZoneName = row.original.service_zone?.name
- return <TextCell text={serviceZoneName || "N/A"} />
+ return <TextCell text={serviceZoneName || t("general.notAvailable")} />
},
}),
columnHelper.display({
id: "enabled_in_store",
header: () => t("fields.enabledInStore"),
cell: ({ row }) => {
- let text = "N/A"
+ let text = t("general.notAvailable")
const val = row.original.rules?.find(
(r) => r.attribute === "enabled_in_store"
)
@@ -64,7 +64,7 @@ export const useShippingOptionTableColumns = () => {
id: "is_return",
header: () => t("fields.isReturn"),
cell: ({ row }) => {
- let text = "N/A"
+ let text = t("general.notAvailable")
const val = row.original.rules?.find(
(r) => r.attribute === "is_return"
)
diff --git a/packages/vendor/src/i18n/translations/$schema.json b/packages/vendor/src/i18n/translations/$schema.json
index 6c6819e3a..5073fe716 100644
--- a/packages/vendor/src/i18n/translations/$schema.json
+++ b/packages/vendor/src/i18n/translations/$schema.json
@@ -5,6 +5,12 @@
"general": {
"type": "object",
"properties": {
+ "unknownError": {
+ "type": "string"
+ },
+ "notAvailable": {
+ "type": "string"
+ },
"fullList": {
"type": "string"
},
@@ -442,6 +448,21 @@
"validation": {
"type": "object",
"properties": {
+ "requiredField": {
+ "type": "string"
+ },
+ "valueRequired": {
+ "type": "string"
+ },
+ "atLeastOnePrice": {
+ "type": "string"
+ },
+ "currencyCodeNotFound": {
+ "type": "string"
+ },
+ "shippingOptionIdMissing": {
+ "type": "string"
+ },
"rules": {
"type": "object",
"properties": {
@@ -9955,6 +9976,22 @@
"promotions": {
"type": "object",
"properties": {
+ "templates": {
+ "type": "object",
+ "properties": {
+ "percentageOffProduct": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
"domain": {
"type": "string"
},
diff --git a/packages/vendor/src/i18n/translations/ar.json b/packages/vendor/src/i18n/translations/ar.json
index 4b54c8fe2..ba88c0e86 100644
--- a/packages/vendor/src/i18n/translations/ar.json
+++ b/packages/vendor/src/i18n/translations/ar.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "حدث خطأ غير معروف",
+ "notAvailable": "غير متاح",
"ascending": "تصاعدي",
"descending": "تنازلي",
"add": "إضافة",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "حقل مطلوب",
+ "valueRequired": "القيمة مطلوبة",
+ "atLeastOnePrice": "يجب إضافة سعر واحد على الأقل.",
+ "currencyCodeNotFound": "رمز العملة غير موجود",
+ "shippingOptionIdMissing": "معرّف خيار الشحن مفقود",
"mustBeInt": "يجب أن تكون القيمة عددًا صحيحًا.",
"mustBePositive": "يجب أن تكون القيمة عددًا موجبًا.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "خصم نسبة مئوية على المنتج",
+ "description": "خصم نسبة مئوية على منتجات محددة"
+ }
+ },
"domain": "العروض الترويجية",
"sections": {
"details": "تفاصيل العرض الترويجي"
diff --git a/packages/vendor/src/i18n/translations/bg.json b/packages/vendor/src/i18n/translations/bg.json
index bc9995427..a9c9ba849 100644
--- a/packages/vendor/src/i18n/translations/bg.json
+++ b/packages/vendor/src/i18n/translations/bg.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Възникна неизвестна грешка",
+ "notAvailable": "Н/П",
"ascending": "Възходящо",
"descending": "Низходящо",
"add": "Добави",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Задължително поле",
+ "valueRequired": "Изисква се стойност",
+ "atLeastOnePrice": "Трябва да се добави поне една цена.",
+ "currencyCodeNotFound": "Кодът на валутата не е намерен",
+ "shippingOptionIdMissing": "Липсва параметър ID на метод за доставка",
"mustBeInt": "Стойността трябва да е цяло число.",
"mustBePositive": "Стойността трябва да е положително число.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Процентна отстъпка от продукт",
+ "description": "Процентна отстъпка от избрани продукти"
+ }
+ },
"domain": "Промоции",
"sections": {
"details": "Детайли за промоцията"
diff --git a/packages/vendor/src/i18n/translations/bs.json b/packages/vendor/src/i18n/translations/bs.json
index e82b1ad2f..e3e7b5e20 100644
--- a/packages/vendor/src/i18n/translations/bs.json
+++ b/packages/vendor/src/i18n/translations/bs.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Došlo je do nepoznate greške",
+ "notAvailable": "N/D",
"ascending": "Rastuće",
"descending": "Opadajuće",
"add": "Dodaj",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Obavezno polje",
+ "valueRequired": "Vrijednost je obavezna",
+ "atLeastOnePrice": "Mora se dodati najmanje jedna cijena.",
+ "currencyCodeNotFound": "Kod valute nije pronađen",
+ "shippingOptionIdMissing": "Nedostaje parametar ID opcije dostave",
"mustBeInt": "Vrijednost mora biti cijeli broj.",
"mustBePositive": "Vrijednost mora biti pozitivan broj.",
"rules": {
@@ -2363,6 +2370,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Procentualni popust na proizvod",
+ "description": "Procentualni popust na odabrane proizvode"
+ }
+ },
"domain": "Promocije",
"sections": {
"details": "Detalji promocije"
diff --git a/packages/vendor/src/i18n/translations/cs.json b/packages/vendor/src/i18n/translations/cs.json
index b7449fb5c..59f0578dc 100644
--- a/packages/vendor/src/i18n/translations/cs.json
+++ b/packages/vendor/src/i18n/translations/cs.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Došlo k neznámé chybě",
+ "notAvailable": "N/A",
"ascending": "Vzestupně",
"descending": "Sestupně",
"add": "Přidat",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Povinné pole",
+ "valueRequired": "Hodnota je povinná",
+ "atLeastOnePrice": "Musí být přidána alespoň jedna cena.",
+ "currencyCodeNotFound": "Kód měny nebyl nalezen",
+ "shippingOptionIdMissing": "Chybí parametr ID možnosti dopravy",
"mustBeInt": "Hodnota musí být celé číslo.",
"mustBePositive": "Hodnota musí být kladné číslo.",
"rules": {
@@ -2361,6 +2368,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Procentuální sleva na produkt",
+ "description": "Procentuální sleva na vybrané produkty"
+ }
+ },
"domain": "Propagace",
"sections": {
"details": "Detaily propagace"
diff --git a/packages/vendor/src/i18n/translations/de.json b/packages/vendor/src/i18n/translations/de.json
index b324bd1ea..aa2f59f9a 100644
--- a/packages/vendor/src/i18n/translations/de.json
+++ b/packages/vendor/src/i18n/translations/de.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Ein unbekannter Fehler ist aufgetreten",
+ "notAvailable": "N/A",
"ascending": "Aufsteigend",
"descending": "Absteigend",
"add": "Hinzufügen",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Pflichtfeld",
+ "valueRequired": "Wert ist erforderlich",
+ "atLeastOnePrice": "Es muss mindestens ein Preis hinzugefügt werden.",
+ "currencyCodeNotFound": "Währungscode nicht gefunden",
+ "shippingOptionIdMissing": "Parameter für die Versandoptions-ID fehlt",
"mustBeInt": "Der Wert muss eine ganze Zahl sein.",
"mustBePositive": "Der Wert muss eine positive Zahl sein.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Prozentsatz auf Produkt",
+ "description": "Rabattiert einen Prozentsatz auf ausgewählte Produkte"
+ }
+ },
"domain": "Werbeaktionen",
"sections": {
"details": "Aktionsdetails"
diff --git a/packages/vendor/src/i18n/translations/el.json b/packages/vendor/src/i18n/translations/el.json
index 631159647..db3036249 100644
--- a/packages/vendor/src/i18n/translations/el.json
+++ b/packages/vendor/src/i18n/translations/el.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Παρουσιάστηκε άγνωστο σφάλμα",
+ "notAvailable": "Μη διαθέσιμο",
"ascending": "Αύξουσα",
"descending": "Φθίνουσα",
"add": "Προσθήκη",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Υποχρεωτικό πεδίο",
+ "valueRequired": "Απαιτείται τιμή",
+ "atLeastOnePrice": "Πρέπει να προστεθεί τουλάχιστον μία τιμή.",
+ "currencyCodeNotFound": "Ο κωδικός νομίσματος δεν βρέθηκε",
+ "shippingOptionIdMissing": "Λείπει η παράμετρος ID επιλογής αποστολής",
"mustBeInt": "Η τιμή πρέπει να είναι ακέραιος αριθμός.",
"mustBePositive": "Η τιμή πρέπει να είναι θετικός αριθμός.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Ποσοστιαία έκπτωση σε προϊόν",
+ "description": "Ποσοστιαία έκπτωση σε επιλεγμένα προϊόντα"
+ }
+ },
"domain": "Προωθήσεις",
"sections": {
"details": "Λεπτομέρειες προώθησης"
diff --git a/packages/vendor/src/i18n/translations/en.json b/packages/vendor/src/i18n/translations/en.json
index f8a92c4f9..f00d68d5b 100644
--- a/packages/vendor/src/i18n/translations/en.json
+++ b/packages/vendor/src/i18n/translations/en.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "An unknown error occurred",
+ "notAvailable": "N/A",
"fullList": "All",
"ascending": "Ascending",
"descending": "Descending",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Required field",
+ "valueRequired": "Value is required",
+ "atLeastOnePrice": "At least one price must be added.",
+ "currencyCodeNotFound": "Currency code not found",
+ "shippingOptionIdMissing": "Shipping Option ID parameter is missing",
"rules": {
"lower": "At least one lowercase letter",
"upper": "At least one uppercase letter",
@@ -2464,6 +2471,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Percentage off product",
+ "description": "Discounts a percentage off selected products"
+ }
+ },
"domain": "Promotions",
"sections": {
"details": "Promotion Details"
diff --git a/packages/vendor/src/i18n/translations/es.json b/packages/vendor/src/i18n/translations/es.json
index 18e59e12e..8cf7e7aaf 100644
--- a/packages/vendor/src/i18n/translations/es.json
+++ b/packages/vendor/src/i18n/translations/es.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Se ha producido un error desconocido",
+ "notAvailable": "N/A",
"ascending": "Ascendente",
"descending": "Descendente",
"add": "Agregar",
@@ -131,6 +133,11 @@
}
},
"validation": {
+ "requiredField": "Campo obligatorio",
+ "valueRequired": "El valor es obligatorio",
+ "atLeastOnePrice": "Se debe añadir al menos un precio.",
+ "currencyCodeNotFound": "Código de moneda no encontrado",
+ "shippingOptionIdMissing": "Falta el parámetro de ID de la opción de envío",
"mustBeInt": "El valor debe ser un número entero.",
"mustBePositive": "El valor debe ser un número positivo.",
"rules": {
@@ -2383,6 +2390,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Porcentaje de descuento en el producto",
+ "description": "Descuenta un porcentaje de los productos seleccionados"
+ }
+ },
"domain": "Promociones",
"sections": {
"details": "Detalles de la Promoción"
diff --git a/packages/vendor/src/i18n/translations/fa.json b/packages/vendor/src/i18n/translations/fa.json
index 45ed72cbc..904662427 100644
--- a/packages/vendor/src/i18n/translations/fa.json
+++ b/packages/vendor/src/i18n/translations/fa.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "خطای ناشناخته‌ای رخ داد",
+ "notAvailable": "موجود نیست",
"ascending": "صعودی",
"descending": "نزولی",
"add": "اضافه کردن",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "فیلد الزامی",
+ "valueRequired": "مقدار الزامی است",
+ "atLeastOnePrice": "حداقل یک قیمت باید افزوده شود.",
+ "currencyCodeNotFound": "کد ارز یافت نشد",
+ "shippingOptionIdMissing": "پارامتر شناسه گزینه ارسال موجود نیست",
"mustBeInt": "مقدار باید یک عدد صحیح باشد.",
"mustBePositive": "مقدار باید یک عدد مثبت باشد.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "تخفیف درصدی روی محصول",
+ "description": "تخفیف درصدی روی محصولات انتخاب‌شده"
+ }
+ },
"domain": "تبلیغات",
"sections": {
"details": "جزئیات تبلیغات"
diff --git a/packages/vendor/src/i18n/translations/fr.json b/packages/vendor/src/i18n/translations/fr.json
index 67b7c961b..4e37fef25 100644
--- a/packages/vendor/src/i18n/translations/fr.json
+++ b/packages/vendor/src/i18n/translations/fr.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Une erreur inconnue s'est produite",
+ "notAvailable": "N/A",
"ascending": "Ascendant",
"descending": "Descendant",
"add": "Ajouter",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Champ obligatoire",
+ "valueRequired": "La valeur est obligatoire",
+ "atLeastOnePrice": "Au moins un prix doit être ajouté.",
+ "currencyCodeNotFound": "Code de devise introuvable",
+ "shippingOptionIdMissing": "Le paramètre ID de l'option de livraison est manquant",
"mustBeInt": "La valeur doit être un nombre entier.",
"mustBePositive": "La valeur doit être un nombre positif.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Pourcentage de réduction sur le produit",
+ "description": "Remise d'un pourcentage sur les produits sélectionnés"
+ }
+ },
"domain": "Promotions",
"sections": {
"details": "Détails de la promotion"
diff --git a/packages/vendor/src/i18n/translations/he.json b/packages/vendor/src/i18n/translations/he.json
index b04cebd58..0d8c3ac3f 100644
--- a/packages/vendor/src/i18n/translations/he.json
+++ b/packages/vendor/src/i18n/translations/he.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "אירעה שגיאה לא ידועה",
+ "notAvailable": "לא זמין",
"ascending": "סדר עולה",
"descending": "סדר יורד",
"add": "הוסף",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "שדה חובה",
+ "valueRequired": "ערך נדרש",
+ "atLeastOnePrice": "יש להוסיף לפחות מחיר אחד.",
+ "currencyCodeNotFound": "קוד המטבע לא נמצא",
+ "shippingOptionIdMissing": "פרמטר מזהה אפשרות המשלוח חסר",
"mustBeInt": "הערך חייב להיות מספר שלם.",
"mustBePositive": "הערך חייב להיות מספר חיובי.",
"rules": {
@@ -2361,6 +2368,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "הנחת אחוזים על מוצר",
+ "description": "הנחה באחוזים על מוצרים נבחרים"
+ }
+ },
"domain": "מבצעים",
"sections": {
"details": "פרטי מבצע"
diff --git a/packages/vendor/src/i18n/translations/hu.json b/packages/vendor/src/i18n/translations/hu.json
index d730ef73f..045331079 100644
--- a/packages/vendor/src/i18n/translations/hu.json
+++ b/packages/vendor/src/i18n/translations/hu.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Ismeretlen hiba történt",
+ "notAvailable": "N/A",
"ascending": "Növekvő",
"descending": "Csökkenő",
"add": "Hozzáadás",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Kötelező mező",
+ "valueRequired": "Az érték megadása kötelező",
+ "atLeastOnePrice": "Legalább egy árat meg kell adni.",
+ "currencyCodeNotFound": "A pénznemkód nem található",
+ "shippingOptionIdMissing": "Hiányzik a szállítási mód azonosító paramétere",
"mustBeInt": "Az értéknek egész számnak kell lennie.",
"mustBePositive": "Az értéknek pozitívnak kell lennie.",
"rules": {
@@ -2363,6 +2370,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Százalékos kedvezmény termékre",
+ "description": "Százalékos kedvezmény a kiválasztott termékekre"
+ }
+ },
"domain": "Promóciók",
"sections": {
"details": "Promóció Részletei"
diff --git a/packages/vendor/src/i18n/translations/id.json b/packages/vendor/src/i18n/translations/id.json
index 41efc2f6a..daa27c9d0 100644
--- a/packages/vendor/src/i18n/translations/id.json
+++ b/packages/vendor/src/i18n/translations/id.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Terjadi kesalahan yang tidak diketahui",
+ "notAvailable": "T/A",
"ascending": "Menaik",
"descending": "Menurun",
"add": "Tambah",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Kolom wajib diisi",
+ "valueRequired": "Nilai wajib diisi",
+ "atLeastOnePrice": "Setidaknya satu harga harus ditambahkan.",
+ "currencyCodeNotFound": "Kode mata uang tidak ditemukan",
+ "shippingOptionIdMissing": "Parameter ID Opsi Pengiriman tidak ada",
"mustBeInt": "Nilai harus berupa bilangan bulat.",
"mustBePositive": "Nilai harus berupa bilangan positif.",
"rules": {
@@ -2361,6 +2368,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Diskon persentase produk",
+ "description": "Diskon persentase untuk produk yang dipilih"
+ }
+ },
"domain": "Promosi",
"sections": {
"details": "Detail Promosi"
diff --git a/packages/vendor/src/i18n/translations/it.json b/packages/vendor/src/i18n/translations/it.json
index 3be427be6..bf77f0d5b 100644
--- a/packages/vendor/src/i18n/translations/it.json
+++ b/packages/vendor/src/i18n/translations/it.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Si è verificato un errore sconosciuto",
+ "notAvailable": "N/A",
"ascending": "Crescente",
"descending": "Decrescente",
"add": "Aggiungi",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Campo obbligatorio",
+ "valueRequired": "Il valore è obbligatorio",
+ "atLeastOnePrice": "È necessario aggiungere almeno un prezzo.",
+ "currencyCodeNotFound": "Codice valuta non trovato",
+ "shippingOptionIdMissing": "Il parametro ID dell'opzione di spedizione è mancante",
"mustBeInt": "Il valore deve essere un numero intero.",
"mustBePositive": "Il valore deve essere un numero positivo.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Percentuale di sconto sul prodotto",
+ "description": "Sconta una percentuale sui prodotti selezionati"
+ }
+ },
"domain": "Promozioni",
"sections": {
"details": "Dettagli Promozione"
diff --git a/packages/vendor/src/i18n/translations/ja.json b/packages/vendor/src/i18n/translations/ja.json
index 90694be72..b744dc00c 100644
--- a/packages/vendor/src/i18n/translations/ja.json
+++ b/packages/vendor/src/i18n/translations/ja.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "不明なエラーが発生しました",
+ "notAvailable": "N/A",
"ascending": "昇順",
"descending": "降順",
"add": "追加",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "必須項目です",
+ "valueRequired": "値を入力してください",
+ "atLeastOnePrice": "価格を1つ以上追加してください。",
+ "currencyCodeNotFound": "通貨コードが見つかりません",
+ "shippingOptionIdMissing": "配送オプションIDパラメータがありません",
"mustBeInt": "値は数値でなければなりません。",
"mustBePositive": "値は正の数値でなければなりません。",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "商品の割引率",
+ "description": "選択した商品を割引率で割引します"
+ }
+ },
"domain": "プロモーション",
"sections": {
"details": "プロモーションの詳細"
diff --git a/packages/vendor/src/i18n/translations/ko.json b/packages/vendor/src/i18n/translations/ko.json
index c7aa798a3..6cbc96497 100644
--- a/packages/vendor/src/i18n/translations/ko.json
+++ b/packages/vendor/src/i18n/translations/ko.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "알 수 없는 오류가 발생했습니다",
+ "notAvailable": "N/A",
"ascending": "오름차순",
"descending": "내림차순",
"add": "추가",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "필수 항목입니다",
+ "valueRequired": "값을 입력해야 합니다",
+ "atLeastOnePrice": "가격을 하나 이상 추가해야 합니다.",
+ "currencyCodeNotFound": "통화 코드를 찾을 수 없습니다",
+ "shippingOptionIdMissing": "배송 옵션 ID 매개변수가 누락되었습니다",
"mustBeInt": "값은 정수여야 합니다.",
"mustBePositive": "값은 양수여야 합니다.",
"rules": {
@@ -2361,6 +2368,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "상품 할인율",
+ "description": "선택한 상품을 비율로 할인합니다"
+ }
+ },
"domain": "프로모션",
"sections": {
"details": "프로모션 상세 정보"
diff --git a/packages/vendor/src/i18n/translations/lt.json b/packages/vendor/src/i18n/translations/lt.json
index 16f463295..a132f0399 100644
--- a/packages/vendor/src/i18n/translations/lt.json
+++ b/packages/vendor/src/i18n/translations/lt.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Įvyko nežinoma klaida",
+ "notAvailable": "N/A",
"ascending": "Didėjančia tvarka",
"descending": "Mažėjančia tvarka",
"add": "Pridėti",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Privalomas laukas",
+ "valueRequired": "Reikšmė yra privaloma",
+ "atLeastOnePrice": "Turi būti pridėta bent viena kaina.",
+ "currencyCodeNotFound": "Valiutos kodas nerastas",
+ "shippingOptionIdMissing": "Trūksta pristatymo būdo ID parametro",
"mustBeInt": "Reikšmė turi būti sveikasis skaičius.",
"mustBePositive": "Reikšmė turi būti teigiamas skaičius.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Procentinė nuolaida produktui",
+ "description": "Procentinė nuolaida pasirinktiems produktams"
+ }
+ },
"domain": "Akcijos",
"sections": {
"details": "Akcijos nustatymai"
diff --git a/packages/vendor/src/i18n/translations/mk.json b/packages/vendor/src/i18n/translations/mk.json
index 6269767f4..688aadd8c 100644
--- a/packages/vendor/src/i18n/translations/mk.json
+++ b/packages/vendor/src/i18n/translations/mk.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Настана непозната грешка",
+ "notAvailable": "Н/Д",
"ascending": "Растечки",
"descending": "Опаѓачки",
"add": "Додадете",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Задолжително поле",
+ "valueRequired": "Потребна е вредност",
+ "atLeastOnePrice": "Мора да се додаде барем една цена.",
+ "currencyCodeNotFound": "Кодот на валутата не е пронајден",
+ "shippingOptionIdMissing": "Недостасува параметарот ID на опцијата за испорака",
"mustBeInt": "Вредноста мора да биде цел број.",
"mustBePositive": "Вредноста мора да биде позитивен број.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Процентуален попуст на производ",
+ "description": "Процентуален попуст на избрани производи"
+ }
+ },
"domain": "Промоции",
"sections": {
"details": "Детали за промоција"
diff --git a/packages/vendor/src/i18n/translations/mn.json b/packages/vendor/src/i18n/translations/mn.json
index e85edb6ab..a3cd9a7c1 100644
--- a/packages/vendor/src/i18n/translations/mn.json
+++ b/packages/vendor/src/i18n/translations/mn.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Тодорхойгүй алдаа гарлаа",
+ "notAvailable": "Байхгүй",
"ascending": "Өсөх",
"descending": "Буурах",
"add": "Нэмэх",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Заавал бөглөх талбар",
+ "valueRequired": "Утга оруулах шаардлагатай",
+ "atLeastOnePrice": "Дор хаяж нэг үнэ нэмэх шаардлагатай.",
+ "currencyCodeNotFound": "Валютын код олдсонгүй",
+ "shippingOptionIdMissing": "Хүргэлтийн сонголтын ID параметр байхгүй байна",
"mustBeInt": "Утга нь бүтэн тоо байх ёстой.",
"mustBePositive": "Утга нь эерэг тоо байх ёстой.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Бүтээгдэхүүний хувийн хөнгөлөлт",
+ "description": "Сонгосон бүтээгдэхүүнд хувийн хөнгөлөлт үзүүлэх"
+ }
+ },
"domain": "Урамшууллууд",
"sections": {
"details": "Урамшууллын дэлгэрэнгүй"
diff --git a/packages/vendor/src/i18n/translations/nl.json b/packages/vendor/src/i18n/translations/nl.json
index db43d971c..5d227b74d 100644
--- a/packages/vendor/src/i18n/translations/nl.json
+++ b/packages/vendor/src/i18n/translations/nl.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Er is een onbekende fout opgetreden",
+ "notAvailable": "N/A",
"ascending": "Oplopend",
"descending": "Aflopend",
"add": "Toevoegen",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Verplicht veld",
+ "valueRequired": "Waarde is verplicht",
+ "atLeastOnePrice": "Er moet minstens één prijs worden toegevoegd.",
+ "currencyCodeNotFound": "Valutacode niet gevonden",
+ "shippingOptionIdMissing": "Parameter voor verzendoptie-ID ontbreekt",
"mustBeInt": "De waarde moet een geheel getal zijn.",
"mustBePositive": "De waarde moet een positief getal zijn.",
"rules": {
@@ -2363,6 +2370,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Percentage korting op product",
+ "description": "Geeft een percentage korting op geselecteerde producten"
+ }
+ },
"domain": "Promoties",
"sections": {
"details": "Promotiedetails"
diff --git a/packages/vendor/src/i18n/translations/pl.json b/packages/vendor/src/i18n/translations/pl.json
index 4464e28cc..0647f810c 100644
--- a/packages/vendor/src/i18n/translations/pl.json
+++ b/packages/vendor/src/i18n/translations/pl.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Wystąpił nieznany błąd",
+ "notAvailable": "N/A",
"ascending": "Rosnąco",
"descending": "Malejąco",
"add": "Dodaj",
@@ -117,6 +119,11 @@
}
},
"validation": {
+ "requiredField": "Pole wymagane",
+ "valueRequired": "Wartość jest wymagana",
+ "atLeastOnePrice": "Należy dodać co najmniej jedną cenę.",
+ "currencyCodeNotFound": "Nie znaleziono kodu waluty",
+ "shippingOptionIdMissing": "Brak parametru ID opcji wysyłki",
"mustBeInt": "Wartość musi być liczbą całkowitą.",
"mustBePositive": "Wartość musi być liczbą dodatnią.",
"rules": {
@@ -2584,6 +2591,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Zniżka procentowa na produkt",
+ "description": "Rabat procentowy na wybrane produkty"
+ }
+ },
"domain": "Promocje",
"sections": {
"details": "Szczegóły promocji"
diff --git a/packages/vendor/src/i18n/translations/ptBR.json b/packages/vendor/src/i18n/translations/ptBR.json
index c376c19fd..8b86ad412 100644
--- a/packages/vendor/src/i18n/translations/ptBR.json
+++ b/packages/vendor/src/i18n/translations/ptBR.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Ocorreu um erro desconhecido",
+ "notAvailable": "N/A",
"ascending": "Ascendente",
"descending": "Descendente",
"add": "Adicionar",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Campo obrigatório",
+ "valueRequired": "O valor é obrigatório",
+ "atLeastOnePrice": "Pelo menos um preço deve ser adicionado.",
+ "currencyCodeNotFound": "Código da moeda não encontrado",
+ "shippingOptionIdMissing": "O parâmetro ID da opção de envio está ausente",
"mustBeInt": "O valor deve ser um número inteiro.",
"mustBePositive": "O valor deve ser um número positivo.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Percentual de desconto no produto",
+ "description": "Aplica um desconto percentual sobre os produtos selecionados"
+ }
+ },
"domain": "Promoções",
"sections": {
"details": "Detalhes da Promoção"
diff --git a/packages/vendor/src/i18n/translations/ptPT.json b/packages/vendor/src/i18n/translations/ptPT.json
index 09e02223a..3ecd01a3e 100644
--- a/packages/vendor/src/i18n/translations/ptPT.json
+++ b/packages/vendor/src/i18n/translations/ptPT.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Ocorreu um erro desconhecido",
+ "notAvailable": "N/A",
"ascending": "Ascendente",
"descending": "Descendente",
"add": "Adicionar",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Campo obrigatório",
+ "valueRequired": "O valor é obrigatório",
+ "atLeastOnePrice": "É necessário adicionar pelo menos um preço.",
+ "currencyCodeNotFound": "Código da moeda não encontrado",
+ "shippingOptionIdMissing": "Falta o parâmetro ID da opção de envio",
"mustBeInt": "O valor tem de ser um número inteiro.",
"mustBePositive": "O valor tem de ser um número positivo.",
"rules": {
@@ -2361,6 +2368,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Percentagem de desconto no produto",
+ "description": "Aplica um desconto percentual sobre os produtos selecionados"
+ }
+ },
"domain": "Promoções",
"sections": {
"details": "Detalhes da Promoção"
diff --git a/packages/vendor/src/i18n/translations/ro.json b/packages/vendor/src/i18n/translations/ro.json
index 2ed40828e..641d97263 100644
--- a/packages/vendor/src/i18n/translations/ro.json
+++ b/packages/vendor/src/i18n/translations/ro.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "A apărut o eroare necunoscută",
+ "notAvailable": "N/A",
"ascending": "Ascendent",
"descending": "Descendent",
"add": "Adăuga",
@@ -109,6 +111,11 @@
"numberOfKeys_other": "{{count}} chei"
},
"validation": {
+ "requiredField": "Câmp obligatoriu",
+ "valueRequired": "Valoarea este obligatorie",
+ "atLeastOnePrice": "Trebuie adăugat cel puțin un preț.",
+ "currencyCodeNotFound": "Codul valutei nu a fost găsit",
+ "shippingOptionIdMissing": "Parametrul ID-ul opțiunii de livrare lipsește",
"mustBeInt": "Valoarea trebuie să fie un număr întreg.",
"mustBePositive": "Valoarea trebuie să fie un număr pozitiv.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Reducere procentuală la produs",
+ "description": "Aplică o reducere procentuală la produsele selectate"
+ }
+ },
"domain": "Promoții",
"sections": {
"details": "Detalii de promovare"
diff --git a/packages/vendor/src/i18n/translations/ru.json b/packages/vendor/src/i18n/translations/ru.json
index 6c5494422..109598fe5 100644
--- a/packages/vendor/src/i18n/translations/ru.json
+++ b/packages/vendor/src/i18n/translations/ru.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Произошла неизвестная ошибка",
+ "notAvailable": "Н/Д",
"ascending": "По возрастанию",
"descending": "По убыванию",
"add": "Добавить",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Обязательное поле",
+ "valueRequired": "Необходимо указать значение",
+ "atLeastOnePrice": "Необходимо добавить хотя бы одну цену.",
+ "currencyCodeNotFound": "Код валюты не найден",
+ "shippingOptionIdMissing": "Отсутствует параметр ID способа доставки",
"mustBeInt": "Значение должно быть целым числом.",
"mustBePositive": "Значение должно быть положительным числом.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Процент скидки на товар",
+ "description": "Процентная скидка на выбранные товары"
+ }
+ },
"domain": "Акции",
"sections": {
"details": "Детали акции"
diff --git a/packages/vendor/src/i18n/translations/th.json b/packages/vendor/src/i18n/translations/th.json
index 51770bf1d..3d08172d4 100644
--- a/packages/vendor/src/i18n/translations/th.json
+++ b/packages/vendor/src/i18n/translations/th.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "เกิดข้อผิดพลาดที่ไม่ทราบสาเหตุ",
+ "notAvailable": "ไม่มีข้อมูล",
"ascending": "เรียงจากน้อยไปมาก",
"descending": "เรียงจากมากไปน้อย",
"add": "เพิ่ม",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "ช่องที่จำเป็นต้องกรอก",
+ "valueRequired": "จำเป็นต้องระบุค่า",
+ "atLeastOnePrice": "ต้องเพิ่มราคาอย่างน้อยหนึ่งรายการ",
+ "currencyCodeNotFound": "ไม่พบรหัสสกุลเงิน",
+ "shippingOptionIdMissing": "ไม่มีพารามิเตอร์ ID ตัวเลือกการจัดส่ง",
"mustBeInt": "ค่าต้องเป็นตัวเลขจำนวนเต็ม",
"mustBePositive": "ค่าต้องเป็นตัวเลขที่เป็นบวก",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "ส่วนลดเป็นเปอร์เซ็นต์สำหรับสินค้า",
+ "description": "ลดราคาเป็นเปอร์เซ็นต์สำหรับสินค้าที่เลือก"
+ }
+ },
"domain": "โปรโมชั่น",
"sections": {
"details": "รายละเอียดโปรโมชั่น"
diff --git a/packages/vendor/src/i18n/translations/tr.json b/packages/vendor/src/i18n/translations/tr.json
index 41eb360b0..2666df4d1 100644
--- a/packages/vendor/src/i18n/translations/tr.json
+++ b/packages/vendor/src/i18n/translations/tr.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Bilinmeyen bir hata oluştu",
+ "notAvailable": "Yok",
"ascending": "Artan",
"descending": "Azalan",
"add": "Ekle",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Zorunlu alan",
+ "valueRequired": "Değer zorunludur",
+ "atLeastOnePrice": "En az bir fiyat eklenmelidir.",
+ "currencyCodeNotFound": "Para birimi kodu bulunamadı",
+ "shippingOptionIdMissing": "Kargo Seçeneği ID parametresi eksik",
"mustBeInt": "Değer tam sayı olmalıdır.",
"mustBePositive": "Değer pozitif bir sayı olmalıdır.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Üründe yüzde indirimi",
+ "description": "Seçili ürünlerde yüzde indirimi uygular"
+ }
+ },
"domain": "Promosyonlar",
"sections": {
"details": "Promosyon Detayları"
diff --git a/packages/vendor/src/i18n/translations/uk.json b/packages/vendor/src/i18n/translations/uk.json
index b6c2f0f8f..23e95c8a3 100644
--- a/packages/vendor/src/i18n/translations/uk.json
+++ b/packages/vendor/src/i18n/translations/uk.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Сталася невідома помилка",
+ "notAvailable": "Н/Д",
"ascending": "По зростанню",
"descending": "По спаданню",
"add": "Додати",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Обов'язкове поле",
+ "valueRequired": "Потрібно вказати значення",
+ "atLeastOnePrice": "Потрібно додати щонайменше одну ціну.",
+ "currencyCodeNotFound": "Код валюти не знайдено",
+ "shippingOptionIdMissing": "Відсутній параметр ID способу доставки",
"mustBeInt": "Значення повинно бути цілим числом.",
"mustBePositive": "Значення повинно бути додатнім числом.",
"rules": {
@@ -2364,6 +2371,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Відсоток знижки на товар",
+ "description": "Відсоткова знижка на вибрані товари"
+ }
+ },
"domain": "Акції",
"sections": {
"details": "Деталі акції"
diff --git a/packages/vendor/src/i18n/translations/vi.json b/packages/vendor/src/i18n/translations/vi.json
index 8cde9bb36..24bce1030 100644
--- a/packages/vendor/src/i18n/translations/vi.json
+++ b/packages/vendor/src/i18n/translations/vi.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "Đã xảy ra lỗi không xác định",
+ "notAvailable": "Không có",
"ascending": "Tăng dần",
"descending": "Giảm dần",
"add": "Thêm",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "Trường bắt buộc",
+ "valueRequired": "Giá trị là bắt buộc",
+ "atLeastOnePrice": "Phải thêm ít nhất một mức giá.",
+ "currencyCodeNotFound": "Không tìm thấy mã tiền tệ",
+ "shippingOptionIdMissing": "Thiếu tham số ID tùy chọn vận chuyển",
"mustBeInt": "Giá trị phải là số nguyên.",
"mustBePositive": "Giá trị phải là số dương.",
"rules": {
@@ -2361,6 +2368,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "Giảm phần trăm cho sản phẩm",
+ "description": "Giảm giá theo phần trăm cho các sản phẩm đã chọn"
+ }
+ },
"domain": "Khuyến mãi",
"sections": {
"details": "Chi tiết khuyến mãi"
diff --git a/packages/vendor/src/i18n/translations/zhCN.json b/packages/vendor/src/i18n/translations/zhCN.json
index 54b60a32a..e945ef321 100644
--- a/packages/vendor/src/i18n/translations/zhCN.json
+++ b/packages/vendor/src/i18n/translations/zhCN.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "发生未知错误",
+ "notAvailable": "N/A",
"ascending": "升序",
"descending": "降序",
"add": "添加",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "必填项",
+ "valueRequired": "此值为必填项",
+ "atLeastOnePrice": "必须至少添加一个价格。",
+ "currencyCodeNotFound": "未找到货币代码",
+ "shippingOptionIdMissing": "缺少配送选项 ID 参数",
"mustBeInt": "值必须是整数。",
"mustBePositive": "值必须是正数。",
"rules": {
@@ -2361,6 +2368,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "商品折扣",
+ "description": "对所选商品按百分比折扣"
+ }
+ },
"domain": "促销活动",
"sections": {
"details": "促销详情"
diff --git a/packages/vendor/src/i18n/translations/zhTW.json b/packages/vendor/src/i18n/translations/zhTW.json
index d28103eee..49b423970 100644
--- a/packages/vendor/src/i18n/translations/zhTW.json
+++ b/packages/vendor/src/i18n/translations/zhTW.json
@@ -1,6 +1,8 @@
{
"$schema": "./$schema.json",
"general": {
+ "unknownError": "發生未知錯誤",
+ "notAvailable": "N/A",
"ascending": "升序",
"descending": "降序",
"add": "新增",
@@ -109,6 +111,11 @@
}
},
"validation": {
+ "requiredField": "必填欄位",
+ "valueRequired": "此值為必填",
+ "atLeastOnePrice": "必須至少新增一個價格。",
+ "currencyCodeNotFound": "找不到貨幣代碼",
+ "shippingOptionIdMissing": "缺少配送選項 ID 參數",
"mustBeInt": "此值必須是整數。",
"mustBePositive": "此值必須是正數。",
"rules": {
@@ -2361,6 +2368,12 @@
}
},
"promotions": {
+ "templates": {
+ "percentageOffProduct": {
+ "title": "商品折扣",
+ "description": "對所選商品按百分比折扣"
+ }
+ },
"domain": "促銷",
"sections": {
"details": "促銷詳情"
diff --git a/packages/vendor/src/pages/inventory/[id]/stock/use-inventory-stock-columns.tsx b/packages/vendor/src/pages/inventory/[id]/stock/use-inventory-stock-columns.tsx
index 1be23e8c1..eb24177e7 100644
--- a/packages/vendor/src/pages/inventory/[id]/stock/use-inventory-stock-columns.tsx
+++ b/packages/vendor/src/pages/inventory/[id]/stock/use-inventory-stock-columns.tsx
@@ -20,8 +20,8 @@ export const useInventoryStockColumns = (
() => [
helper.column({
id: "title",
- name: "Title",
- header: "Title",
+ name: t("fields.title"),
+ header: t("fields.title"),
cell: (context) => {
const item = context.row.original
return (
diff --git a/packages/vendor/src/pages/offers/create/create-offer-form/create-offer-form.tsx b/packages/vendor/src/pages/offers/create/create-offer-form/create-offer-form.tsx
index 448659f3d..637d3b4a9 100644
--- a/packages/vendor/src/pages/offers/create/create-offer-form/create-offer-form.tsx
+++ b/packages/vendor/src/pages/offers/create/create-offer-form/create-offer-form.tsx
@@ -239,7 +239,7 @@ export const CreateOfferForm = () => {
toast.success(t("offers.create.successToast"));
handleSuccess("/offers");
} catch (err) {
- const message = err instanceof Error ? err.message : "Unknown error";
+ const message = err instanceof Error ? err.message : t("general.unknownError");
const attributed = attachErrorToRow(message, rows, form);
if (!attributed) {
toast.error(message);
diff --git a/packages/vendor/src/pages/orders/[id]/allocate-items/order-create-fulfillment-form/order-allocate-items-form.tsx b/packages/vendor/src/pages/orders/[id]/allocate-items/order-create-fulfillment-form/order-allocate-items-form.tsx
index 276b819b0..7cb67c76e 100644
--- a/packages/vendor/src/pages/orders/[id]/allocate-items/order-create-fulfillment-form/order-allocate-items-form.tsx
+++ b/packages/vendor/src/pages/orders/[id]/allocate-items/order-create-fulfillment-form/order-allocate-items-form.tsx
@@ -137,7 +137,7 @@ export function OrderAllocateItemsForm({ order }: OrderAllocateItemsFormProps) {
})
} catch (e) {
toast.error(t("general.error"), {
- description: e instanceof Error ? e.message : "An unknown error occurred",
+ description: e instanceof Error ? e.message : t("general.unknownError"),
})
}
})
diff --git a/packages/vendor/src/pages/price-lists/[id]/products/add/price-list-prices-add-form/schema.ts b/packages/vendor/src/pages/price-lists/[id]/products/add/price-list-prices-add-form/schema.ts
index eaf5c21e1..6971fcf78 100644
--- a/packages/vendor/src/pages/price-lists/[id]/products/add/price-list-prices-add-form/schema.ts
+++ b/packages/vendor/src/pages/price-lists/[id]/products/add/price-list-prices-add-form/schema.ts
@@ -1,3 +1,4 @@
+import i18n from 'i18next';
import { z } from 'zod';
import { PriceListCreateProductsSchema } from "../../../../common/schemas"
@@ -65,7 +66,7 @@ export const PriceListPricesAddSchema = PriceListPricesAddBaseSchema.refine(
return false;
},
{
- message: 'At least one price must be added.',
+ message: i18n.t('validation.atLeastOnePrice'),
path: ['products']
}
);
diff --git a/packages/vendor/src/pages/price-lists/common/utils.ts b/packages/vendor/src/pages/price-lists/common/utils.ts
index 3ffe4812e..0a069ceae 100644
--- a/packages/vendor/src/pages/price-lists/common/utils.ts
+++ b/packages/vendor/src/pages/price-lists/common/utils.ts
@@ -1,5 +1,5 @@
import { HttpTypes } from "@medusajs/types"
-import { TFunction } from "i18next"
+import i18n, { TFunction } from "i18next"
import { json } from "react-router-dom"
import { castNumber } from "@lib/cast-number"
import { PriceListDateStatus, PriceListStatus } from "./constants"
@@ -82,7 +82,7 @@ const extractPricesFromVariants = (
: regions.find((r) => r.id === id)?.currency_code
if (!currencyCode) {
- throw json({ message: "Currency code not found" }, 400)
+ throw json({ message: i18n.t("validation.currencyCodeNotFound") }, 400)
}
return {
diff --git a/packages/vendor/src/pages/products/[id]/attributes/add/index.tsx b/packages/vendor/src/pages/products/[id]/attributes/add/index.tsx
index 545cab959..3563b29e1 100644
--- a/packages/vendor/src/pages/products/[id]/attributes/add/index.tsx
+++ b/packages/vendor/src/pages/products/[id]/attributes/add/index.tsx
@@ -24,6 +24,7 @@ import { useTranslation } from "react-i18next"
import { useParams } from "react-router-dom"
import { keepPreviousData } from "@tanstack/react-query"
import { zodResolver } from "@hookform/resolvers/zod"
+import i18n from "i18next"
import * as zod from "zod"
import { DataTable } from "@components/data-table"
@@ -65,7 +66,7 @@ const AttributeValueSchema = zod.object({
if (Array.isArray(val)) return val.length > 0
return val.length > 0
},
- { message: "Value is required" }
+ { message: i18n.t("validation.valueRequired") }
),
})
diff --git a/packages/vendor/src/pages/promotions/create/create-promotion-form/create-promotion-form.tsx b/packages/vendor/src/pages/promotions/create/create-promotion-form/create-promotion-form.tsx
index 767cf14d9..c07dfc835 100644
--- a/packages/vendor/src/pages/promotions/create/create-promotion-form/create-promotion-form.tsx
+++ b/packages/vendor/src/pages/promotions/create/create-promotion-form/create-promotion-form.tsx
@@ -442,8 +442,8 @@ export const CreatePromotionForm = () => {
<RadioGroup.ChoiceBox
key={template.id}
value={template.id}
- label={template.title}
- description={template.description}
+ label={t(template.titleKey)}
+ description={t(template.descriptionKey)}
/>
);
})}
@@ -470,14 +470,14 @@ export const CreatePromotionForm = () => {
>
{t(`promotions.sections.details`)}
- {currentTemplate?.title && (
+ {currentTemplate?.titleKey && (
<Badge
className="ml-2 align-middle"
color="grey"
size="2xsmall"
rounded="full"
>
- {currentTemplate?.title}
+ {t(currentTemplate.titleKey)}
</Badge>
)}
</Heading>
diff --git a/packages/vendor/src/pages/promotions/create/create-promotion-form/form-schema.ts b/packages/vendor/src/pages/promotions/create/create-promotion-form/form-schema.ts
index e6f096c2c..63445a39d 100644
--- a/packages/vendor/src/pages/promotions/create/create-promotion-form/form-schema.ts
+++ b/packages/vendor/src/pages/promotions/create/create-promotion-form/form-schema.ts
@@ -1,21 +1,22 @@
+import i18n from "i18next"
import { z } from "zod"
import { CreateCampaignSchema } from "@pages/campaigns/create/create-campaign-form/create-campaign-form"
const RuleSchema = z.array(
z.object({
id: z.string().optional(),
- attribute: z.string().min(1, { message: "Required field" }),
+ attribute: z.string().min(1, { message: i18n.t("validation.requiredField") }),
operator: z.preprocess(
(val) => (val === "" ? undefined : val),
z.enum(["gt", "lt", "eq", "ne", "in", "lte", "gte"], {
- required_error: "Required field",
- invalid_type_error: "Required field",
+ required_error: i18n.t("validation.requiredField"),
+ invalid_type_error: i18n.t("validation.requiredField"),
})
),
values: z.union([
- z.number().min(1, { message: "Required field" }),
- z.string().min(1, { message: "Required field" }),
- z.array(z.string()).min(1, { message: "Required field" }),
+ z.number().min(1, { message: i18n.t("validation.requiredField") }),
+ z.string().min(1, { message: i18n.t("validation.requiredField") }),
+ z.array(z.string()).min(1, { message: i18n.t("validation.requiredField") }),
]),
required: z.boolean().optional(),
disguised: z.boolean().optional(),
@@ -58,7 +59,7 @@ export const CreatePromotionSchema = z
},
{
path: ["application_method.max_quantity"],
- message: `required field`,
+ message: i18n.t("validation.requiredField"),
}
)
diff --git a/packages/vendor/src/pages/promotions/create/create-promotion-form/templates.ts b/packages/vendor/src/pages/promotions/create/create-promotion-form/templates.ts
index f31dc87a4..a5e3ca5f2 100644
--- a/packages/vendor/src/pages/promotions/create/create-promotion-form/templates.ts
+++ b/packages/vendor/src/pages/promotions/create/create-promotion-form/templates.ts
@@ -40,8 +40,8 @@ export const templates = [
{
id: "percentage_off_product",
type: "standard",
- title: "Percentage off product",
- description: "Discounts a percentage off selected products",
+ titleKey: "promotions.templates.percentageOffProduct.title",
+ descriptionKey: "promotions.templates.percentageOffProduct.description",
hiddenFields: [...commonHiddenFields],
defaults: {
is_automatic: "false",
diff --git a/packages/vendor/src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/shipping-option/[so_id]/pricing/index.tsx b/packages/vendor/src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/shipping-option/[so_id]/pricing/index.tsx
index 2fc40d027..0fc2fef9c 100644
--- a/packages/vendor/src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/shipping-option/[so_id]/pricing/index.tsx
+++ b/packages/vendor/src/pages/settings/locations/[location_id]/fulfillment-set/[fset_id]/service-zone/[zone_id]/shipping-option/[so_id]/pricing/index.tsx
@@ -1,3 +1,4 @@
+import { useTranslation } from "react-i18next"
import { json, useParams } from "react-router-dom"
import { RouteFocusModal } from "@components/modals"
@@ -5,11 +6,12 @@ import { useShippingOption } from "@hooks/api/shipping-options"
import { EditShippingOptionsPricingForm } from "./_components/edit-shipping-options-pricing-form"
function LocationServiceZoneShippingOptionPricing() {
+ const { t } = useTranslation()
const { so_id, location_id } = useParams()
if (!so_id) {
throw json({
- message: "Shipping Option ID paramater is missing",
+ message: t("validation.shippingOptionIdMissing"),
status: 404,
})
}