@pocket-trash/localizations 0.2.0 → 0.3.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/dist/index.d.ts CHANGED
@@ -28,9 +28,14 @@ export declare const localizations: Readonly<{
28
28
  name: string;
29
29
  };
30
30
  action: {
31
+ addMaker: string;
32
+ addMaterial: string;
33
+ addProduct: string;
34
+ addToCollection: string;
31
35
  archive: string;
32
36
  clearAllFilters: string;
33
37
  close: string;
38
+ confirmAdd: string;
34
39
  edit: string;
35
40
  saveFlag: string;
36
41
  search: string;
@@ -126,6 +131,45 @@ export declare const localizations: Readonly<{
126
131
  archived: string;
127
132
  };
128
133
  };
134
+ catalog: {
135
+ defaultButton: string;
136
+ error: {
137
+ duplicate: string;
138
+ form: string;
139
+ positive: string;
140
+ required: string;
141
+ url: string;
142
+ };
143
+ field: {
144
+ button: string;
145
+ buttonDiameter: string;
146
+ maker: string;
147
+ materials: string;
148
+ name: string;
149
+ productType: string;
150
+ rootUrl: string;
151
+ slug: string;
152
+ thickness: string;
153
+ thicknessWithButton: string;
154
+ width: string;
155
+ };
156
+ noProducts: string;
157
+ notImplemented: string;
158
+ selectMaker: string;
159
+ selectMaterials: string;
160
+ selectProductType: string;
161
+ };
162
+ collections: {
163
+ directory: {
164
+ avatar: string;
165
+ itemCount: string;
166
+ };
167
+ duplicateWarning: string;
168
+ edit: {
169
+ noFields: string;
170
+ };
171
+ empty: string;
172
+ };
129
173
  currency: {
130
174
  aud: string;
131
175
  cad: string;
@@ -155,6 +199,8 @@ export declare const localizations: Readonly<{
155
199
  collections: string;
156
200
  language: string;
157
201
  logOut: string;
202
+ products: string;
203
+ resources: string;
158
204
  user: string;
159
205
  };
160
206
  locale: {
@@ -174,6 +220,9 @@ export declare const localizations: Readonly<{
174
220
  title: string;
175
221
  unavailable: string;
176
222
  };
223
+ resources: {
224
+ stub: string;
225
+ };
177
226
  };
178
227
  settings: {
179
228
  about: string;
@@ -229,9 +278,14 @@ export declare const localizations: Readonly<{
229
278
  name: string;
230
279
  };
231
280
  action: {
281
+ addMaker: string;
282
+ addMaterial: string;
283
+ addProduct: string;
284
+ addToCollection: string;
232
285
  archive: string;
233
286
  clearAllFilters: string;
234
287
  close: string;
288
+ confirmAdd: string;
235
289
  edit: string;
236
290
  saveFlag: string;
237
291
  search: string;
@@ -327,6 +381,45 @@ export declare const localizations: Readonly<{
327
381
  archived: string;
328
382
  };
329
383
  };
384
+ catalog: {
385
+ defaultButton: string;
386
+ error: {
387
+ duplicate: string;
388
+ form: string;
389
+ positive: string;
390
+ required: string;
391
+ url: string;
392
+ };
393
+ field: {
394
+ button: string;
395
+ buttonDiameter: string;
396
+ maker: string;
397
+ materials: string;
398
+ name: string;
399
+ productType: string;
400
+ rootUrl: string;
401
+ slug: string;
402
+ thickness: string;
403
+ thicknessWithButton: string;
404
+ width: string;
405
+ };
406
+ noProducts: string;
407
+ notImplemented: string;
408
+ selectMaker: string;
409
+ selectMaterials: string;
410
+ selectProductType: string;
411
+ };
412
+ collections: {
413
+ directory: {
414
+ avatar: string;
415
+ itemCount: string;
416
+ };
417
+ duplicateWarning: string;
418
+ edit: {
419
+ noFields: string;
420
+ };
421
+ empty: string;
422
+ };
330
423
  currency: {
331
424
  aud: string;
332
425
  cad: string;
@@ -356,6 +449,8 @@ export declare const localizations: Readonly<{
356
449
  collections: string;
357
450
  language: string;
358
451
  logOut: string;
452
+ products: string;
453
+ resources: string;
359
454
  user: string;
360
455
  };
361
456
  locale: {
@@ -375,6 +470,9 @@ export declare const localizations: Readonly<{
375
470
  title: string;
376
471
  unavailable: string;
377
472
  };
473
+ resources: {
474
+ stub: string;
475
+ };
378
476
  };
379
477
  settings: {
380
478
  about: string;
@@ -26,9 +26,14 @@ export declare const enUS: {
26
26
  name: string;
27
27
  };
28
28
  action: {
29
+ addMaker: string;
30
+ addMaterial: string;
31
+ addProduct: string;
32
+ addToCollection: string;
29
33
  archive: string;
30
34
  clearAllFilters: string;
31
35
  close: string;
36
+ confirmAdd: string;
32
37
  edit: string;
33
38
  saveFlag: string;
34
39
  search: string;
@@ -124,6 +129,45 @@ export declare const enUS: {
124
129
  archived: string;
125
130
  };
126
131
  };
132
+ catalog: {
133
+ defaultButton: string;
134
+ error: {
135
+ duplicate: string;
136
+ form: string;
137
+ positive: string;
138
+ required: string;
139
+ url: string;
140
+ };
141
+ field: {
142
+ button: string;
143
+ buttonDiameter: string;
144
+ maker: string;
145
+ materials: string;
146
+ name: string;
147
+ productType: string;
148
+ rootUrl: string;
149
+ slug: string;
150
+ thickness: string;
151
+ thicknessWithButton: string;
152
+ width: string;
153
+ };
154
+ noProducts: string;
155
+ notImplemented: string;
156
+ selectMaker: string;
157
+ selectMaterials: string;
158
+ selectProductType: string;
159
+ };
160
+ collections: {
161
+ directory: {
162
+ avatar: string;
163
+ itemCount: string;
164
+ };
165
+ duplicateWarning: string;
166
+ edit: {
167
+ noFields: string;
168
+ };
169
+ empty: string;
170
+ };
127
171
  currency: {
128
172
  aud: string;
129
173
  cad: string;
@@ -153,6 +197,8 @@ export declare const enUS: {
153
197
  collections: string;
154
198
  language: string;
155
199
  logOut: string;
200
+ products: string;
201
+ resources: string;
156
202
  user: string;
157
203
  };
158
204
  locale: {
@@ -172,6 +218,9 @@ export declare const enUS: {
172
218
  title: string;
173
219
  unavailable: string;
174
220
  };
221
+ resources: {
222
+ stub: string;
223
+ };
175
224
  };
176
225
  settings: {
177
226
  about: string;
@@ -26,9 +26,14 @@ export const enUS = {
26
26
  name: "Pocket Trash",
27
27
  },
28
28
  action: {
29
+ addMaker: "Add maker",
30
+ addMaterial: "Add material",
31
+ addProduct: "Add product",
32
+ addToCollection: "Add to collection",
29
33
  archive: "Archive",
30
34
  clearAllFilters: "Clear all filters",
31
35
  close: "Close",
36
+ confirmAdd: "Add another",
32
37
  edit: "Edit",
33
38
  saveFlag: "Save flag",
34
39
  search: "Search",
@@ -124,6 +129,45 @@ export const enUS = {
124
129
  archived: "Archived",
125
130
  },
126
131
  },
132
+ catalog: {
133
+ defaultButton: "Default Button",
134
+ error: {
135
+ duplicate: "That name already exists.",
136
+ form: "We couldn't save this. Check the fields and try again.",
137
+ positive: "Enter a number greater than zero.",
138
+ required: "This field is required.",
139
+ url: "Enter a valid URL.",
140
+ },
141
+ field: {
142
+ button: "Button",
143
+ buttonDiameter: "Button diameter",
144
+ maker: "Maker",
145
+ materials: "Materials",
146
+ name: "Name",
147
+ productType: "Product type",
148
+ rootUrl: "Maker URL",
149
+ slug: "Slug",
150
+ thickness: "Thickness",
151
+ thicknessWithButton: "Thickness with button",
152
+ width: "Width",
153
+ },
154
+ noProducts: "No products yet.",
155
+ notImplemented: "This product type is not implemented yet.",
156
+ selectMaker: "Select a maker",
157
+ selectMaterials: "Select materials",
158
+ selectProductType: "Select a product type",
159
+ },
160
+ collections: {
161
+ directory: {
162
+ avatar: "Generic collector avatar",
163
+ itemCount: "Collection items: {count}",
164
+ },
165
+ duplicateWarning: "Matching products already owned: {count}. Confirm to add another.",
166
+ edit: {
167
+ noFields: "There are no collection-specific fields to edit for this item.",
168
+ },
169
+ empty: "No collection items yet.",
170
+ },
127
171
  currency: {
128
172
  aud: "$ AUD",
129
173
  cad: "$ CAD (native)",
@@ -153,6 +197,8 @@ export const enUS = {
153
197
  collections: "Collections",
154
198
  language: "Language",
155
199
  logOut: "Log out",
200
+ products: "Products",
201
+ resources: "Resources",
156
202
  user: "User",
157
203
  },
158
204
  locale: {
@@ -172,6 +218,9 @@ export const enUS = {
172
218
  title: "Not found",
173
219
  unavailable: "Page unavailable",
174
220
  },
221
+ resources: {
222
+ stub: "Resources are coming soon.",
223
+ },
175
224
  },
176
225
  settings: {
177
226
  about: "About",
@@ -1,12 +1,11 @@
1
1
  /**
2
- * Spanish (Mexico) translations for Pocket Trash.
2
+ * es-MX translations for Pocket Trash.
3
3
  *
4
4
  * This catalog is checked against `LocalizationResource` from
5
5
  * `src/types/localization.ts`. When adding a translation key, update that type
6
6
  * first, add the required English string in `src/localizations/en-US.ts`, then
7
- * add this locale's translation when available. Most new keys should remain
8
- * optional in the type so this catalog can omit untranslated strings and fall
9
- * back to `en-US` at runtime.
7
+ * run `pnpm localization:sync` so this locale gets any missing blank fields.
8
+ * Blank strings fall back to `en-US` at runtime until translated.
10
9
  */
11
10
  export declare const esMX: {
12
11
  app: {
@@ -27,9 +26,14 @@ export declare const esMX: {
27
26
  name: string;
28
27
  };
29
28
  action: {
29
+ addMaker: string;
30
+ addMaterial: string;
31
+ addProduct: string;
32
+ addToCollection: string;
30
33
  archive: string;
31
34
  clearAllFilters: string;
32
35
  close: string;
36
+ confirmAdd: string;
33
37
  edit: string;
34
38
  saveFlag: string;
35
39
  search: string;
@@ -125,6 +129,45 @@ export declare const esMX: {
125
129
  archived: string;
126
130
  };
127
131
  };
132
+ catalog: {
133
+ defaultButton: string;
134
+ error: {
135
+ duplicate: string;
136
+ form: string;
137
+ positive: string;
138
+ required: string;
139
+ url: string;
140
+ };
141
+ field: {
142
+ button: string;
143
+ buttonDiameter: string;
144
+ maker: string;
145
+ materials: string;
146
+ name: string;
147
+ productType: string;
148
+ rootUrl: string;
149
+ slug: string;
150
+ thickness: string;
151
+ thicknessWithButton: string;
152
+ width: string;
153
+ };
154
+ noProducts: string;
155
+ notImplemented: string;
156
+ selectMaker: string;
157
+ selectMaterials: string;
158
+ selectProductType: string;
159
+ };
160
+ collections: {
161
+ directory: {
162
+ avatar: string;
163
+ itemCount: string;
164
+ };
165
+ duplicateWarning: string;
166
+ edit: {
167
+ noFields: string;
168
+ };
169
+ empty: string;
170
+ };
128
171
  currency: {
129
172
  aud: string;
130
173
  cad: string;
@@ -154,6 +197,8 @@ export declare const esMX: {
154
197
  collections: string;
155
198
  language: string;
156
199
  logOut: string;
200
+ products: string;
201
+ resources: string;
157
202
  user: string;
158
203
  };
159
204
  locale: {
@@ -173,6 +218,9 @@ export declare const esMX: {
173
218
  title: string;
174
219
  unavailable: string;
175
220
  };
221
+ resources: {
222
+ stub: string;
223
+ };
176
224
  };
177
225
  settings: {
178
226
  about: string;
@@ -1,12 +1,11 @@
1
1
  /**
2
- * Spanish (Mexico) translations for Pocket Trash.
2
+ * es-MX translations for Pocket Trash.
3
3
  *
4
4
  * This catalog is checked against `LocalizationResource` from
5
5
  * `src/types/localization.ts`. When adding a translation key, update that type
6
6
  * first, add the required English string in `src/localizations/en-US.ts`, then
7
- * add this locale's translation when available. Most new keys should remain
8
- * optional in the type so this catalog can omit untranslated strings and fall
9
- * back to `en-US` at runtime.
7
+ * run `pnpm localization:sync` so this locale gets any missing blank fields.
8
+ * Blank strings fall back to `en-US` at runtime until translated.
10
9
  */
11
10
  export const esMX = {
12
11
  app: {
@@ -27,9 +26,14 @@ export const esMX = {
27
26
  name: "Pocket Trash",
28
27
  },
29
28
  action: {
29
+ addMaker: "Add maker",
30
+ addMaterial: "Add material",
31
+ addProduct: "Add product",
32
+ addToCollection: "Add to collection",
30
33
  archive: "Archivar",
31
34
  clearAllFilters: "Borrar todos los filtros",
32
35
  close: "Cerrar",
36
+ confirmAdd: "Add another",
33
37
  edit: "Editar",
34
38
  saveFlag: "Guardar bandera",
35
39
  search: "Buscar",
@@ -125,6 +129,45 @@ export const esMX = {
125
129
  archived: "Archivada",
126
130
  },
127
131
  },
132
+ catalog: {
133
+ defaultButton: "Default Button",
134
+ error: {
135
+ duplicate: "That name already exists.",
136
+ form: "We couldn't save this. Check the fields and try again.",
137
+ positive: "Enter a number greater than zero.",
138
+ required: "This field is required.",
139
+ url: "Enter a valid URL.",
140
+ },
141
+ field: {
142
+ button: "Button",
143
+ buttonDiameter: "Button diameter",
144
+ maker: "Maker",
145
+ materials: "Materials",
146
+ name: "Name",
147
+ productType: "Product type",
148
+ rootUrl: "Maker URL",
149
+ slug: "Slug",
150
+ thickness: "Thickness",
151
+ thicknessWithButton: "Thickness with button",
152
+ width: "Width",
153
+ },
154
+ noProducts: "No products yet.",
155
+ notImplemented: "This product type is not implemented yet.",
156
+ selectMaker: "Select a maker",
157
+ selectMaterials: "Select materials",
158
+ selectProductType: "Select a product type",
159
+ },
160
+ collections: {
161
+ directory: {
162
+ avatar: "Generic collector avatar",
163
+ itemCount: "Collection items: {count}",
164
+ },
165
+ duplicateWarning: "Matching products already owned: {count}. Confirm to add another.",
166
+ edit: {
167
+ noFields: "There are no collection-specific fields to edit for this item.",
168
+ },
169
+ empty: "No collection items yet.",
170
+ },
128
171
  currency: {
129
172
  aud: "$ AUD",
130
173
  cad: "$ CAD (native)",
@@ -154,6 +197,8 @@ export const esMX = {
154
197
  collections: "Colecciones",
155
198
  language: "Idioma",
156
199
  logOut: "Cerrar sesion",
200
+ products: "Products",
201
+ resources: "Resources",
157
202
  user: "Usuario",
158
203
  },
159
204
  locale: {
@@ -173,6 +218,9 @@ export const esMX = {
173
218
  title: "No encontrado",
174
219
  unavailable: "Pagina no disponible",
175
220
  },
221
+ resources: {
222
+ stub: "Resources are coming soon.",
223
+ },
176
224
  },
177
225
  settings: {
178
226
  about: "About",
@@ -23,9 +23,14 @@ export type CompleteLocalizationResource = Readonly<{
23
23
  name: string;
24
24
  };
25
25
  action: {
26
+ addMaker: string;
27
+ addMaterial: string;
28
+ addProduct: string;
29
+ addToCollection: string;
26
30
  archive: string;
27
31
  clearAllFilters: string;
28
32
  close: string;
33
+ confirmAdd: string;
29
34
  edit: string;
30
35
  saveFlag: string;
31
36
  search: string;
@@ -121,6 +126,45 @@ export type CompleteLocalizationResource = Readonly<{
121
126
  archived: string;
122
127
  };
123
128
  };
129
+ catalog: {
130
+ defaultButton: string;
131
+ error: {
132
+ duplicate: string;
133
+ form: string;
134
+ positive: string;
135
+ required: string;
136
+ url: string;
137
+ };
138
+ field: {
139
+ button: string;
140
+ buttonDiameter: string;
141
+ maker: string;
142
+ materials: string;
143
+ name: string;
144
+ productType: string;
145
+ rootUrl: string;
146
+ slug: string;
147
+ thickness: string;
148
+ thicknessWithButton: string;
149
+ width: string;
150
+ };
151
+ noProducts: string;
152
+ notImplemented: string;
153
+ selectMaker: string;
154
+ selectMaterials: string;
155
+ selectProductType: string;
156
+ };
157
+ collections: {
158
+ directory: {
159
+ avatar: string;
160
+ itemCount: string;
161
+ };
162
+ duplicateWarning: string;
163
+ edit: {
164
+ noFields: string;
165
+ };
166
+ empty: string;
167
+ };
124
168
  currency: {
125
169
  aud: string;
126
170
  cad: string;
@@ -150,6 +194,8 @@ export type CompleteLocalizationResource = Readonly<{
150
194
  collections: string;
151
195
  language: string;
152
196
  logOut: string;
197
+ products: string;
198
+ resources: string;
153
199
  user: string;
154
200
  };
155
201
  locale: {
@@ -169,6 +215,9 @@ export type CompleteLocalizationResource = Readonly<{
169
215
  title: string;
170
216
  unavailable: string;
171
217
  };
218
+ resources: {
219
+ stub: string;
220
+ };
172
221
  };
173
222
  settings: {
174
223
  about: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocket-trash/localizations",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Shared localization utilities and message catalogs for Pocket Trash.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",