mapa-frontend-i18n 2.10.0 → 2.11.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
@@ -287,3 +287,15 @@ workers. Os JSON de `dist/i18n-remote` são gerados por `npm run export:i18n`;
287
287
  essa geração não faz upload para a AWS. A atualização acrescenta IDs e preserva
288
288
  o fallback embutido para arquivos remotos ainda sem essas mensagens.
289
289
 
290
+ ## Componentes do Guia V5 (2.11.0)
291
+
292
+ `getMapaUiTexts(language)` traz também os grupos `wizardSteps`, `deadlineField`,
293
+ `welcomePreview`, `catalogOrder`, `palettePicker`, `launchOptions` e `fileDrop`,
294
+ usados pelos componentes do Guia V5 de `mapa-library-ui` (etapas, campo de
295
+ prazo, prévia de boas-vindas, catálogo e ordem, paleta, avaliação criada e área
296
+ de envio de arquivo), em `pt-BR`, `en` e `es`. Rótulos com nome, posição ou
297
+ tipos de arquivo são funções e, como os demais, não vão para os JSON remotos.
298
+
299
+ Publicar `mapa-frontend-i18n@2.11.0` antes da versão de `mapa-library-ui` que
300
+ passa a ler esses grupos daqui em vez de declará-los por conta própria.
301
+
@@ -22286,6 +22286,13 @@ function getPaginatorNavigationLabels(language) {
22286
22286
  goToPageLabel: copy.goToPageLabel,
22287
22287
  };
22288
22288
  }
