@pdfme/ui 3.4.2 → 3.4.3-dev.2

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.
@@ -10,7 +10,7 @@ export declare abstract class BaseUIClass {
10
10
  private readonly setSize;
11
11
  resizeObserver: ResizeObserver;
12
12
  constructor(props: UIProps);
13
- protected getLang(): "en" | "th" | "ja" | "ar" | "pl" | "it" | "de";
13
+ protected getLang(): "en" | "th" | "ja" | "ar" | "pl" | "it" | "de" | "es";
14
14
  protected getFont(): Record<string, {
15
15
  data: (string | Uint8Array | ArrayBuffer) & (string | Uint8Array | ArrayBuffer | undefined);
16
16
  fallback?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/ui",
3
- "version": "3.4.2",
3
+ "version": "3.4.3-dev.2",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
package/src/i18n.ts CHANGED
@@ -354,6 +354,57 @@ const dictDe: { [key in keyof Dict]: string } = {
354
354
  'schemas.barcodes.includetext': 'Text anzeigen',
355
355
  };
356
356
 
357
+ const dictEs: { [key in keyof Dict]: string } = {
358
+ cancel: 'Cancelar',
359
+ field: 'campo',
360
+ fieldName: 'Nombre',
361
+ align: 'Alinear',
362
+ width: 'Anchura',
363
+ height: 'Altura',
364
+ opacity: 'Opacidad',
365
+ rotate: 'Rotar',
366
+ edit: 'Editar',
367
+ plsInputName: 'Introduce el nombre',
368
+ fieldMustUniq: 'El nombre del campo no es único',
369
+ notUniq: '(Nombre no único)',
370
+ noKeyName: 'Sin nombre',
371
+ fieldsList: 'Lista de campos',
372
+ addNewField: 'Añadir un nuevo campo',
373
+ editField: 'Editar campo',
374
+ type: 'Tipo',
375
+ errorOccurred: 'Ocurrió un error',
376
+ errorBulkUpdateFieldName:
377
+ 'No se puede confirmar el cambio porque el número de elementos ha cambiado.',
378
+ commitBulkUpdateFieldName: 'Confirmar cambios',
379
+ bulkUpdateFieldName: 'Actualizar en bloque el nombre de los campos',
380
+ hexColorPrompt: 'Introduce un código de color hexadecimal válido.',
381
+ 'schemas.color': 'Color',
382
+ 'schemas.borderWidth': 'Ancho del borde',
383
+ 'schemas.borderColor': 'Color del borde',
384
+ 'schemas.textColor': 'Color del texto',
385
+ 'schemas.bgColor': 'Color del fondo',
386
+ 'schemas.horizontal': 'Horizontal',
387
+ 'schemas.vertical': 'Vertical',
388
+ 'schemas.left': 'Izquierda',
389
+ 'schemas.center': 'Centro',
390
+ 'schemas.right': 'Derecha',
391
+ 'schemas.top': 'Arriba',
392
+ 'schemas.middle': 'Medio',
393
+ 'schemas.bottom': 'Abajo',
394
+ 'schemas.text.fontName': 'Nombre de la fuente',
395
+ 'schemas.text.size': 'Tamaño',
396
+ 'schemas.text.spacing': 'Espaciado',
397
+ 'schemas.text.textAlign': 'Alineación del texto',
398
+ 'schemas.text.verticalAlign': 'Alineación vertical',
399
+ 'schemas.text.lineHeight': 'Altura de línea',
400
+ 'schemas.text.min': 'Mín',
401
+ 'schemas.text.max': 'Máx',
402
+ 'schemas.text.fit': 'Ajustar',
403
+ 'schemas.text.dynamicFontSize': 'Tamaño de fuente dinámico',
404
+ 'schemas.barcodes.barColor': 'Color de la barra',
405
+ 'schemas.barcodes.includetext': 'Incluir texto',
406
+ };
407
+
357
408
  const dictionaries: { [key in Lang]: Dict } = {
358
409
  en: dictEn,
359
410
  ja: dictJa,
@@ -362,6 +413,7 @@ const dictionaries: { [key in Lang]: Dict } = {
362
413
  it: dictIt,
363
414
  pl: dictPl,
364
415
  de: dictDe,
416
+ es: dictEs,
365
417
  };
366
418
 
367
419
  export const getDict = (lang: Lang): Dict => dictionaries[lang] || dictionaries[DEFAULT_LANG];