@pocket-trash/localizations 0.30.1 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -224,7 +224,7 @@ Common commands:
224
224
  | `pnpm localization:create nl-BE` | Create and wire a new locale from the `en-US` source shape. |
225
225
  | `pnpm localization:sync` | Add missing source keys to existing non-English locale files. |
226
226
  | `pnpm changeset` | Create a release changeset for a pull request. |
227
- | `pnpm release` | Publish pending package changes from the release workflow. |
227
+ | `pnpm release` | Queue the main publishing workflow to retry a release. |
228
228
 
229
229
  ```sh
230
230
  pnpm install
package/dist/index.d.ts CHANGED
@@ -932,6 +932,27 @@ export declare const localizations: Readonly<{
932
932
  };
933
933
  };
934
934
  materials: {
935
+ specific: {
936
+ title: string;
937
+ add: string;
938
+ edit: string;
939
+ name: string;
940
+ empty: string;
941
+ select: string;
942
+ optional: string;
943
+ general: string;
944
+ help: string;
945
+ noProducts: string;
946
+ noCollectionItems: string;
947
+ noImages: string;
948
+ };
949
+ slug: {
950
+ help: string;
951
+ update: string;
952
+ preview: string;
953
+ confirmation: string;
954
+ affected: string;
955
+ };
935
956
  admin: {
936
957
  addTitle: string;
937
958
  created: string;
@@ -964,6 +985,12 @@ export declare const localizations: Readonly<{
964
985
  };
965
986
  image: {
966
987
  alt: string;
988
+ scope: string;
989
+ generalScope: string;
990
+ specificScope: string;
991
+ move: string;
992
+ moveConfirmation: string;
993
+ moved: string;
967
994
  archiveConfirmation: string;
968
995
  empty: string;
969
996
  placeholder: string;
@@ -974,6 +1001,13 @@ export declare const localizations: Readonly<{
974
1001
  };
975
1002
  validation: {
976
1003
  duplicateImage: string;
1004
+ invalidSpecific: string;
1005
+ duplicateSpecific: string;
1006
+ duplicateAssignment: string;
1007
+ parentNameConflict: string;
1008
+ slugCollision: string;
1009
+ duplicateAtDestination: string;
1010
+ immutableParent: string;
977
1011
  };
978
1012
  };
979
1013
  makers: {
@@ -2200,6 +2234,27 @@ export declare const localizations: Readonly<{
2200
2234
  };
2201
2235
  };
2202
2236
  materials: {
2237
+ specific: {
2238
+ title: string;
2239
+ add: string;
2240
+ edit: string;
2241
+ name: string;
2242
+ empty: string;
2243
+ select: string;
2244
+ optional: string;
2245
+ general: string;
2246
+ help: string;
2247
+ noProducts: string;
2248
+ noCollectionItems: string;
2249
+ noImages: string;
2250
+ };
2251
+ slug: {
2252
+ help: string;
2253
+ update: string;
2254
+ preview: string;
2255
+ confirmation: string;
2256
+ affected: string;
2257
+ };
2203
2258
  admin: {
2204
2259
  addTitle: string;
2205
2260
  created: string;
@@ -2232,6 +2287,12 @@ export declare const localizations: Readonly<{
2232
2287
  };
2233
2288
  image: {
2234
2289
  alt: string;
2290
+ scope: string;
2291
+ generalScope: string;
2292
+ specificScope: string;
2293
+ move: string;
2294
+ moveConfirmation: string;
2295
+ moved: string;
2235
2296
  archiveConfirmation: string;
2236
2297
  empty: string;
2237
2298
  placeholder: string;
@@ -2242,6 +2303,13 @@ export declare const localizations: Readonly<{
2242
2303
  };
2243
2304
  validation: {
2244
2305
  duplicateImage: string;
2306
+ invalidSpecific: string;
2307
+ duplicateSpecific: string;
2308
+ duplicateAssignment: string;
2309
+ parentNameConflict: string;
2310
+ slugCollision: string;
2311
+ duplicateAtDestination: string;
2312
+ immutableParent: string;
2245
2313
  };
2246
2314
  };
2247
2315
  makers: {
@@ -916,6 +916,27 @@ export declare const enUS: {
916
916
  };
917
917
  };
918
918
  materials: {
919
+ specific: {
920
+ title: string;
921
+ add: string;
922
+ edit: string;
923
+ name: string;
924
+ empty: string;
925
+ select: string;
926
+ optional: string;
927
+ general: string;
928
+ help: string;
929
+ noProducts: string;
930
+ noCollectionItems: string;
931
+ noImages: string;
932
+ };
933
+ slug: {
934
+ help: string;
935
+ update: string;
936
+ preview: string;
937
+ confirmation: string;
938
+ affected: string;
939
+ };
919
940
  admin: {
920
941
  addTitle: string;
921
942
  created: string;
@@ -948,6 +969,12 @@ export declare const enUS: {
948
969
  };
949
970
  image: {
950
971
  alt: string;
972
+ scope: string;
973
+ generalScope: string;
974
+ specificScope: string;
975
+ move: string;
976
+ moveConfirmation: string;
977
+ moved: string;
951
978
  archiveConfirmation: string;
952
979
  empty: string;
953
980
  placeholder: string;
@@ -958,6 +985,13 @@ export declare const enUS: {
958
985
  };
959
986
  validation: {
960
987
  duplicateImage: string;
988
+ invalidSpecific: string;
989
+ duplicateSpecific: string;
990
+ duplicateAssignment: string;
991
+ parentNameConflict: string;
992
+ slugCollision: string;
993
+ duplicateAtDestination: string;
994
+ immutableParent: string;
961
995
  };
962
996
  };
963
997
  makers: {
@@ -916,6 +916,27 @@ export const enUS = {
916
916
  },
917
917
  },
918
918
  materials: {
919
+ specific: {
920
+ title: "Alloys and grades",
921
+ add: "Add alloy or grade",
922
+ edit: "Edit alloy or grade",
923
+ name: "Alloy or grade name",
924
+ empty: "No alloys or grades have been added.",
925
+ select: "Select an alloy or grade",
926
+ optional: "Alloy or grade (optional)",
927
+ general: "General only",
928
+ help: "Choose an alloy or grade for this material, or leave it general.",
929
+ noProducts: "No products use this alloy or grade yet.",
930
+ noCollectionItems: "No collection items use this alloy or grade yet.",
931
+ noImages: "No images have been added for this alloy or grade.",
932
+ },
933
+ slug: {
934
+ help: "Renaming keeps the current slug. Select Update slug to change the URL.",
935
+ update: "Update slug",
936
+ preview: "New URL: {url}",
937
+ confirmation: "Change {oldUrl} to {newUrl}? The old URL will stop working.",
938
+ affected: "Nested material URLs affected: {count}",
939
+ },
919
940
  admin: {
920
941
  addTitle: "Add material",
921
942
  created: "Material added.",
@@ -948,6 +969,12 @@ export const enUS = {
948
969
  },
949
970
  image: {
950
971
  alt: "Image of {name}",
972
+ scope: "Image scope",
973
+ generalScope: "General",
974
+ specificScope: "Alloy or grade",
975
+ move: "Move image",
976
+ moveConfirmation: "Move this image to {scope}?",
977
+ moved: "Image moved.",
951
978
  archiveConfirmation: "Archive this material image?",
952
979
  empty: "No images have been added.",
953
980
  placeholder: "No image available for {name}",
@@ -958,6 +985,13 @@ export const enUS = {
958
985
  },
959
986
  validation: {
960
987
  duplicateImage: "This image has already been added.",
988
+ invalidSpecific: "Choose an alloy or grade belonging to this material.",
989
+ duplicateSpecific: "This alloy or grade name already exists for this material.",
990
+ duplicateAssignment: "This material and alloy or grade combination is already selected.",
991
+ parentNameConflict: "An alloy or grade cannot have the same name as its general material.",
992
+ slugCollision: "This slug is already in use.",
993
+ duplicateAtDestination: "This image already exists in the destination scope.",
994
+ immutableParent: "The general material of an alloy or grade cannot be changed.",
961
995
  },
962
996
  },
963
997
  makers: {
@@ -911,6 +911,27 @@ export declare const esMX: {
911
911
  };
912
912
  };
913
913
  materials: {
914
+ specific: {
915
+ title: string;
916
+ add: string;
917
+ edit: string;
918
+ name: string;
919
+ empty: string;
920
+ select: string;
921
+ optional: string;
922
+ general: string;
923
+ help: string;
924
+ noProducts: string;
925
+ noCollectionItems: string;
926
+ noImages: string;
927
+ };
928
+ slug: {
929
+ help: string;
930
+ update: string;
931
+ preview: string;
932
+ confirmation: string;
933
+ affected: string;
934
+ };
914
935
  admin: {
915
936
  addTitle: string;
916
937
  created: string;
@@ -943,6 +964,12 @@ export declare const esMX: {
943
964
  };
944
965
  image: {
945
966
  alt: string;
967
+ scope: string;
968
+ generalScope: string;
969
+ specificScope: string;
970
+ move: string;
971
+ moveConfirmation: string;
972
+ moved: string;
946
973
  archiveConfirmation: string;
947
974
  empty: string;
948
975
  placeholder: string;
@@ -953,6 +980,13 @@ export declare const esMX: {
953
980
  };
954
981
  validation: {
955
982
  duplicateImage: string;
983
+ invalidSpecific: string;
984
+ duplicateSpecific: string;
985
+ duplicateAssignment: string;
986
+ parentNameConflict: string;
987
+ slugCollision: string;
988
+ duplicateAtDestination: string;
989
+ immutableParent: string;
956
990
  };
957
991
  };
958
992
  makers: {
@@ -911,6 +911,27 @@ export const esMX = {
911
911
  },
912
912
  },
913
913
  materials: {
914
+ specific: {
915
+ title: "Aleaciones y grados",
916
+ add: "Agregar aleación o grado",
917
+ edit: "Editar aleación o grado",
918
+ name: "Nombre de la aleación o grado",
919
+ empty: "No se han agregado aleaciones ni grados.",
920
+ select: "Selecciona una aleación o grado",
921
+ optional: "Aleación o grado (opcional)",
922
+ general: "Solo material general",
923
+ help: "Elige una aleación o grado para este material, o conserva el material general.",
924
+ noProducts: "Aún no hay productos que usen esta aleación o grado.",
925
+ noCollectionItems: "Aún no hay artículos de colección que usen esta aleación o grado.",
926
+ noImages: "No se han agregado imágenes para esta aleación o grado.",
927
+ },
928
+ slug: {
929
+ help: "Cambiar el nombre conserva el slug actual. Selecciona Actualizar slug para cambiar la URL.",
930
+ update: "Actualizar slug",
931
+ preview: "Nueva URL: {url}",
932
+ confirmation: "¿Cambiar {oldUrl} a {newUrl}? La URL anterior dejará de funcionar.",
933
+ affected: "URL de materiales anidadas afectadas: {count}",
934
+ },
914
935
  admin: {
915
936
  addTitle: "Agregar material",
916
937
  created: "Se agregó el material.",
@@ -943,6 +964,12 @@ export const esMX = {
943
964
  },
944
965
  image: {
945
966
  alt: "Imagen de {name}",
967
+ scope: "Ámbito de la imagen",
968
+ generalScope: "General",
969
+ specificScope: "Aleación o grado",
970
+ move: "Mover imagen",
971
+ moveConfirmation: "¿Mover esta imagen a {scope}?",
972
+ moved: "Se movió la imagen.",
946
973
  archiveConfirmation: "¿Quieres archivar esta imagen del material?",
947
974
  empty: "No se han agregado imágenes.",
948
975
  placeholder: "No hay imagen disponible para {name}",
@@ -953,6 +980,13 @@ export const esMX = {
953
980
  },
954
981
  validation: {
955
982
  duplicateImage: "Esta imagen ya se agregó.",
983
+ invalidSpecific: "Elige una aleación o grado que pertenezca a este material.",
984
+ duplicateSpecific: "Este nombre de aleación o grado ya existe para este material.",
985
+ duplicateAssignment: "Esta combinación de material y aleación o grado ya está seleccionada.",
986
+ parentNameConflict: "Una aleación o grado no puede tener el mismo nombre que su material general.",
987
+ slugCollision: "Este slug ya está en uso.",
988
+ duplicateAtDestination: "Esta imagen ya existe en el ámbito de destino.",
989
+ immutableParent: "No se puede cambiar el material general de una aleación o grado.",
956
990
  },
957
991
  },
958
992
  makers: {
@@ -913,6 +913,27 @@ export type CompleteLocalizationResource = Readonly<{
913
913
  };
914
914
  };
915
915
  materials: {
916
+ specific: {
917
+ title: string;
918
+ add: string;
919
+ edit: string;
920
+ name: string;
921
+ empty: string;
922
+ select: string;
923
+ optional: string;
924
+ general: string;
925
+ help: string;
926
+ noProducts: string;
927
+ noCollectionItems: string;
928
+ noImages: string;
929
+ };
930
+ slug: {
931
+ help: string;
932
+ update: string;
933
+ preview: string;
934
+ confirmation: string;
935
+ affected: string;
936
+ };
916
937
  admin: {
917
938
  addTitle: string;
918
939
  created: string;
@@ -945,6 +966,12 @@ export type CompleteLocalizationResource = Readonly<{
945
966
  };
946
967
  image: {
947
968
  alt: string;
969
+ scope: string;
970
+ generalScope: string;
971
+ specificScope: string;
972
+ move: string;
973
+ moveConfirmation: string;
974
+ moved: string;
948
975
  archiveConfirmation: string;
949
976
  empty: string;
950
977
  placeholder: string;
@@ -955,6 +982,13 @@ export type CompleteLocalizationResource = Readonly<{
955
982
  };
956
983
  validation: {
957
984
  duplicateImage: string;
985
+ invalidSpecific: string;
986
+ duplicateSpecific: string;
987
+ duplicateAssignment: string;
988
+ parentNameConflict: string;
989
+ slugCollision: string;
990
+ duplicateAtDestination: string;
991
+ immutableParent: string;
958
992
  };
959
993
  };
960
994
  makers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocket-trash/localizations",
3
- "version": "0.30.1",
3
+ "version": "0.31.1",
4
4
  "description": "Shared localization utilities and message catalogs for Pocket Trash.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -37,19 +37,6 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "engines": {
41
- "node": ">=22.20.0 <23"
42
- },
43
- "devDependencies": {
44
- "@biomejs/biome": "^2.5.14",
45
- "@changesets/cli": "^3.0.3",
46
- "@commitlint/cli": "^21.2.3",
47
- "@commitlint/config-conventional": "^21.2.3",
48
- "husky": "^9.1.7",
49
- "npm": "11.20.0",
50
- "skills": "1.7.0",
51
- "typescript": "^5.9.3"
52
- },
53
40
  "scripts": {
54
41
  "agent-skills:update": "pnpm exec skills add pocket-trash/skills --skill '*' --agent codex claude-code -y",
55
42
  "build": "pnpm run security:audit && tsc -p tsconfig.json",
@@ -62,8 +49,24 @@
62
49
  "lint": "biome ci .",
63
50
  "localization:create": "node scripts/localizations.mjs create",
64
51
  "localization:sync": "node scripts/localizations.mjs sync",
65
- "release": "pnpm run security:audit && pnpm exec npm whoami && pnpm run changeset:version && pnpm install --lockfile-only && git add package.json pnpm-lock.yaml CHANGELOG.md .changeset && git commit -m \"chore: version packages [skip ci]\" && changeset publish && git push --follow-tags && VERSION=$(node -p \"require('./package.json').version\") && gh release create \"v$VERSION\" --title \"v$VERSION\" --generate-notes --verify-tag",
52
+ "prepack": "pnpm run build",
53
+ "prepare": "husky",
54
+ "release": "gh workflow run publish.yml --repo Pocket-Trash/localizations --ref main",
66
55
  "security:audit": "node scripts/security-audit.mjs",
67
56
  "test": "pnpm changelog:validate && pnpm run build && node --test"
68
- }
69
- }
57
+ },
58
+ "engines": {
59
+ "node": ">=22.20.0 <23"
60
+ },
61
+ "devDependencies": {
62
+ "@biomejs/biome": "^2.5.14",
63
+ "@changesets/cli": "^3.0.3",
64
+ "@commitlint/cli": "^21.2.3",
65
+ "@commitlint/config-conventional": "^21.2.3",
66
+ "husky": "^9.1.7",
67
+ "npm": "11.20.0",
68
+ "skills": "1.7.0",
69
+ "typescript": "^5.9.3"
70
+ },
71
+ "packageManager": "pnpm@11.27.1"
72
+ }