@deenruv/inpost-plugin 1.0.17-dev.31 → 1.0.17-dev.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,11 +5,14 @@ declare const _default: {
5
5
  "host-tooltip": string;
6
6
  "api-key-label": string;
7
7
  "api-key-tooltip": string;
8
+ "geowidget-key-tooltip": string;
8
9
  "organization-select-label": string;
10
+ "organization-select-placeholder": string;
9
11
  "organization-select-tooltip": string;
10
12
  "config-description": string;
11
13
  "config-title": string;
12
14
  "service-select-label": string;
15
+ "service-select-placeholder": string;
13
16
  "service-select-tooltip": string;
14
17
  "service-inpost-locker-standard": string;
15
18
  "service-inpost-locker-economy": string;
@@ -5,11 +5,14 @@
5
5
  "host-tooltip": "Host API ShipX that should be used to communicate with API",
6
6
  "api-key-label": "ShipX API key",
7
7
  "api-key-tooltip": "Private API key for ShipX API",
8
+ "geowidget-key-tooltip": "Public Geowidget key",
8
9
  "organization-select-label": "Organization",
10
+ "organization-select-placeholder": "Select an organization",
9
11
  "organization-select-tooltip": "Select InPost organization",
10
12
  "config-description": "Configure InPost shipping method to enable integration with InPost services.",
11
13
  "config-title": "InPost Configuration",
12
14
  "service-select-label": "Service",
15
+ "service-select-placeholder": "Select a service",
13
16
  "service-select-tooltip": "Select InPost service",
14
17
  "service-inpost-locker-standard": "Parcel locker shipment - standard",
15
18
  "service-inpost-locker-economy": "Parcel locker shipment - economy",
@@ -24,7 +27,7 @@
24
27
  "service-inpost-courier-express-1700": "Courier shipment with delivery until 17:00",
25
28
  "service-inpost-courier-palette": "Courier shipment Pallet Standard",
26
29
  "geowidget-key-label": "Geowidget key",
27
- "save": "Zapisz",
30
+ "save": "Save",
28
31
  "connection-label": "Connection",
29
32
  "connection-tooltip": "Connection to InPost API",
30
33
  "connected": "Connected",
@@ -10,8 +10,10 @@ declare const _default: {
10
10
  "config-title": string;
11
11
  "geowidget-key-tooltip": string;
12
12
  "organization-select-label": string;
13
+ "organization-select-placeholder": string;
13
14
  "organization-select-tooltip": string;
14
15
  "service-select-label": string;
16
+ "service-select-placeholder": string;
15
17
  "service-select-tooltip": string;
16
18
  "service-inpost-locker-standard": string;
17
19
  "service-inpost-locker-economy": string;
@@ -10,8 +10,10 @@
10
10
  "config-title": "Konfiguracja InPost",
11
11
  "geowidget-key-tooltip": "Klucz publiczny do Geowidget",
12
12
  "organization-select-label": "Organizacja",
13
+ "organization-select-placeholder": "Wybierz organizację",
13
14
  "organization-select-tooltip": "Wybierz organizację w InPost",
14
15
  "service-select-label": "Usługa",
16
+ "service-select-placeholder": "Wybierz usługę",
15
17
  "service-select-tooltip": "Wybierz usługę w InPost",
16
18
  "service-inpost-locker-standard": "Przesyłka Paczkomat® - standardowa",
17
19
  "service-inpost-locker-economy": "Przesyłka Paczkomat® - ekonomiczna",
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import en from "./locales/en/inpost.json";
3
+ import pl from "./locales/pl/inpost.json";
4
+ const leafKeys = (value, prefix = "") => Object.entries(value).flatMap(([key, child]) => {
5
+ const path = prefix ? `${prefix}.${key}` : key;
6
+ return child && typeof child === "object"
7
+ ? leafKeys(child, path)
8
+ : [path];
9
+ });
10
+ describe("InPost admin translations", () => {
11
+ it("keeps English and Polish locale keys in parity", () => {
12
+ expect(leafKeys(en).sort()).toEqual(leafKeys(pl).sort());
13
+ });
14
+ it("registers every select placeholder requested by the runtime", () => {
15
+ expect(en["inpost-plugin"]["organization-select-placeholder"]).toBeTruthy();
16
+ expect(en["inpost-plugin"]["service-select-placeholder"]).toBeTruthy();
17
+ expect(pl["inpost-plugin"]["organization-select-placeholder"]).toBeTruthy();
18
+ expect(pl["inpost-plugin"]["service-select-placeholder"]).toBeTruthy();
19
+ });
20
+ it("uses the English save label in the English locale", () => {
21
+ expect(en["inpost-plugin"].save).toBe("Save");
22
+ });
23
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deenruv/inpost-plugin",
3
- "version": "1.0.17-dev.31",
3
+ "version": "1.0.17-dev.32",
4
4
  "homepage": "https://deenruv.com/",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -25,12 +25,12 @@
25
25
  "@nestjs/graphql": "^12.2.0",
26
26
  "graphql-tag": "^2.12.6",
27
27
  "replicate": "1.0.1",
28
- "@deenruv/common": "^1.0.17-dev.31",
29
- "@deenruv/inpost": "^1.0.17-dev.31",
30
- "@deenruv/admin-types": "^1.0.17-dev.31",
31
- "@deenruv/admin-ui": "^1.0.17-dev.31",
32
- "@deenruv/react-ui-devkit": "^1.0.17-dev.31",
33
- "@deenruv/ui-devkit": "^1.0.17-dev.31"
28
+ "@deenruv/react-ui-devkit": "^1.0.17-dev.32",
29
+ "@deenruv/inpost": "^1.0.17-dev.32",
30
+ "@deenruv/ui-devkit": "^1.0.17-dev.32",
31
+ "@deenruv/common": "^1.0.17-dev.32",
32
+ "@deenruv/admin-ui": "^1.0.17-dev.32",
33
+ "@deenruv/admin-types": "^1.0.17-dev.32"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "5.3.3",
@@ -38,7 +38,7 @@
38
38
  "@types/react": "^19.0.0",
39
39
  "@types/react-dom": "^19.0.0",
40
40
  "rimraf": "^5.0.10",
41
- "@deenruv/core": "^1.0.17-dev.31"
41
+ "@deenruv/core": "^1.0.17-dev.32"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@deenruv/core": "^1.0.0 || ^1.0.17-dev.0",