@cobre-npm/library-onboarding-core 0.1.4 → 0.1.5
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/package.json +1 -1
- package/src/index.d.ts +3 -0
- package/src/index.js +4 -1
- package/src/locales/common/en.json +42 -0
- package/src/locales/common/es.json +42 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ type SharedEn = typeof import("./locales/Shared/en.json")
|
|
|
2
2
|
type SharedEs = typeof import("./locales/Shared/es.json")
|
|
3
3
|
type SummaryEn = typeof import("./locales/Summary/en.json")
|
|
4
4
|
type SummaryEs = typeof import("./locales/Summary/es.json")
|
|
5
|
+
type CommonEn = typeof import("./locales/common/en.json")
|
|
6
|
+
type CommonEs = typeof import("./locales/common/es.json")
|
|
5
7
|
|
|
6
8
|
export interface Locales {
|
|
7
9
|
Shared: { en: SharedEn; es: SharedEs }
|
|
8
10
|
Summary: { en: SummaryEn; es: SummaryEs }
|
|
11
|
+
common: { en: CommonEn; es: CommonEs }
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
export const locales: Locales
|
package/src/index.js
CHANGED
|
@@ -2,10 +2,13 @@ const SharedEn = require('./locales/Shared/en.json')
|
|
|
2
2
|
const SharedEs = require('./locales/Shared/es.json')
|
|
3
3
|
const SummaryEn = require('./locales/Summary/en.json')
|
|
4
4
|
const SummaryEs = require('./locales/Summary/es.json')
|
|
5
|
+
const CommonEn = require('./locales/common/en.json')
|
|
6
|
+
const CommonEs = require('./locales/common/es.json')
|
|
5
7
|
|
|
6
8
|
const locales = {
|
|
7
9
|
Shared: { en: SharedEn, es: SharedEs },
|
|
8
|
-
Summary: { en: SummaryEn, es: SummaryEs }
|
|
10
|
+
Summary: { en: SummaryEn, es: SummaryEs },
|
|
11
|
+
common: { en: CommonEn, es: CommonEs }
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
module.exports = { locales }
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"buttons": {
|
|
3
|
+
"back": "Back",
|
|
4
|
+
"next": "Next"
|
|
5
|
+
},
|
|
6
|
+
"documents": {
|
|
7
|
+
"errors": {
|
|
8
|
+
"badExtension": "File type not allowed. Accepted: PDF, images (PNG, JPG), Office documents (Word, Excel, PowerPoint) and ZIP.",
|
|
9
|
+
"badExtensionQuestionnaire": "The questionnaire must be a PDF or HTML file.",
|
|
10
|
+
"tooLarge": "The file exceeds the 90 MB maximum.",
|
|
11
|
+
"tooLargeQuestionnaire": "The file exceeds the 5 MB maximum.",
|
|
12
|
+
"rejected": "The document was rejected because its contents don't match an allowed format. Please upload it again.",
|
|
13
|
+
"invalidFileType": "File type not allowed. Accepted: PDF, images (PNG, JPG), Office documents (Word, Excel, PowerPoint) and ZIP.",
|
|
14
|
+
"invalidFileName": "This file name isn't allowed. Rename the file and try again.",
|
|
15
|
+
"invalidQuestionnaireContentType": "The questionnaire must be a PDF or HTML file.",
|
|
16
|
+
"uploadContentTypeRejected": "The uploaded file doesn't match an accepted format (PDF or HTML).",
|
|
17
|
+
"uploadBodyTooLarge": "This file is too large. The maximum is 5 MB.",
|
|
18
|
+
"generic": "Could not upload the document. Please try again."
|
|
19
|
+
},
|
|
20
|
+
"title": "Documents",
|
|
21
|
+
"required": "Required",
|
|
22
|
+
"optionalSection": "Optional",
|
|
23
|
+
"progress": "{uploaded} of {total} required",
|
|
24
|
+
"optional": "Optional",
|
|
25
|
+
"uploadLabel": "Upload document",
|
|
26
|
+
"uploadFromDevice": "Upload from device",
|
|
27
|
+
"maxSize": "Max size: 90 MB",
|
|
28
|
+
"replaceFile": "Replace file"
|
|
29
|
+
},
|
|
30
|
+
"messages": {
|
|
31
|
+
"saved": "Data saved (see console)"
|
|
32
|
+
},
|
|
33
|
+
"personCard": {
|
|
34
|
+
"unnamed": "Unnamed",
|
|
35
|
+
"identification": "Identification",
|
|
36
|
+
"address": "Address",
|
|
37
|
+
"confirmRemoveTitle": "Remove person",
|
|
38
|
+
"confirmRemoveDescription": "Are you sure you want to remove this person? This action cannot be undone.",
|
|
39
|
+
"confirmRemoveYes": "Remove",
|
|
40
|
+
"confirmRemoveNo": "Cancel"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"buttons": {
|
|
3
|
+
"back": "Anterior",
|
|
4
|
+
"next": "Siguiente"
|
|
5
|
+
},
|
|
6
|
+
"documents": {
|
|
7
|
+
"errors": {
|
|
8
|
+
"badExtension": "Tipo de archivo no permitido. Formatos aceptados: PDF, imágenes (PNG, JPG), documentos de Office (Word, Excel, PowerPoint) y ZIP.",
|
|
9
|
+
"badExtensionQuestionnaire": "El cuestionario debe ser un archivo PDF o HTML.",
|
|
10
|
+
"tooLarge": "El archivo supera el tamaño máximo de 90 MB.",
|
|
11
|
+
"tooLargeQuestionnaire": "El archivo supera el tamaño máximo de 5 MB.",
|
|
12
|
+
"rejected": "El documento fue rechazado porque su contenido no corresponde a un formato permitido. Vuelve a subirlo.",
|
|
13
|
+
"invalidFileType": "Tipo de archivo no permitido. Formatos aceptados: PDF, imágenes (PNG, JPG), documentos de Office (Word, Excel, PowerPoint) y ZIP.",
|
|
14
|
+
"invalidFileName": "El nombre del archivo no es válido. Renómbralo e inténtalo de nuevo.",
|
|
15
|
+
"invalidQuestionnaireContentType": "El cuestionario debe ser un archivo PDF o HTML.",
|
|
16
|
+
"uploadContentTypeRejected": "El archivo subido no corresponde a un formato aceptado (PDF o HTML).",
|
|
17
|
+
"uploadBodyTooLarge": "El archivo es demasiado grande. El máximo es 5 MB.",
|
|
18
|
+
"generic": "No se pudo subir el documento. Inténtalo de nuevo."
|
|
19
|
+
},
|
|
20
|
+
"title": "Documentos",
|
|
21
|
+
"required": "Requeridos",
|
|
22
|
+
"optionalSection": "Opcionales",
|
|
23
|
+
"progress": "{uploaded} de {total} requeridos",
|
|
24
|
+
"optional": "Opcional",
|
|
25
|
+
"uploadLabel": "Subir documento",
|
|
26
|
+
"uploadFromDevice": "Subir desde dispositivo",
|
|
27
|
+
"maxSize": "Tamaño máximo: 90 MB",
|
|
28
|
+
"replaceFile": "Reemplazar archivo"
|
|
29
|
+
},
|
|
30
|
+
"messages": {
|
|
31
|
+
"saved": "Datos guardados (ver consola)"
|
|
32
|
+
},
|
|
33
|
+
"personCard": {
|
|
34
|
+
"unnamed": "Sin nombre",
|
|
35
|
+
"identification": "Identificación",
|
|
36
|
+
"address": "Dirección",
|
|
37
|
+
"confirmRemoveTitle": "Eliminar persona",
|
|
38
|
+
"confirmRemoveDescription": "¿Estás seguro de que deseas eliminar esta persona? Esta acción no se puede deshacer.",
|
|
39
|
+
"confirmRemoveYes": "Eliminar",
|
|
40
|
+
"confirmRemoveNo": "Cancelar"
|
|
41
|
+
}
|
|
42
|
+
}
|