22289
+ /** File type lists ("A, B ou C") in the file drop texts. */
22290
+ function joinAlternatives(items, separator) {
22291
+ if (items.length <= 1) {
22292
+ return items.join("");
22293
+ }
22294
+ return `${items.slice(0, -1).join(", ")} ${separator} ${items[items.length - 1]}`;
22295
+ }
22289
22296
  const MAPA_UI_TEXTS_PT_BR = {
22290
22297
  export: getExportUiTexts("pt-BR"),
22291
22298
  common: {
@@ -22403,6 +22410,47 @@ const MAPA_UI_TEXTS_PT_BR = {
22403
22410
  pattern: "Formato inválido",
22404
22411
  required: "Campo obrigatório",
22405
22412
  },
22413
+ wizardSteps: {
22414
+ navigationLabel: "Etapas",
22415
+ doneStatus: "concluída",
22416
+ lockedStatus: "bloqueada",
22417
+ },
22418
+ deadlineField: {
22419
+ unit: (value) => (value === 1 ? "dia" : "dias"),
22420
+ integerError: "Informe um número inteiro de dias",
22421
+ },
22422
+ welcomePreview: {
22423
+ previewLabel: "Prévia · como a pessoa vê",
22424
+ startLabel: "Começar",
22425
+ },
22426
+ catalogOrder: {
22427
+ addLabel: "Adicionar",
22428
+ addItemLabel: (name) => `Adicionar ${name}`,
22429
+ moveUpLabel: (name) => `Mover ${name} para cima`,
22430
+ moveDownLabel: (name) => `Mover ${name} para baixo`,
22431
+ removeLabel: (name) => `Remover ${name}`,
22432
+ catalogEmpty: "Todos os itens do catálogo já foram adicionados.",
22433
+ orderEmptyTitle: "Nenhum item adicionado",
22434
+ orderEmptyDescription: "Adicione pelo catálogo.",
22435
+ addedAnnouncement: (name, position, total) => `${name} adicionado na posição ${position} de ${total}.`,
22436
+ movedAnnouncement: (name, position, total) => `${name} movido para a posição ${position} de ${total}.`,
22437
+ removedAnnouncement: (name) => `${name} removido.`,
22438
+ },
22439
+ palettePicker: {
22440
+ defaultBadge: "Padrão",
22441
+ },
22442
+ launchOptions: {
22443
+ recommendedBadge: "Indicado",
22444
+ },
22445
+ fileDrop: {
22446
+ dropTitle: "Arraste o arquivo para cá",
22447
+ separator: "ou",
22448
+ selectLabel: "Selecionar arquivo",
22449
+ replaceLabel: "Trocar arquivo",
22450
+ acceptedTypes: (types) => joinAlternatives(types, "ou"),
22451
+ invalidType: (fileName, types) => `Não foi possível usar ${fileName}. Envie um arquivo ${joinAlternatives(types, "ou")}.`,
22452
+ tooLarge: (fileName, maxSize) => `${fileName} passa do limite de ${maxSize}.`,
22453
+ },
22406
22454
  };
22407
22455
  const MAPA_UI_TEXTS_ES = {
22408
22456
  export: getExportUiTexts("es"),
@@ -22521,6 +22569,47 @@ const MAPA_UI_TEXTS_ES = {
22521
22569
  pattern: "Formato inválido",
22522
22570
  required: "Campo obligatorio",
22523
22571
  },
22572
+ wizardSteps: {
22573
+ navigationLabel: "Etapas",
22574
+ doneStatus: "completada",
22575
+ lockedStatus: "bloqueada",
22576
+ },
22577
+ deadlineField: {
22578
+ unit: (value) => (value === 1 ? "día" : "días"),
22579
+ integerError: "Introduzca un número entero de días",
22580
+ },
22581
+ welcomePreview: {
22582
+ previewLabel: "Vista previa · cómo la ve la persona",
22583
+ startLabel: "Comenzar",
22584
+ },
22585
+ catalogOrder: {
22586
+ addLabel: "Agregar",
22587
+ addItemLabel: (name) => `Agregar ${name}`,
22588
+ moveUpLabel: (name) => `Mover ${name} hacia arriba`,
22589
+ moveDownLabel: (name) => `Mover ${name} hacia abajo`,
22590
+ removeLabel: (name) => `Quitar ${name}`,
22591
+ catalogEmpty: "Todos los elementos del catálogo ya fueron agregados.",
22592
+ orderEmptyTitle: "Ningún elemento agregado",
22593
+ orderEmptyDescription: "Agréguelos desde el catálogo.",
22594
+ addedAnnouncement: (name, position, total) => `Se agregó ${name} en la posición ${position} de ${total}.`,
22595
+ movedAnnouncement: (name, position, total) => `Se movió ${name} a la posición ${position} de ${total}.`,
22596
+ removedAnnouncement: (name) => `Se quitó ${name}.`,
22597
+ },
22598
+ palettePicker: {
22599
+ defaultBadge: "Predeterminada",
22600
+ },
22601
+ launchOptions: {
22602
+ recommendedBadge: "Recomendado",
22603
+ },
22604
+ fileDrop: {
22605
+ dropTitle: "Arrastre el archivo aquí",
22606
+ separator: "o",
22607
+ selectLabel: "Seleccionar archivo",
22608
+ replaceLabel: "Cambiar archivo",
22609
+ acceptedTypes: (types) => joinAlternatives(types, "o"),
22610
+ invalidType: (fileName, types) => `No fue posible usar ${fileName}. Envíe un archivo ${joinAlternatives(types, "o")}.`,
22611
+ tooLarge: (fileName, maxSize) => `${fileName} supera el límite de ${maxSize}.`,
22612
+ },
22524
22613
  };
22525
22614
  const MAPA_UI_TEXTS_EN = {
22526
22615
  export: getExportUiTexts("en"),
@@ -22639,6 +22728,47 @@ const MAPA_UI_TEXTS_EN = {
22639
22728
  pattern: "Invalid format",
22640
22729
  required: "Required field",
22641
22730
  },
22731
+ wizardSteps: {
22732
+ navigationLabel: "Steps",
22733
+ doneStatus: "done",
22734
+ lockedStatus: "locked",
22735
+ },
22736
+ deadlineField: {
22737
+ unit: (value) => (value === 1 ? "day" : "days"),
22738
+ integerError: "Enter a whole number of days",
22739
+ },
22740
+ welcomePreview: {
22741
+ previewLabel: "Preview · what the person sees",
22742
+ startLabel: "Start",
22743
+ },
22744
+ catalogOrder: {
22745
+ addLabel: "Add",
22746
+ addItemLabel: (name) => `Add ${name}`,
22747
+ moveUpLabel: (name) => `Move ${name} up`,
22748
+ moveDownLabel: (name) => `Move ${name} down`,
22749
+ removeLabel: (name) => `Remove ${name}`,
22750
+ catalogEmpty: "Every catalog item has been added.",
22751
+ orderEmptyTitle: "No items added",
22752
+ orderEmptyDescription: "Add them from the catalog.",
22753
+ addedAnnouncement: (name, position, total) => `${name} added at position ${position} of ${total}.`,
22754
+ movedAnnouncement: (name, position, total) => `${name} moved to position ${position} of ${total}.`,
22755
+ removedAnnouncement: (name) => `${name} removed.`,
22756
+ },
22757
+ palettePicker: {
22758
+ defaultBadge: "Default",
22759
+ },
22760
+ launchOptions: {
22761
+ recommendedBadge: "Recommended",
22762
+ },
22763
+ fileDrop: {
22764
+ dropTitle: "Drag the file here",
22765
+ separator: "or",
22766
+ selectLabel: "Select file",
22767
+ replaceLabel: "Replace file",
22768
+ acceptedTypes: (types) => joinAlternatives(types, "or"),
22769
+ invalidType: (fileName, types) => `${fileName} could not be used. Send a ${joinAlternatives(types, "or")} file.`,
22770
+ tooLarge: (fileName, maxSize) => `${fileName} is over the ${maxSize} limit.`,
22771
+ },
22642
22772
  };
22643
22773
  function getMapaUiTexts(language) {
22644
22774
  switch (language) {