@pocket-trash/localizations 0.7.0 → 0.9.0

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
@@ -236,3 +236,16 @@ pnpm localization:sync
236
236
  ```
237
237
 
238
238
  Publishing notes live in [docs/publishing.md](docs/publishing.md).
239
+
240
+ ## Help documents
241
+
242
+ Localized help sources are published unchanged under
243
+ `@pocket-trash/localizations/help/<locale>/<slug>.mdx`. They contain frontmatter
244
+ and Markdown; consumers handle parsing and rendering. The package does not
245
+ compile MDX or execute JSX.
246
+
247
+ For example, a Vite app can load the English image guide as text:
248
+
249
+ ```ts
250
+ import source from "@pocket-trash/localizations/help/en-US/image-size-and-resolution-guide.mdx?raw";
251
+ ```
package/dist/index.d.ts CHANGED
@@ -558,6 +558,13 @@ export declare const localizations: Readonly<{
558
558
  enabled: string;
559
559
  failedToLoad: string;
560
560
  };
561
+ storage: {
562
+ sizeMiB: string;
563
+ };
564
+ upload: {
565
+ finalizationFailure: string;
566
+ saveFailed: string;
567
+ };
561
568
  };
562
569
  };
563
570
  "es-MX": {
@@ -1109,6 +1116,13 @@ export declare const localizations: Readonly<{
1109
1116
  enabled: string;
1110
1117
  failedToLoad: string;
1111
1118
  };
1119
+ storage: {
1120
+ sizeMiB: string;
1121
+ };
1122
+ upload: {
1123
+ finalizationFailure: string;
1124
+ saveFailed: string;
1125
+ };
1112
1126
  };
1113
1127
  };
1114
1128
  }>;
@@ -556,5 +556,12 @@ export declare const enUS: {
556
556
  enabled: string;
557
557
  failedToLoad: string;
558
558
  };
559
+ storage: {
560
+ sizeMiB: string;
561
+ };
562
+ upload: {
563
+ finalizationFailure: string;
564
+ saveFailed: string;
565
+ };
559
566
  };
560
567
  };
@@ -479,7 +479,7 @@ export const enUS = {
479
479
  expired: "This upload session expired. Start the upload again.",
480
480
  fileFailure: "{filename} couldn't be uploaded. Retry this file.",
481
481
  fileHelp: "Choose 1–{maxFiles} files. Each file can be up to {maxFileSize}; the complete upload can be up to {maxSessionSize}.",
482
- fileTypes: "Allowed file types: STL, 3MF, STEP, STP, PDF, TXT, and ZIP.",
482
+ fileTypes: "Allowed file types: STL, 3MF, STEP, STP, PDF, TXT, ZIP, JPEG, PNG, and WebP.",
483
483
  filesLabel: "Resource files",
484
484
  finalizationFailure: "Your files were uploaded, but the resource could not be finalized. Retry to finish the upload.",
485
485
  finalizing: "Finishing your upload…",
@@ -556,5 +556,12 @@ export const enUS = {
556
556
  enabled: "Enabled",
557
557
  failedToLoad: "Failed to load.",
558
558
  },
559
+ storage: {
560
+ sizeMiB: "{value} MiB",
561
+ },
562
+ upload: {
563
+ finalizationFailure: "Your files were uploaded, but the upload could not be finalized. Try again.",
564
+ saveFailed: "We couldn't save your upload. Try again.",
565
+ },
559
566
  },
560
567
  };
@@ -556,5 +556,12 @@ export declare const esMX: {
556
556
  enabled: string;
557
557
  failedToLoad: string;
558
558
  };
559
+ storage: {
560
+ sizeMiB: string;
561
+ };
562
+ upload: {
563
+ finalizationFailure: string;
564
+ saveFailed: string;
565
+ };
559
566
  };
560
567
  };
@@ -479,7 +479,7 @@ export const esMX = {
479
479
  expired: "Esta sesión de carga venció. Inicia la carga de nuevo.",
480
480
  fileFailure: "No se pudo subir {filename}. Vuelve a intentar este archivo.",
481
481
  fileHelp: "Elige de 1 a {maxFiles} archivos. Cada archivo puede pesar hasta {maxFileSize}; la carga completa puede pesar hasta {maxSessionSize}.",
482
- fileTypes: "Tipos de archivo permitidos: STL, 3MF, STEP, STP, PDF, TXT y ZIP.",
482
+ fileTypes: "Tipos de archivo permitidos: STL, 3MF, STEP, STP, PDF, TXT, ZIP, JPEG, PNG y WebP.",
483
483
  filesLabel: "Archivos del recurso",
484
484
  finalizationFailure: "Tus archivos se subieron, pero no se pudo finalizar el recurso. Vuelve a intentarlo para completar la carga.",
485
485
  finalizing: "Finalizando tu carga…",
@@ -556,5 +556,12 @@ export const esMX = {
556
556
  enabled: "Activada",
557
557
  failedToLoad: "No se pudo cargar.",
558
558
  },
559
+ storage: {
560
+ sizeMiB: "{value} MiB",
561
+ },
562
+ upload: {
563
+ finalizationFailure: "Tus archivos se cargaron, pero no se pudo finalizar la carga. Inténtalo de nuevo.",
564
+ saveFailed: "No pudimos guardar tu carga. Inténtalo de nuevo.",
565
+ },
559
566
  },
560
567
  };
@@ -553,6 +553,13 @@ export type CompleteLocalizationResource = Readonly<{
553
553
  enabled: string;
554
554
  failedToLoad: string;
555
555
  };
556
+ storage: {
557
+ sizeMiB: string;
558
+ };
559
+ upload: {
560
+ finalizationFailure: string;
561
+ saveFailed: string;
562
+ };
556
563
  };
557
564
  }>;
558
565
  export type TranslationKey = DotPaths<CompleteLocalizationResource>;
@@ -0,0 +1,23 @@
1
+ ---
2
+ title: Image size and resolution guide
3
+ datePublished: 2026-09-23
4
+ category: Images
5
+ ---
6
+
7
+ ## Products, collections, and collection items
8
+
9
+ Pocket Trash uses the same image for both the card preview and the main detail image for a product, collection, or collection item.
10
+
11
+ ## Aspect ratio
12
+
13
+ Use a **4:3 landscape image** so the complete image appears consistently in both places. Examples include 1200 × 900, 1600 × 1200, and 2000 × 1500 pixels.
14
+
15
+ Images with a different aspect ratio can still be uploaded, but Pocket Trash crops them to fill the 4:3 frame. Keep the subject and other important details away from the edges.
16
+
17
+ ## Size and quality
18
+
19
+ - Use at least **1200 × 900 pixels** to avoid visible softness or degraded image quality.
20
+ - **2000 × 1500 pixels** is recommended for a sharper result on high-density displays.
21
+ - Upload the highest-quality original available. Pocket Trash stores the original and can create appropriately sized versions when displaying it.
22
+ - Supported formats are JPEG, PNG, and WebP.
23
+ - Each image can be up to 25 MiB. A single upload can contain up to 20 images and total up to 200 MiB.
@@ -0,0 +1,23 @@
1
+ ---
2
+ title: Guía de tamaño y resolución de imágenes
3
+ datePublished: 2026-09-23
4
+ category: Imágenes
5
+ ---
6
+
7
+ ## Productos, colecciones y artículos de colección
8
+
9
+ Pocket Trash usa la misma imagen tanto para la vista previa de la tarjeta como para la imagen principal de los detalles de un producto, una colección o un artículo de colección.
10
+
11
+ ## Relación de aspecto
12
+
13
+ Usa una **imagen horizontal con una relación de aspecto de 4:3** para que la imagen completa aparezca de manera uniforme en ambos lugares. Algunos ejemplos son 1200 × 900, 1600 × 1200 y 2000 × 1500 píxeles.
14
+
15
+ Las imágenes con una relación de aspecto diferente también se pueden subir, pero Pocket Trash las recorta para llenar el marco de 4:3. Mantén el sujeto y otros detalles importantes alejados de los bordes.
16
+
17
+ ## Tamaño y calidad
18
+
19
+ - Usa al menos **1200 × 900 píxeles** para evitar que la imagen se vea borrosa o pierda calidad.
20
+ - Se recomienda usar **2000 × 1500 píxeles** para obtener un resultado más nítido en pantallas de alta densidad.
21
+ - Sube la imagen original de la mejor calidad disponible. Pocket Trash almacena el archivo original y puede crear versiones del tamaño adecuado al mostrarlo.
22
+ - Los formatos compatibles son JPEG, PNG y WebP.
23
+ - Cada imagen puede tener un tamaño máximo de 25 MiB. Una sola carga puede contener hasta 20 imágenes y tener un tamaño total máximo de 200 MiB.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocket-trash/localizations",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Shared localization utilities and message catalogs for Pocket Trash.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -9,10 +9,12 @@
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.js"
12
- }
12
+ },
13
+ "./help/*.mdx": "./help/*.mdx"
13
14
  },
14
15
  "files": [
15
- "dist"
16
+ "dist",
17
+ "help"
16
18
  ],
17
19
  "repository": {
18
20
  "type": "git",