@vtex/country-forms 1.0.1 → 1.1.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/CHANGELOG.md +17 -1
- package/README.md +2 -1
- package/dist/{BRA-PCJDRSEF.mjs → BRA-JUHEOV7J.mjs} +3 -3
- package/dist/{BRA-PCJDRSEF.mjs.map → BRA-JUHEOV7J.mjs.map} +1 -1
- package/dist/{BRA-WGCSNRCO.js → BRA-VIVRV7X7.js} +3 -3
- package/dist/{BRA-WGCSNRCO.js.map → BRA-VIVRV7X7.js.map} +1 -1
- package/dist/{bra-ZDFUVAXT.mjs → bra-ILOTR4AN.mjs} +16 -16
- package/dist/bra-ILOTR4AN.mjs.map +1 -0
- package/dist/{bra-PZBWBUGB.js → bra-MHTXSNLA.js} +21 -21
- package/dist/bra-MHTXSNLA.js.map +1 -0
- package/dist/{can-SHRLPUU5.mjs → can-FGNN5MZS.mjs} +3 -3
- package/dist/{can-SHRLPUU5.mjs.map → can-FGNN5MZS.mjs.map} +1 -1
- package/dist/{can-BUKTOPLB.js → can-LLJ4A5Y5.js} +4 -4
- package/dist/{can-BUKTOPLB.js.map → can-LLJ4A5Y5.js.map} +1 -1
- package/dist/{chunk-HKDTDE53.js → chunk-CFX5EF4R.js} +2 -2
- package/dist/{chunk-HKDTDE53.js.map → chunk-CFX5EF4R.js.map} +1 -1
- package/dist/{chunk-IVJED4TG.mjs → chunk-KWESVZKV.mjs} +2 -2
- package/dist/{chunk-IVJED4TG.mjs.map → chunk-KWESVZKV.mjs.map} +1 -1
- package/dist/{en-US-DXYSM6Q2.js → en-US-RLEM27ZZ.js} +9 -14
- package/dist/en-US-RLEM27ZZ.js.map +1 -0
- package/dist/{en-US-67K5REMQ.mjs → en-US-YW7UYXNB.mjs} +9 -14
- package/dist/en-US-YW7UYXNB.mjs.map +1 -0
- package/dist/{es-MX-2R6G2ZLS.mjs → es-MX-AGRGVXRK.mjs} +8 -13
- package/dist/es-MX-AGRGVXRK.mjs.map +1 -0
- package/dist/{es-MX-UL5OL7HT.js → es-MX-K5MWKMJW.js} +8 -13
- package/dist/es-MX-K5MWKMJW.js.map +1 -0
- package/dist/{fr-FR-GGR2M6TJ.mjs → fr-FR-KWQ3MPP5.mjs} +9 -14
- package/dist/fr-FR-KWQ3MPP5.mjs.map +1 -0
- package/dist/{fr-FR-LWA6B3MW.js → fr-FR-LJIPE6BH.js} +9 -14
- package/dist/fr-FR-LJIPE6BH.js.map +1 -0
- package/dist/index.d.mts +50 -5
- package/dist/index.d.ts +50 -5
- package/dist/index.js +34 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -21
- package/dist/index.mjs.map +1 -1
- package/dist/{mex-QT4CJZDD.js → mex-5BKCF6LS.js} +4 -4
- package/dist/{mex-QT4CJZDD.js.map → mex-5BKCF6LS.js.map} +1 -1
- package/dist/{mex-I3LUVYVC.mjs → mex-G3HMNBBF.mjs} +3 -3
- package/dist/{mex-I3LUVYVC.mjs.map → mex-G3HMNBBF.mjs.map} +1 -1
- package/dist/{pt-BR-WVTTIEAH.js → pt-BR-74IZNREP.js} +8 -13
- package/dist/pt-BR-74IZNREP.js.map +1 -0
- package/dist/{pt-BR-KH6RW3HM.mjs → pt-BR-P2RZ3X3H.mjs} +8 -13
- package/dist/{pt-BR-WVTTIEAH.js.map → pt-BR-P2RZ3X3H.mjs.map} +1 -1
- package/dist/{usa-LFLDXKPA.js → usa-3AM7UFVG.js} +4 -4
- package/dist/{usa-LFLDXKPA.js.map → usa-3AM7UFVG.js.map} +1 -1
- package/dist/{usa-6PGU5UHS.mjs → usa-ZD5OWGAD.mjs} +3 -3
- package/dist/{usa-6PGU5UHS.mjs.map → usa-ZD5OWGAD.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/bra-PZBWBUGB.js.map +0 -1
- package/dist/bra-ZDFUVAXT.mjs.map +0 -1
- package/dist/en-US-67K5REMQ.mjs.map +0 -1
- package/dist/en-US-DXYSM6Q2.js.map +0 -1
- package/dist/es-MX-2R6G2ZLS.mjs.map +0 -1
- package/dist/es-MX-UL5OL7HT.js.map +0 -1
- package/dist/fr-FR-GGR2M6TJ.mjs.map +0 -1
- package/dist/fr-FR-LWA6B3MW.js.map +0 -1
- package/dist/pt-BR-KH6RW3HM.mjs.map +0 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
var bundle = {
|
|
3
3
|
// ── Address labels ────────────────────────────────────────────────────────
|
|
4
4
|
"country-forms.address.postalCode.label": "Postal code",
|
|
5
|
-
"country-forms.address.street.label": "Street",
|
|
5
|
+
"country-forms.address.street.label": "Street address",
|
|
6
6
|
"country-forms.address.street.placeholder": "Full address",
|
|
7
7
|
"country-forms.address.number.label": "Number",
|
|
8
|
-
"country-forms.address.complement.label": "Complement",
|
|
8
|
+
"country-forms.address.complement.label": "Complement (optional)",
|
|
9
9
|
"country-forms.address.neighborhood.label": "Neighborhood",
|
|
10
10
|
"country-forms.address.city.label": "City",
|
|
11
|
-
"country-forms.address.state.label": "State
|
|
11
|
+
"country-forms.address.state.label": "State",
|
|
12
12
|
// ── Address placeholders (per country) ────────────────────────────────────
|
|
13
13
|
"country-forms.address.postalCode.placeholder.BRA": "e.g. 01310-100",
|
|
14
14
|
"country-forms.address.postalCode.placeholder.USA": "e.g. 10001 or 10001-1234",
|
|
@@ -34,21 +34,16 @@ var bundle = {
|
|
|
34
34
|
"country-forms.personal-data.cnpj.placeholder": "e.g. 11.222.333/0001-81",
|
|
35
35
|
"country-forms.personal-data.phone.placeholder.BRA": "e.g. (11) 99999-9999",
|
|
36
36
|
// ── Validation messages ───────────────────────────────────────────────────
|
|
37
|
-
"country-forms.validation.required": "
|
|
38
|
-
"country-forms.validation.invalid": "Invalid
|
|
39
|
-
"country-forms.validation.maxLength": "
|
|
37
|
+
"country-forms.validation.required": "Required field. Enter your {fieldName}.",
|
|
38
|
+
"country-forms.validation.invalid": "Invalid {fieldName}. Please fill in the {fieldName} field again.",
|
|
39
|
+
"country-forms.validation.maxLength": "{fieldName} must be at most {maxLength} characters",
|
|
40
40
|
"country-forms.validation.postalCode.BRA": "Enter a valid CEP (e.g. 01310-100)",
|
|
41
41
|
"country-forms.validation.postalCode.USA": "Enter a valid ZIP code (e.g. 10001)",
|
|
42
42
|
"country-forms.validation.postalCode.CAN": "Enter a valid postal code (e.g. K1A 0A9)",
|
|
43
|
-
"country-forms.validation.postalCode.MEX": "Enter a valid C\xF3digo Postal (e.g. 06600)"
|
|
44
|
-
"country-forms.validation.number.BRA": "Enter a valid number",
|
|
45
|
-
"country-forms.validation.email": "Enter a valid email address",
|
|
46
|
-
"country-forms.validation.phone": "Enter a valid phone number",
|
|
47
|
-
"country-forms.validation.cpf": "Enter a valid CPF",
|
|
48
|
-
"country-forms.validation.cnpj": "Enter a valid CNPJ"
|
|
43
|
+
"country-forms.validation.postalCode.MEX": "Enter a valid C\xF3digo Postal (e.g. 06600)"
|
|
49
44
|
};
|
|
50
45
|
var en_US_default = bundle;
|
|
51
46
|
|
|
52
47
|
export { en_US_default as default };
|
|
53
|
-
//# sourceMappingURL=en-US-
|
|
54
|
-
//# sourceMappingURL=en-US-
|
|
48
|
+
//# sourceMappingURL=en-US-YW7UYXNB.mjs.map
|
|
49
|
+
//# sourceMappingURL=en-US-YW7UYXNB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/i18n/messages/en-US.ts"],"names":[],"mappings":";AAKA,IAAM,MAAA,GAAqB;AAAA;AAAA,EAEzB,wCAAA,EAA0C,aAAA;AAAA,EAC1C,oCAAA,EAAsC,gBAAA;AAAA,EACtC,0CAAA,EAA4C,cAAA;AAAA,EAC5C,oCAAA,EAAsC,QAAA;AAAA,EACtC,wCAAA,EAA0C,uBAAA;AAAA,EAC1C,0CAAA,EAA4C,cAAA;AAAA,EAC5C,kCAAA,EAAoC,MAAA;AAAA,EACpC,mCAAA,EAAqC,OAAA;AAAA;AAAA,EAErC,kDAAA,EAAoD,gBAAA;AAAA,EACpD,kDAAA,EAAoD,0BAAA;AAAA,EACpD,kDAAA,EAAoD,cAAA;AAAA,EACpD,kDAAA,EAAoD,YAAA;AAAA;AAAA,EAGpD,6CAAA,EAA+C,YAAA;AAAA,EAC/C,4CAAA,EAA8C,WAAA;AAAA,EAC9C,+CAAA,EAAiD,mBAAA;AAAA,EACjD,+CAAA,EAAiD,OAAA;AAAA,EACjD,+CAAA,EAAiD,OAAA;AAAA,EACjD,yCAAA,EAA2C,OAAA;AAAA,EAC3C,yCAAA,EAA2C,OAAA;AAAA;AAAA,EAG3C,8CAAA,EAAgD,aAAA;AAAA,EAChD,mDAAA,EAAqD,YAAA;AAAA,EACrD,iDAAA,EAAmD,UAAA;AAAA,EACnD,wDAAA,EAA0D,YAAA;AAAA,EAC1D,sDAAA,EAAwD,cAAA;AAAA,EACxD,uCAAA,EAAyC,KAAA;AAAA,EACzC,6CAAA,EAA+C,qBAAA;AAAA,EAC/C,wCAAA,EAA0C,MAAA;AAAA,EAC1C,8CAAA,EAAgD,yBAAA;AAAA,EAChD,mDAAA,EAAqD,sBAAA;AAAA;AAAA,EAGrD,mCAAA,EAAqC,yCAAA;AAAA,EACrC,kCAAA,EAAoC,kEAAA;AAAA,EACpC,oCAAA,EAAsC,oDAAA;AAAA,EACtC,yCAAA,EAA2C,oCAAA;AAAA,EAC3C,yCAAA,EAA2C,qCAAA;AAAA,EAC3C,yCAAA,EAA2C,0CAAA;AAAA,EAC3C,yCAAA,EAA2C;AAC7C,CAAA;AAEA,IAAO,aAAA,GAAQ","file":"en-US-YW7UYXNB.mjs","sourcesContent":["/**\n * English (en-US) i18n bundle — reference locale and fallback for unsupported locales.\n */\nimport type { I18nBundle } from '../../types/i18n'\n\nconst bundle: I18nBundle = {\n // ── Address labels ────────────────────────────────────────────────────────\n 'country-forms.address.postalCode.label': 'Postal code',\n 'country-forms.address.street.label': 'Street address',\n 'country-forms.address.street.placeholder': 'Full address',\n 'country-forms.address.number.label': 'Number',\n 'country-forms.address.complement.label': 'Complement (optional)',\n 'country-forms.address.neighborhood.label': 'Neighborhood',\n 'country-forms.address.city.label': 'City',\n 'country-forms.address.state.label': 'State',\n // ── Address placeholders (per country) ────────────────────────────────────\n 'country-forms.address.postalCode.placeholder.BRA': 'e.g. 01310-100',\n 'country-forms.address.postalCode.placeholder.USA': 'e.g. 10001 or 10001-1234',\n 'country-forms.address.postalCode.placeholder.CAN': 'e.g. K1A 0A9',\n 'country-forms.address.postalCode.placeholder.MEX': 'e.g. 06600',\n\n // ── Personal data labels (fallback) ─────────────────────────────────────\n 'country-forms.personal-data.firstName.label': 'First name',\n 'country-forms.personal-data.lastName.label': 'Last name',\n 'country-forms.personal-data.contactType.label': 'Preferred contact',\n 'country-forms.personal-data.contactType.email': 'Email',\n 'country-forms.personal-data.contactType.phone': 'Phone',\n 'country-forms.personal-data.email.label': 'Email',\n 'country-forms.personal-data.phone.label': 'Phone',\n\n // ── Personal data labels (BRA) ────────────────────────────────────────────\n 'country-forms.personal-data.personType.label': 'Person type',\n 'country-forms.personal-data.personType.individual': 'Individual',\n 'country-forms.personal-data.personType.business': 'Business',\n 'country-forms.personal-data.firstName.label.individual': 'First name',\n 'country-forms.personal-data.firstName.label.business': 'Company name',\n 'country-forms.personal-data.cpf.label': 'CPF',\n 'country-forms.personal-data.cpf.placeholder': 'e.g. 123.456.789-09',\n 'country-forms.personal-data.cnpj.label': 'CNPJ',\n 'country-forms.personal-data.cnpj.placeholder': 'e.g. 11.222.333/0001-81',\n 'country-forms.personal-data.phone.placeholder.BRA': 'e.g. (11) 99999-9999',\n\n // ── Validation messages ───────────────────────────────────────────────────\n 'country-forms.validation.required': 'Required field. Enter your {fieldName}.',\n 'country-forms.validation.invalid': 'Invalid {fieldName}. Please fill in the {fieldName} field again.',\n 'country-forms.validation.maxLength': '{fieldName} must be at most {maxLength} characters',\n 'country-forms.validation.postalCode.BRA': 'Enter a valid CEP (e.g. 01310-100)',\n 'country-forms.validation.postalCode.USA': 'Enter a valid ZIP code (e.g. 10001)',\n 'country-forms.validation.postalCode.CAN': 'Enter a valid postal code (e.g. K1A 0A9)',\n 'country-forms.validation.postalCode.MEX': 'Enter a valid Código Postal (e.g. 06600)',\n}\n\nexport default bundle\n"]}
|
|
@@ -5,10 +5,10 @@ var bundle = {
|
|
|
5
5
|
"country-forms.address.street.label": "Calle",
|
|
6
6
|
"country-forms.address.street.placeholder": "Direcci\xF3n completa",
|
|
7
7
|
"country-forms.address.number.label": "N\xFAmero",
|
|
8
|
-
"country-forms.address.complement.label": "Complemento",
|
|
8
|
+
"country-forms.address.complement.label": "Complemento (opcional)",
|
|
9
9
|
"country-forms.address.neighborhood.label": "Colonia / Barrio",
|
|
10
10
|
"country-forms.address.city.label": "Ciudad",
|
|
11
|
-
"country-forms.address.state.label": "Estado
|
|
11
|
+
"country-forms.address.state.label": "Estado",
|
|
12
12
|
// ── Address placeholders (per country) ────────────────────────────────────
|
|
13
13
|
"country-forms.address.postalCode.placeholder.BRA": "ej. 01310-100",
|
|
14
14
|
"country-forms.address.postalCode.placeholder.USA": "ej. 10001 \xF3 10001-1234",
|
|
@@ -34,21 +34,16 @@ var bundle = {
|
|
|
34
34
|
"country-forms.personal-data.cnpj.placeholder": "ej. 11.222.333/0001-81",
|
|
35
35
|
"country-forms.personal-data.phone.placeholder.BRA": "ej. (11) 99999-9999",
|
|
36
36
|
// ── Validation messages ───────────────────────────────────────────────────
|
|
37
|
-
"country-forms.validation.required": "
|
|
38
|
-
"country-forms.validation.invalid": "
|
|
39
|
-
"country-forms.validation.maxLength": "
|
|
37
|
+
"country-forms.validation.required": "Campo obligatorio. Ingresa tu {fieldName}.",
|
|
38
|
+
"country-forms.validation.invalid": "{fieldName} inv\xE1lido. Llene el campo {fieldName} nuevamente.",
|
|
39
|
+
"country-forms.validation.maxLength": "{fieldName} debe tener hasta {maxLength} caracteres",
|
|
40
40
|
"country-forms.validation.postalCode.BRA": "Ingrese un CEP v\xE1lido (ej. 01310-100)",
|
|
41
41
|
"country-forms.validation.postalCode.USA": "Ingrese un c\xF3digo ZIP v\xE1lido (ej. 10001)",
|
|
42
42
|
"country-forms.validation.postalCode.CAN": "Ingrese un c\xF3digo postal v\xE1lido (ej. K1A 0A9)",
|
|
43
|
-
"country-forms.validation.postalCode.MEX": "Ingrese un C\xF3digo Postal v\xE1lido (ej. 06600)"
|
|
44
|
-
"country-forms.validation.number.BRA": "Ingrese un n\xFAmero v\xE1lido",
|
|
45
|
-
"country-forms.validation.email": "Ingrese un correo electr\xF3nico v\xE1lido",
|
|
46
|
-
"country-forms.validation.phone": "Ingrese un tel\xE9fono v\xE1lido",
|
|
47
|
-
"country-forms.validation.cpf": "Ingrese un CPF v\xE1lido",
|
|
48
|
-
"country-forms.validation.cnpj": "Ingrese un CNPJ v\xE1lido"
|
|
43
|
+
"country-forms.validation.postalCode.MEX": "Ingrese un C\xF3digo Postal v\xE1lido (ej. 06600)"
|
|
49
44
|
};
|
|
50
45
|
var es_MX_default = bundle;
|
|
51
46
|
|
|
52
47
|
export { es_MX_default as default };
|
|
53
|
-
//# sourceMappingURL=es-MX-
|
|
54
|
-
//# sourceMappingURL=es-MX-
|
|
48
|
+
//# sourceMappingURL=es-MX-AGRGVXRK.mjs.map
|
|
49
|
+
//# sourceMappingURL=es-MX-AGRGVXRK.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/i18n/messages/es-MX.ts"],"names":[],"mappings":";AAKA,IAAM,MAAA,GAAqB;AAAA;AAAA,EAEzB,wCAAA,EAA0C,kBAAA;AAAA,EAC1C,oCAAA,EAAsC,OAAA;AAAA,EACtC,0CAAA,EAA4C,uBAAA;AAAA,EAC5C,oCAAA,EAAsC,WAAA;AAAA,EACtC,wCAAA,EAA0C,wBAAA;AAAA,EAC1C,0CAAA,EAA4C,kBAAA;AAAA,EAC5C,kCAAA,EAAoC,QAAA;AAAA,EACpC,mCAAA,EAAqC,QAAA;AAAA;AAAA,EAErC,kDAAA,EAAoD,eAAA;AAAA,EACpD,kDAAA,EAAoD,2BAAA;AAAA,EACpD,kDAAA,EAAoD,aAAA;AAAA,EACpD,kDAAA,EAAoD,WAAA;AAAA;AAAA,EAGpD,6CAAA,EAA+C,QAAA;AAAA,EAC/C,4CAAA,EAA8C,UAAA;AAAA,EAC9C,+CAAA,EAAiD,oBAAA;AAAA,EACjD,+CAAA,EAAiD,uBAAA;AAAA,EACjD,+CAAA,EAAiD,aAAA;AAAA,EACjD,yCAAA,EAA2C,uBAAA;AAAA,EAC3C,yCAAA,EAA2C,aAAA;AAAA;AAAA,EAG3C,8CAAA,EAAgD,iBAAA;AAAA,EAChD,mDAAA,EAAqD,mBAAA;AAAA,EACrD,iDAAA,EAAmD,qBAAA;AAAA,EACnD,wDAAA,EAA0D,QAAA;AAAA,EAC1D,sDAAA,EAAwD,iBAAA;AAAA,EACxD,uCAAA,EAAyC,KAAA;AAAA,EACzC,6CAAA,EAA+C,oBAAA;AAAA,EAC/C,wCAAA,EAA0C,MAAA;AAAA,EAC1C,8CAAA,EAAgD,wBAAA;AAAA,EAChD,mDAAA,EAAqD,qBAAA;AAAA;AAAA,EAGrD,mCAAA,EAAqC,4CAAA;AAAA,EACrC,kCAAA,EAAoC,iEAAA;AAAA,EACpC,oCAAA,EAAsC,qDAAA;AAAA,EACtC,yCAAA,EAA2C,0CAAA;AAAA,EAC3C,yCAAA,EAA2C,gDAAA;AAAA,EAC3C,yCAAA,EAA2C,qDAAA;AAAA,EAC3C,yCAAA,EAA2C;AAC7C,CAAA;AAEA,IAAO,aAAA,GAAQ","file":"es-MX-AGRGVXRK.mjs","sourcesContent":["/**\n * Spanish (es-MX) i18n bundle — Mexican Spanish.\n */\nimport type { I18nBundle } from '../../types/i18n'\n\nconst bundle: I18nBundle = {\n // ── Address labels ────────────────────────────────────────────────────────\n 'country-forms.address.postalCode.label': 'Código postal',\n 'country-forms.address.street.label': 'Calle',\n 'country-forms.address.street.placeholder': 'Dirección completa',\n 'country-forms.address.number.label': 'Número',\n 'country-forms.address.complement.label': 'Complemento (opcional)',\n 'country-forms.address.neighborhood.label': 'Colonia / Barrio',\n 'country-forms.address.city.label': 'Ciudad',\n 'country-forms.address.state.label': 'Estado',\n // ── Address placeholders (per country) ────────────────────────────────────\n 'country-forms.address.postalCode.placeholder.BRA': 'ej. 01310-100',\n 'country-forms.address.postalCode.placeholder.USA': 'ej. 10001 ó 10001-1234',\n 'country-forms.address.postalCode.placeholder.CAN': 'ej. K1A 0A9',\n 'country-forms.address.postalCode.placeholder.MEX': 'ej. 06600',\n\n // ── Personal data labels (fallback) ─────────────────────────────────────\n 'country-forms.personal-data.firstName.label': 'Nombre',\n 'country-forms.personal-data.lastName.label': 'Apellido',\n 'country-forms.personal-data.contactType.label': 'Contacto preferido',\n 'country-forms.personal-data.contactType.email': 'Correo electrónico',\n 'country-forms.personal-data.contactType.phone': 'Teléfono',\n 'country-forms.personal-data.email.label': 'Correo electrónico',\n 'country-forms.personal-data.phone.label': 'Teléfono',\n\n // ── Personal data labels (BRA) ────────────────────────────────────────────\n 'country-forms.personal-data.personType.label': 'Tipo de persona',\n 'country-forms.personal-data.personType.individual': 'Persona física',\n 'country-forms.personal-data.personType.business': 'Persona jurídica',\n 'country-forms.personal-data.firstName.label.individual': 'Nombre',\n 'country-forms.personal-data.firstName.label.business': 'Razón social',\n 'country-forms.personal-data.cpf.label': 'CPF',\n 'country-forms.personal-data.cpf.placeholder': 'ej. 123.456.789-09',\n 'country-forms.personal-data.cnpj.label': 'CNPJ',\n 'country-forms.personal-data.cnpj.placeholder': 'ej. 11.222.333/0001-81',\n 'country-forms.personal-data.phone.placeholder.BRA': 'ej. (11) 99999-9999',\n\n // ── Validation messages ───────────────────────────────────────────────────\n 'country-forms.validation.required': 'Campo obligatorio. Ingresa tu {fieldName}.',\n 'country-forms.validation.invalid': '{fieldName} inválido. Llene el campo {fieldName} nuevamente.',\n 'country-forms.validation.maxLength': '{fieldName} debe tener hasta {maxLength} caracteres',\n 'country-forms.validation.postalCode.BRA': 'Ingrese un CEP válido (ej. 01310-100)',\n 'country-forms.validation.postalCode.USA': 'Ingrese un código ZIP válido (ej. 10001)',\n 'country-forms.validation.postalCode.CAN': 'Ingrese un código postal válido (ej. K1A 0A9)',\n 'country-forms.validation.postalCode.MEX': 'Ingrese un Código Postal válido (ej. 06600)',\n}\n\nexport default bundle\n"]}
|
|
@@ -7,10 +7,10 @@ var bundle = {
|
|
|
7
7
|
"country-forms.address.street.label": "Calle",
|
|
8
8
|
"country-forms.address.street.placeholder": "Direcci\xF3n completa",
|
|
9
9
|
"country-forms.address.number.label": "N\xFAmero",
|
|
10
|
-
"country-forms.address.complement.label": "Complemento",
|
|
10
|
+
"country-forms.address.complement.label": "Complemento (opcional)",
|
|
11
11
|
"country-forms.address.neighborhood.label": "Colonia / Barrio",
|
|
12
12
|
"country-forms.address.city.label": "Ciudad",
|
|
13
|
-
"country-forms.address.state.label": "Estado
|
|
13
|
+
"country-forms.address.state.label": "Estado",
|
|
14
14
|
// ── Address placeholders (per country) ────────────────────────────────────
|
|
15
15
|
"country-forms.address.postalCode.placeholder.BRA": "ej. 01310-100",
|
|
16
16
|
"country-forms.address.postalCode.placeholder.USA": "ej. 10001 \xF3 10001-1234",
|
|
@@ -36,21 +36,16 @@ var bundle = {
|
|
|
36
36
|
"country-forms.personal-data.cnpj.placeholder": "ej. 11.222.333/0001-81",
|
|
37
37
|
"country-forms.personal-data.phone.placeholder.BRA": "ej. (11) 99999-9999",
|
|
38
38
|
// ── Validation messages ───────────────────────────────────────────────────
|
|
39
|
-
"country-forms.validation.required": "
|
|
40
|
-
"country-forms.validation.invalid": "
|
|
41
|
-
"country-forms.validation.maxLength": "
|
|
39
|
+
"country-forms.validation.required": "Campo obligatorio. Ingresa tu {fieldName}.",
|
|
40
|
+
"country-forms.validation.invalid": "{fieldName} inv\xE1lido. Llene el campo {fieldName} nuevamente.",
|
|
41
|
+
"country-forms.validation.maxLength": "{fieldName} debe tener hasta {maxLength} caracteres",
|
|
42
42
|
"country-forms.validation.postalCode.BRA": "Ingrese un CEP v\xE1lido (ej. 01310-100)",
|
|
43
43
|
"country-forms.validation.postalCode.USA": "Ingrese un c\xF3digo ZIP v\xE1lido (ej. 10001)",
|
|
44
44
|
"country-forms.validation.postalCode.CAN": "Ingrese un c\xF3digo postal v\xE1lido (ej. K1A 0A9)",
|
|
45
|
-
"country-forms.validation.postalCode.MEX": "Ingrese un C\xF3digo Postal v\xE1lido (ej. 06600)"
|
|
46
|
-
"country-forms.validation.number.BRA": "Ingrese un n\xFAmero v\xE1lido",
|
|
47
|
-
"country-forms.validation.email": "Ingrese un correo electr\xF3nico v\xE1lido",
|
|
48
|
-
"country-forms.validation.phone": "Ingrese un tel\xE9fono v\xE1lido",
|
|
49
|
-
"country-forms.validation.cpf": "Ingrese un CPF v\xE1lido",
|
|
50
|
-
"country-forms.validation.cnpj": "Ingrese un CNPJ v\xE1lido"
|
|
45
|
+
"country-forms.validation.postalCode.MEX": "Ingrese un C\xF3digo Postal v\xE1lido (ej. 06600)"
|
|
51
46
|
};
|
|
52
47
|
var es_MX_default = bundle;
|
|
53
48
|
|
|
54
49
|
module.exports = es_MX_default;
|
|
55
|
-
//# sourceMappingURL=es-MX-
|
|
56
|
-
//# sourceMappingURL=es-MX-
|
|
50
|
+
//# sourceMappingURL=es-MX-K5MWKMJW.js.map
|
|
51
|
+
//# sourceMappingURL=es-MX-K5MWKMJW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/i18n/messages/es-MX.ts"],"names":[],"mappings":";;;AAKA,IAAM,MAAA,GAAqB;AAAA;AAAA,EAEzB,wCAAA,EAA0C,kBAAA;AAAA,EAC1C,oCAAA,EAAsC,OAAA;AAAA,EACtC,0CAAA,EAA4C,uBAAA;AAAA,EAC5C,oCAAA,EAAsC,WAAA;AAAA,EACtC,wCAAA,EAA0C,wBAAA;AAAA,EAC1C,0CAAA,EAA4C,kBAAA;AAAA,EAC5C,kCAAA,EAAoC,QAAA;AAAA,EACpC,mCAAA,EAAqC,QAAA;AAAA;AAAA,EAErC,kDAAA,EAAoD,eAAA;AAAA,EACpD,kDAAA,EAAoD,2BAAA;AAAA,EACpD,kDAAA,EAAoD,aAAA;AAAA,EACpD,kDAAA,EAAoD,WAAA;AAAA;AAAA,EAGpD,6CAAA,EAA+C,QAAA;AAAA,EAC/C,4CAAA,EAA8C,UAAA;AAAA,EAC9C,+CAAA,EAAiD,oBAAA;AAAA,EACjD,+CAAA,EAAiD,uBAAA;AAAA,EACjD,+CAAA,EAAiD,aAAA;AAAA,EACjD,yCAAA,EAA2C,uBAAA;AAAA,EAC3C,yCAAA,EAA2C,aAAA;AAAA;AAAA,EAG3C,8CAAA,EAAgD,iBAAA;AAAA,EAChD,mDAAA,EAAqD,mBAAA;AAAA,EACrD,iDAAA,EAAmD,qBAAA;AAAA,EACnD,wDAAA,EAA0D,QAAA;AAAA,EAC1D,sDAAA,EAAwD,iBAAA;AAAA,EACxD,uCAAA,EAAyC,KAAA;AAAA,EACzC,6CAAA,EAA+C,oBAAA;AAAA,EAC/C,wCAAA,EAA0C,MAAA;AAAA,EAC1C,8CAAA,EAAgD,wBAAA;AAAA,EAChD,mDAAA,EAAqD,qBAAA;AAAA;AAAA,EAGrD,mCAAA,EAAqC,4CAAA;AAAA,EACrC,kCAAA,EAAoC,iEAAA;AAAA,EACpC,oCAAA,EAAsC,qDAAA;AAAA,EACtC,yCAAA,EAA2C,0CAAA;AAAA,EAC3C,yCAAA,EAA2C,gDAAA;AAAA,EAC3C,yCAAA,EAA2C,qDAAA;AAAA,EAC3C,yCAAA,EAA2C;AAC7C,CAAA;AAEA,IAAO,aAAA,GAAQ","file":"es-MX-K5MWKMJW.js","sourcesContent":["/**\n * Spanish (es-MX) i18n bundle — Mexican Spanish.\n */\nimport type { I18nBundle } from '../../types/i18n'\n\nconst bundle: I18nBundle = {\n // ── Address labels ────────────────────────────────────────────────────────\n 'country-forms.address.postalCode.label': 'Código postal',\n 'country-forms.address.street.label': 'Calle',\n 'country-forms.address.street.placeholder': 'Dirección completa',\n 'country-forms.address.number.label': 'Número',\n 'country-forms.address.complement.label': 'Complemento (opcional)',\n 'country-forms.address.neighborhood.label': 'Colonia / Barrio',\n 'country-forms.address.city.label': 'Ciudad',\n 'country-forms.address.state.label': 'Estado',\n // ── Address placeholders (per country) ────────────────────────────────────\n 'country-forms.address.postalCode.placeholder.BRA': 'ej. 01310-100',\n 'country-forms.address.postalCode.placeholder.USA': 'ej. 10001 ó 10001-1234',\n 'country-forms.address.postalCode.placeholder.CAN': 'ej. K1A 0A9',\n 'country-forms.address.postalCode.placeholder.MEX': 'ej. 06600',\n\n // ── Personal data labels (fallback) ─────────────────────────────────────\n 'country-forms.personal-data.firstName.label': 'Nombre',\n 'country-forms.personal-data.lastName.label': 'Apellido',\n 'country-forms.personal-data.contactType.label': 'Contacto preferido',\n 'country-forms.personal-data.contactType.email': 'Correo electrónico',\n 'country-forms.personal-data.contactType.phone': 'Teléfono',\n 'country-forms.personal-data.email.label': 'Correo electrónico',\n 'country-forms.personal-data.phone.label': 'Teléfono',\n\n // ── Personal data labels (BRA) ────────────────────────────────────────────\n 'country-forms.personal-data.personType.label': 'Tipo de persona',\n 'country-forms.personal-data.personType.individual': 'Persona física',\n 'country-forms.personal-data.personType.business': 'Persona jurídica',\n 'country-forms.personal-data.firstName.label.individual': 'Nombre',\n 'country-forms.personal-data.firstName.label.business': 'Razón social',\n 'country-forms.personal-data.cpf.label': 'CPF',\n 'country-forms.personal-data.cpf.placeholder': 'ej. 123.456.789-09',\n 'country-forms.personal-data.cnpj.label': 'CNPJ',\n 'country-forms.personal-data.cnpj.placeholder': 'ej. 11.222.333/0001-81',\n 'country-forms.personal-data.phone.placeholder.BRA': 'ej. (11) 99999-9999',\n\n // ── Validation messages ───────────────────────────────────────────────────\n 'country-forms.validation.required': 'Campo obligatorio. Ingresa tu {fieldName}.',\n 'country-forms.validation.invalid': '{fieldName} inválido. Llene el campo {fieldName} nuevamente.',\n 'country-forms.validation.maxLength': '{fieldName} debe tener hasta {maxLength} caracteres',\n 'country-forms.validation.postalCode.BRA': 'Ingrese un CEP válido (ej. 01310-100)',\n 'country-forms.validation.postalCode.USA': 'Ingrese un código ZIP válido (ej. 10001)',\n 'country-forms.validation.postalCode.CAN': 'Ingrese un código postal válido (ej. K1A 0A9)',\n 'country-forms.validation.postalCode.MEX': 'Ingrese un Código Postal válido (ej. 06600)',\n}\n\nexport default bundle\n"]}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
var bundle = {
|
|
3
3
|
// ── Address labels ────────────────────────────────────────────────────────
|
|
4
4
|
"country-forms.address.postalCode.label": "Code postal",
|
|
5
|
-
"country-forms.address.street.label": "
|
|
5
|
+
"country-forms.address.street.label": "Nom de la rue",
|
|
6
6
|
"country-forms.address.street.placeholder": "Adresse compl\xE8te",
|
|
7
7
|
"country-forms.address.number.label": "Num\xE9ro",
|
|
8
|
-
"country-forms.address.complement.label": "Compl\xE9ment",
|
|
8
|
+
"country-forms.address.complement.label": "Compl\xE9ment (facultatif)",
|
|
9
9
|
"country-forms.address.neighborhood.label": "Quartier",
|
|
10
10
|
"country-forms.address.city.label": "Ville",
|
|
11
|
-
"country-forms.address.state.label": "\xC9tat
|
|
11
|
+
"country-forms.address.state.label": "\xC9tat",
|
|
12
12
|
// ── Address placeholders (per country) ────────────────────────────────────
|
|
13
13
|
"country-forms.address.postalCode.placeholder.BRA": "ex. 01310-100",
|
|
14
14
|
"country-forms.address.postalCode.placeholder.USA": "ex. 10001 ou 10001-1234",
|
|
@@ -34,21 +34,16 @@ var bundle = {
|
|
|
34
34
|
"country-forms.personal-data.cnpj.placeholder": "ex. 11.222.333/0001-81",
|
|
35
35
|
"country-forms.personal-data.phone.placeholder.BRA": "ex. (11) 99999-9999",
|
|
36
36
|
// ── Validation messages ───────────────────────────────────────────────────
|
|
37
|
-
"country-forms.validation.required": "
|
|
38
|
-
"country-forms.validation.invalid": "
|
|
39
|
-
"country-forms.validation.maxLength": "
|
|
37
|
+
"country-forms.validation.required": "Champ obligatoire. Saisissez votre {fieldName}.",
|
|
38
|
+
"country-forms.validation.invalid": "{fieldName} invalide. Remplissez \xE0 nouveau le champ {fieldName}.",
|
|
39
|
+
"country-forms.validation.maxLength": "{fieldName} doit comporter au plus {maxLength} caract\xE8res",
|
|
40
40
|
"country-forms.validation.postalCode.BRA": "Entrez un CEP valide (ex. 01310-100)",
|
|
41
41
|
"country-forms.validation.postalCode.USA": "Entrez un code ZIP valide (ex. 10001)",
|
|
42
42
|
"country-forms.validation.postalCode.CAN": "Entrez un code postal valide (ex. K1A 0A9)",
|
|
43
|
-
"country-forms.validation.postalCode.MEX": "Entrez un C\xF3digo Postal valide (ex. 06600)"
|
|
44
|
-
"country-forms.validation.number.BRA": "Entrez un num\xE9ro valide",
|
|
45
|
-
"country-forms.validation.email": "Entrez une adresse e-mail valide",
|
|
46
|
-
"country-forms.validation.phone": "Entrez un num\xE9ro de t\xE9l\xE9phone valide",
|
|
47
|
-
"country-forms.validation.cpf": "Entrez un CPF valide",
|
|
48
|
-
"country-forms.validation.cnpj": "Entrez un CNPJ valide"
|
|
43
|
+
"country-forms.validation.postalCode.MEX": "Entrez un C\xF3digo Postal valide (ex. 06600)"
|
|
49
44
|
};
|
|
50
45
|
var fr_FR_default = bundle;
|
|
51
46
|
|
|
52
47
|
export { fr_FR_default as default };
|
|
53
|
-
//# sourceMappingURL=fr-FR-
|
|
54
|
-
//# sourceMappingURL=fr-FR-
|
|
48
|
+
//# sourceMappingURL=fr-FR-KWQ3MPP5.mjs.map
|
|
49
|
+
//# sourceMappingURL=fr-FR-KWQ3MPP5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/i18n/messages/fr-FR.ts"],"names":[],"mappings":";AAKA,IAAM,MAAA,GAAqB;AAAA;AAAA,EAEzB,wCAAA,EAA0C,aAAA;AAAA,EAC1C,oCAAA,EAAsC,eAAA;AAAA,EACtC,0CAAA,EAA4C,qBAAA;AAAA,EAC5C,oCAAA,EAAsC,WAAA;AAAA,EACtC,wCAAA,EAA0C,4BAAA;AAAA,EAC1C,0CAAA,EAA4C,UAAA;AAAA,EAC5C,kCAAA,EAAoC,OAAA;AAAA,EACpC,mCAAA,EAAqC,SAAA;AAAA;AAAA,EAErC,kDAAA,EAAoD,eAAA;AAAA,EACpD,kDAAA,EAAoD,yBAAA;AAAA,EACpD,kDAAA,EAAoD,aAAA;AAAA,EACpD,kDAAA,EAAoD,WAAA;AAAA;AAAA,EAGpD,6CAAA,EAA+C,WAAA;AAAA,EAC/C,4CAAA,EAA8C,KAAA;AAAA,EAC9C,+CAAA,EAAiD,0BAAA;AAAA,EACjD,+CAAA,EAAiD,QAAA;AAAA,EACjD,+CAAA,EAAiD,iBAAA;AAAA,EACjD,yCAAA,EAA2C,QAAA;AAAA,EAC3C,yCAAA,EAA2C,iBAAA;AAAA;AAAA,EAG3C,8CAAA,EAAgD,kBAAA;AAAA,EAChD,mDAAA,EAAqD,mBAAA;AAAA,EACrD,iDAAA,EAAmD,iBAAA;AAAA,EACnD,wDAAA,EAA0D,WAAA;AAAA,EAC1D,sDAAA,EAAwD,gBAAA;AAAA,EACxD,uCAAA,EAAyC,KAAA;AAAA,EACzC,6CAAA,EAA+C,oBAAA;AAAA,EAC/C,wCAAA,EAA0C,MAAA;AAAA,EAC1C,8CAAA,EAAgD,wBAAA;AAAA,EAChD,mDAAA,EAAqD,qBAAA;AAAA;AAAA,EAGrD,mCAAA,EAAqC,iDAAA;AAAA,EACrC,kCAAA,EAAoC,qEAAA;AAAA,EACpC,oCAAA,EAAsC,8DAAA;AAAA,EACtC,yCAAA,EAA2C,sCAAA;AAAA,EAC3C,yCAAA,EAA2C,uCAAA;AAAA,EAC3C,yCAAA,EAA2C,4CAAA;AAAA,EAC3C,yCAAA,EAA2C;AAC7C,CAAA;AAEA,IAAO,aAAA,GAAQ","file":"fr-FR-KWQ3MPP5.mjs","sourcesContent":["/**\n * French (fr-FR) i18n bundle.\n */\nimport type { I18nBundle } from '../../types/i18n'\n\nconst bundle: I18nBundle = {\n // ── Address labels ────────────────────────────────────────────────────────\n 'country-forms.address.postalCode.label': 'Code postal',\n 'country-forms.address.street.label': 'Nom de la rue',\n 'country-forms.address.street.placeholder': 'Adresse complète',\n 'country-forms.address.number.label': 'Numéro',\n 'country-forms.address.complement.label': 'Complément (facultatif)',\n 'country-forms.address.neighborhood.label': 'Quartier',\n 'country-forms.address.city.label': 'Ville',\n 'country-forms.address.state.label': 'État',\n // ── Address placeholders (per country) ────────────────────────────────────\n 'country-forms.address.postalCode.placeholder.BRA': 'ex. 01310-100',\n 'country-forms.address.postalCode.placeholder.USA': 'ex. 10001 ou 10001-1234',\n 'country-forms.address.postalCode.placeholder.CAN': 'ex. K1A 0A9',\n 'country-forms.address.postalCode.placeholder.MEX': 'ex. 06600',\n\n // ── Personal data labels (fallback) ─────────────────────────────────────\n 'country-forms.personal-data.firstName.label': 'Prénom',\n 'country-forms.personal-data.lastName.label': 'Nom',\n 'country-forms.personal-data.contactType.label': 'Contact préféré',\n 'country-forms.personal-data.contactType.email': 'E-mail',\n 'country-forms.personal-data.contactType.phone': 'Téléphone',\n 'country-forms.personal-data.email.label': 'E-mail',\n 'country-forms.personal-data.phone.label': 'Téléphone',\n\n // ── Personal data labels (BRA) ────────────────────────────────────────────\n 'country-forms.personal-data.personType.label': 'Type de personne',\n 'country-forms.personal-data.personType.individual': 'Personne physique',\n 'country-forms.personal-data.personType.business': 'Personne morale',\n 'country-forms.personal-data.firstName.label.individual': 'Prénom',\n 'country-forms.personal-data.firstName.label.business': 'Raison sociale',\n 'country-forms.personal-data.cpf.label': 'CPF',\n 'country-forms.personal-data.cpf.placeholder': 'ex. 123.456.789-09',\n 'country-forms.personal-data.cnpj.label': 'CNPJ',\n 'country-forms.personal-data.cnpj.placeholder': 'ex. 11.222.333/0001-81',\n 'country-forms.personal-data.phone.placeholder.BRA': 'ex. (11) 99999-9999',\n\n // ── Validation messages ───────────────────────────────────────────────────\n 'country-forms.validation.required': 'Champ obligatoire. Saisissez votre {fieldName}.',\n 'country-forms.validation.invalid': '{fieldName} invalide. Remplissez à nouveau le champ {fieldName}.',\n 'country-forms.validation.maxLength': '{fieldName} doit comporter au plus {maxLength} caractères',\n 'country-forms.validation.postalCode.BRA': 'Entrez un CEP valide (ex. 01310-100)',\n 'country-forms.validation.postalCode.USA': 'Entrez un code ZIP valide (ex. 10001)',\n 'country-forms.validation.postalCode.CAN': 'Entrez un code postal valide (ex. K1A 0A9)',\n 'country-forms.validation.postalCode.MEX': 'Entrez un Código Postal valide (ex. 06600)',\n}\n\nexport default bundle\n"]}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
var bundle = {
|
|
5
5
|
// ── Address labels ────────────────────────────────────────────────────────
|
|
6
6
|
"country-forms.address.postalCode.label": "Code postal",
|
|
7
|
-
"country-forms.address.street.label": "
|
|
7
|
+
"country-forms.address.street.label": "Nom de la rue",
|
|
8
8
|
"country-forms.address.street.placeholder": "Adresse compl\xE8te",
|
|
9
9
|
"country-forms.address.number.label": "Num\xE9ro",
|
|
10
|
-
"country-forms.address.complement.label": "Compl\xE9ment",
|
|
10
|
+
"country-forms.address.complement.label": "Compl\xE9ment (facultatif)",
|
|
11
11
|
"country-forms.address.neighborhood.label": "Quartier",
|
|
12
12
|
"country-forms.address.city.label": "Ville",
|
|
13
|
-
"country-forms.address.state.label": "\xC9tat
|
|
13
|
+
"country-forms.address.state.label": "\xC9tat",
|
|
14
14
|
// ── Address placeholders (per country) ────────────────────────────────────
|
|
15
15
|
"country-forms.address.postalCode.placeholder.BRA": "ex. 01310-100",
|
|
16
16
|
"country-forms.address.postalCode.placeholder.USA": "ex. 10001 ou 10001-1234",
|
|
@@ -36,21 +36,16 @@ var bundle = {
|
|
|
36
36
|
"country-forms.personal-data.cnpj.placeholder": "ex. 11.222.333/0001-81",
|
|
37
37
|
"country-forms.personal-data.phone.placeholder.BRA": "ex. (11) 99999-9999",
|
|
38
38
|
// ── Validation messages ───────────────────────────────────────────────────
|
|
39
|
-
"country-forms.validation.required": "
|
|
40
|
-
"country-forms.validation.invalid": "
|
|
41
|
-
"country-forms.validation.maxLength": "
|
|
39
|
+
"country-forms.validation.required": "Champ obligatoire. Saisissez votre {fieldName}.",
|
|
40
|
+
"country-forms.validation.invalid": "{fieldName} invalide. Remplissez \xE0 nouveau le champ {fieldName}.",
|
|
41
|
+
"country-forms.validation.maxLength": "{fieldName} doit comporter au plus {maxLength} caract\xE8res",
|
|
42
42
|
"country-forms.validation.postalCode.BRA": "Entrez un CEP valide (ex. 01310-100)",
|
|
43
43
|
"country-forms.validation.postalCode.USA": "Entrez un code ZIP valide (ex. 10001)",
|
|
44
44
|
"country-forms.validation.postalCode.CAN": "Entrez un code postal valide (ex. K1A 0A9)",
|
|
45
|
-
"country-forms.validation.postalCode.MEX": "Entrez un C\xF3digo Postal valide (ex. 06600)"
|
|
46
|
-
"country-forms.validation.number.BRA": "Entrez un num\xE9ro valide",
|
|
47
|
-
"country-forms.validation.email": "Entrez une adresse e-mail valide",
|
|
48
|
-
"country-forms.validation.phone": "Entrez un num\xE9ro de t\xE9l\xE9phone valide",
|
|
49
|
-
"country-forms.validation.cpf": "Entrez un CPF valide",
|
|
50
|
-
"country-forms.validation.cnpj": "Entrez un CNPJ valide"
|
|
45
|
+
"country-forms.validation.postalCode.MEX": "Entrez un C\xF3digo Postal valide (ex. 06600)"
|
|
51
46
|
};
|
|
52
47
|
var fr_FR_default = bundle;
|
|
53
48
|
|
|
54
49
|
module.exports = fr_FR_default;
|
|
55
|
-
//# sourceMappingURL=fr-FR-
|
|
56
|
-
//# sourceMappingURL=fr-FR-
|
|
50
|
+
//# sourceMappingURL=fr-FR-LJIPE6BH.js.map
|
|
51
|
+
//# sourceMappingURL=fr-FR-LJIPE6BH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/i18n/messages/fr-FR.ts"],"names":[],"mappings":";;;AAKA,IAAM,MAAA,GAAqB;AAAA;AAAA,EAEzB,wCAAA,EAA0C,aAAA;AAAA,EAC1C,oCAAA,EAAsC,eAAA;AAAA,EACtC,0CAAA,EAA4C,qBAAA;AAAA,EAC5C,oCAAA,EAAsC,WAAA;AAAA,EACtC,wCAAA,EAA0C,4BAAA;AAAA,EAC1C,0CAAA,EAA4C,UAAA;AAAA,EAC5C,kCAAA,EAAoC,OAAA;AAAA,EACpC,mCAAA,EAAqC,SAAA;AAAA;AAAA,EAErC,kDAAA,EAAoD,eAAA;AAAA,EACpD,kDAAA,EAAoD,yBAAA;AAAA,EACpD,kDAAA,EAAoD,aAAA;AAAA,EACpD,kDAAA,EAAoD,WAAA;AAAA;AAAA,EAGpD,6CAAA,EAA+C,WAAA;AAAA,EAC/C,4CAAA,EAA8C,KAAA;AAAA,EAC9C,+CAAA,EAAiD,0BAAA;AAAA,EACjD,+CAAA,EAAiD,QAAA;AAAA,EACjD,+CAAA,EAAiD,iBAAA;AAAA,EACjD,yCAAA,EAA2C,QAAA;AAAA,EAC3C,yCAAA,EAA2C,iBAAA;AAAA;AAAA,EAG3C,8CAAA,EAAgD,kBAAA;AAAA,EAChD,mDAAA,EAAqD,mBAAA;AAAA,EACrD,iDAAA,EAAmD,iBAAA;AAAA,EACnD,wDAAA,EAA0D,WAAA;AAAA,EAC1D,sDAAA,EAAwD,gBAAA;AAAA,EACxD,uCAAA,EAAyC,KAAA;AAAA,EACzC,6CAAA,EAA+C,oBAAA;AAAA,EAC/C,wCAAA,EAA0C,MAAA;AAAA,EAC1C,8CAAA,EAAgD,wBAAA;AAAA,EAChD,mDAAA,EAAqD,qBAAA;AAAA;AAAA,EAGrD,mCAAA,EAAqC,iDAAA;AAAA,EACrC,kCAAA,EAAoC,qEAAA;AAAA,EACpC,oCAAA,EAAsC,8DAAA;AAAA,EACtC,yCAAA,EAA2C,sCAAA;AAAA,EAC3C,yCAAA,EAA2C,uCAAA;AAAA,EAC3C,yCAAA,EAA2C,4CAAA;AAAA,EAC3C,yCAAA,EAA2C;AAC7C,CAAA;AAEA,IAAO,aAAA,GAAQ","file":"fr-FR-LJIPE6BH.js","sourcesContent":["/**\n * French (fr-FR) i18n bundle.\n */\nimport type { I18nBundle } from '../../types/i18n'\n\nconst bundle: I18nBundle = {\n // ── Address labels ────────────────────────────────────────────────────────\n 'country-forms.address.postalCode.label': 'Code postal',\n 'country-forms.address.street.label': 'Nom de la rue',\n 'country-forms.address.street.placeholder': 'Adresse complète',\n 'country-forms.address.number.label': 'Numéro',\n 'country-forms.address.complement.label': 'Complément (facultatif)',\n 'country-forms.address.neighborhood.label': 'Quartier',\n 'country-forms.address.city.label': 'Ville',\n 'country-forms.address.state.label': 'État',\n // ── Address placeholders (per country) ────────────────────────────────────\n 'country-forms.address.postalCode.placeholder.BRA': 'ex. 01310-100',\n 'country-forms.address.postalCode.placeholder.USA': 'ex. 10001 ou 10001-1234',\n 'country-forms.address.postalCode.placeholder.CAN': 'ex. K1A 0A9',\n 'country-forms.address.postalCode.placeholder.MEX': 'ex. 06600',\n\n // ── Personal data labels (fallback) ─────────────────────────────────────\n 'country-forms.personal-data.firstName.label': 'Prénom',\n 'country-forms.personal-data.lastName.label': 'Nom',\n 'country-forms.personal-data.contactType.label': 'Contact préféré',\n 'country-forms.personal-data.contactType.email': 'E-mail',\n 'country-forms.personal-data.contactType.phone': 'Téléphone',\n 'country-forms.personal-data.email.label': 'E-mail',\n 'country-forms.personal-data.phone.label': 'Téléphone',\n\n // ── Personal data labels (BRA) ────────────────────────────────────────────\n 'country-forms.personal-data.personType.label': 'Type de personne',\n 'country-forms.personal-data.personType.individual': 'Personne physique',\n 'country-forms.personal-data.personType.business': 'Personne morale',\n 'country-forms.personal-data.firstName.label.individual': 'Prénom',\n 'country-forms.personal-data.firstName.label.business': 'Raison sociale',\n 'country-forms.personal-data.cpf.label': 'CPF',\n 'country-forms.personal-data.cpf.placeholder': 'ex. 123.456.789-09',\n 'country-forms.personal-data.cnpj.label': 'CNPJ',\n 'country-forms.personal-data.cnpj.placeholder': 'ex. 11.222.333/0001-81',\n 'country-forms.personal-data.phone.placeholder.BRA': 'ex. (11) 99999-9999',\n\n // ── Validation messages ───────────────────────────────────────────────────\n 'country-forms.validation.required': 'Champ obligatoire. Saisissez votre {fieldName}.',\n 'country-forms.validation.invalid': '{fieldName} invalide. Remplissez à nouveau le champ {fieldName}.',\n 'country-forms.validation.maxLength': '{fieldName} doit comporter au plus {maxLength} caractères',\n 'country-forms.validation.postalCode.BRA': 'Entrez un CEP valide (ex. 01310-100)',\n 'country-forms.validation.postalCode.USA': 'Entrez un code ZIP valide (ex. 10001)',\n 'country-forms.validation.postalCode.CAN': 'Entrez un code postal valide (ex. K1A 0A9)',\n 'country-forms.validation.postalCode.MEX': 'Entrez un Código Postal valide (ex. 06600)',\n}\n\nexport default bundle\n"]}
|
package/dist/index.d.mts
CHANGED
|
@@ -375,12 +375,31 @@ type I18nBundle = Record<string, string>;
|
|
|
375
375
|
* resolveLabel('country-forms.address.postalCode.label', bundle, overrides)
|
|
376
376
|
*/
|
|
377
377
|
type I18nOverrides = Record<string, string>;
|
|
378
|
+
/**
|
|
379
|
+
* Interpolation parameters for `resolveLabel`.
|
|
380
|
+
*
|
|
381
|
+
* Each entry replaces every `{key}` placeholder in the resolved message with
|
|
382
|
+
* the provided value. Numeric values are coerced via `String(value)`. Missing
|
|
383
|
+
* placeholders (i.e. a `{key}` appears in the message but no entry exists in
|
|
384
|
+
* `params`) are intentionally left untouched so the gap is visible at runtime.
|
|
385
|
+
*
|
|
386
|
+
* @example
|
|
387
|
+
* resolveLabel(
|
|
388
|
+
* 'country-forms.validation.maxLength',
|
|
389
|
+
* bundle,
|
|
390
|
+
* undefined,
|
|
391
|
+
* { fieldName: 'CEP', maxLength: 9 },
|
|
392
|
+
* )
|
|
393
|
+
* // bundle: "{fieldName} deve ter até {maxLength} caracteres"
|
|
394
|
+
* // → "CEP deve ter até 9 caracteres"
|
|
395
|
+
*/
|
|
396
|
+
type I18nParams = Record<string, string | number>;
|
|
378
397
|
|
|
379
398
|
/**
|
|
380
399
|
* A synchronous field validator function.
|
|
381
400
|
*
|
|
382
401
|
* - Returns `true` when the value is valid.
|
|
383
|
-
* - Returns an **i18n key** string (e.g. `"country-forms.validation.
|
|
402
|
+
* - Returns an **i18n key** string (e.g. `"country-forms.validation.invalid"`) when invalid.
|
|
384
403
|
* The engine passes this key to the error map; consumers resolve it via `resolveLabel`.
|
|
385
404
|
*
|
|
386
405
|
* Validators must be **pure** and **synchronous**.
|
|
@@ -779,7 +798,10 @@ declare function loadLocale(locale: string): Promise<I18nBundle>;
|
|
|
779
798
|
/**
|
|
780
799
|
* @module i18n/resolveLabel
|
|
781
800
|
*
|
|
782
|
-
* Resolves an i18n key to its display string using a three-level cascade
|
|
801
|
+
* Resolves an i18n key to its display string using a three-level cascade and,
|
|
802
|
+
* optionally, interpolates `{name}` placeholders found in the resolved string.
|
|
803
|
+
*
|
|
804
|
+
* ## Cascade
|
|
783
805
|
*
|
|
784
806
|
* 1. **Consumer override** — `overrides[key]` wins if present.
|
|
785
807
|
* 2. **Bundle value** — `bundle[key]` from `loadLocale()`.
|
|
@@ -789,10 +811,22 @@ declare function loadLocale(locale: string): Promise<I18nBundle>;
|
|
|
789
811
|
* This design lets consumers customize individual labels without forking the
|
|
790
812
|
* library or replacing the entire bundle.
|
|
791
813
|
*
|
|
814
|
+
* ## Interpolation
|
|
815
|
+
*
|
|
816
|
+
* When `params` is provided, every `{name}` placeholder in the resolved string
|
|
817
|
+
* is replaced with `String(params[name])`. Replacement is **global** — the same
|
|
818
|
+
* placeholder may appear more than once in a message and is replaced everywhere
|
|
819
|
+
* it occurs. Placeholders without a matching `params` entry are left untouched
|
|
820
|
+
* so unfulfilled substitutions remain visible to developers.
|
|
821
|
+
*
|
|
822
|
+
* Interpolation is applied after the cascade, so it works equally for override
|
|
823
|
+
* strings, bundle strings, and the raw-key fallback.
|
|
824
|
+
*
|
|
792
825
|
* @param key - i18n key (e.g. `"country-forms.address.postalCode.label"`)
|
|
793
826
|
* @param bundle - Locale bundle loaded via `loadLocale()`
|
|
794
827
|
* @param overrides - Optional consumer-supplied overrides
|
|
795
|
-
* @
|
|
828
|
+
* @param params - Optional interpolation parameters for `{name}` placeholders
|
|
829
|
+
* @returns Resolved (and optionally interpolated) display string
|
|
796
830
|
*
|
|
797
831
|
* @example
|
|
798
832
|
* const bundle = await loadLocale('pt-BR')
|
|
@@ -807,9 +841,20 @@ declare function loadLocale(locale: string): Promise<I18nBundle>;
|
|
|
807
841
|
* @example
|
|
808
842
|
* resolveLabel('country-forms.unknown.key', bundle)
|
|
809
843
|
* // → "country-forms.unknown.key" (raw key fallback)
|
|
844
|
+
*
|
|
845
|
+
* @example
|
|
846
|
+
* // bundle: { 'country-forms.validation.maxLength':
|
|
847
|
+
* // '{fieldName} deve ter até {maxLength} caracteres' }
|
|
848
|
+
* resolveLabel(
|
|
849
|
+
* 'country-forms.validation.maxLength',
|
|
850
|
+
* bundle,
|
|
851
|
+
* undefined,
|
|
852
|
+
* { fieldName: 'CEP', maxLength: 9 },
|
|
853
|
+
* )
|
|
854
|
+
* // → "CEP deve ter até 9 caracteres"
|
|
810
855
|
*/
|
|
811
856
|
|
|
812
|
-
declare function resolveLabel(key: string, bundle: I18nBundle, overrides?: I18nOverrides): string;
|
|
857
|
+
declare function resolveLabel(key: string, bundle: I18nBundle, overrides?: I18nOverrides, params?: I18nParams): string;
|
|
813
858
|
|
|
814
859
|
/**
|
|
815
860
|
* BCP 47 locale tags supported by the library's built-in translation bundles.
|
|
@@ -830,4 +875,4 @@ declare const SUPPORTED_LOCALES: readonly ["en-US", "es-MX", "fr-FR", "pt-BR"];
|
|
|
830
875
|
/** Union of BCP 47 tags with dedicated built-in bundles. */
|
|
831
876
|
type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
|
|
832
877
|
|
|
833
|
-
export { type ConditionalOperator, type ConditionalVisibility, type FieldDefinition, type FieldType, type FormErrors, type FormSchema, type FormState, type FormType, type FormValues, type FormatFn, type I18nBundle, type I18nOverrides, type InputMode, SUPPORTED_ADDRESS_COUNTRIES, SUPPORTED_LOCALES, SUPPORTED_PERSONAL_DATA_COUNTRIES, type SelectOption, type SupportedLocale, type UnformatFn, type ValidationErrors, type ValidationRules, type ValidatorFn, createFormState, formatValue, getVisibleFields, loadLocale, loadSchema, resolveFieldOptions, resolveLabel, setValue, unformatValue, validate };
|
|
878
|
+
export { type ConditionalOperator, type ConditionalVisibility, type FieldDefinition, type FieldType, type FormErrors, type FormSchema, type FormState, type FormType, type FormValues, type FormatFn, type I18nBundle, type I18nOverrides, type I18nParams, type InputMode, SUPPORTED_ADDRESS_COUNTRIES, SUPPORTED_LOCALES, SUPPORTED_PERSONAL_DATA_COUNTRIES, type SelectOption, type SupportedLocale, type UnformatFn, type ValidationErrors, type ValidationRules, type ValidatorFn, createFormState, formatValue, getVisibleFields, loadLocale, loadSchema, resolveFieldOptions, resolveLabel, setValue, unformatValue, validate };
|
package/dist/index.d.ts
CHANGED
|
@@ -375,12 +375,31 @@ type I18nBundle = Record<string, string>;
|
|
|
375
375
|
* resolveLabel('country-forms.address.postalCode.label', bundle, overrides)
|
|
376
376
|
*/
|
|
377
377
|
type I18nOverrides = Record<string, string>;
|
|
378
|
+
/**
|
|
379
|
+
* Interpolation parameters for `resolveLabel`.
|
|
380
|
+
*
|
|
381
|
+
* Each entry replaces every `{key}` placeholder in the resolved message with
|
|
382
|
+
* the provided value. Numeric values are coerced via `String(value)`. Missing
|
|
383
|
+
* placeholders (i.e. a `{key}` appears in the message but no entry exists in
|
|
384
|
+
* `params`) are intentionally left untouched so the gap is visible at runtime.
|
|
385
|
+
*
|
|
386
|
+
* @example
|
|
387
|
+
* resolveLabel(
|
|
388
|
+
* 'country-forms.validation.maxLength',
|
|
389
|
+
* bundle,
|
|
390
|
+
* undefined,
|
|
391
|
+
* { fieldName: 'CEP', maxLength: 9 },
|
|
392
|
+
* )
|
|
393
|
+
* // bundle: "{fieldName} deve ter até {maxLength} caracteres"
|
|
394
|
+
* // → "CEP deve ter até 9 caracteres"
|
|
395
|
+
*/
|
|
396
|
+
type I18nParams = Record<string, string | number>;
|
|
378
397
|
|
|
379
398
|
/**
|
|
380
399
|
* A synchronous field validator function.
|
|
381
400
|
*
|
|
382
401
|
* - Returns `true` when the value is valid.
|
|
383
|
-
* - Returns an **i18n key** string (e.g. `"country-forms.validation.
|
|
402
|
+
* - Returns an **i18n key** string (e.g. `"country-forms.validation.invalid"`) when invalid.
|
|
384
403
|
* The engine passes this key to the error map; consumers resolve it via `resolveLabel`.
|
|
385
404
|
*
|
|
386
405
|
* Validators must be **pure** and **synchronous**.
|
|
@@ -779,7 +798,10 @@ declare function loadLocale(locale: string): Promise<I18nBundle>;
|
|
|
779
798
|
/**
|
|
780
799
|
* @module i18n/resolveLabel
|
|
781
800
|
*
|
|
782
|
-
* Resolves an i18n key to its display string using a three-level cascade
|
|
801
|
+
* Resolves an i18n key to its display string using a three-level cascade and,
|
|
802
|
+
* optionally, interpolates `{name}` placeholders found in the resolved string.
|
|
803
|
+
*
|
|
804
|
+
* ## Cascade
|
|
783
805
|
*
|
|
784
806
|
* 1. **Consumer override** — `overrides[key]` wins if present.
|
|
785
807
|
* 2. **Bundle value** — `bundle[key]` from `loadLocale()`.
|
|
@@ -789,10 +811,22 @@ declare function loadLocale(locale: string): Promise<I18nBundle>;
|
|
|
789
811
|
* This design lets consumers customize individual labels without forking the
|
|
790
812
|
* library or replacing the entire bundle.
|
|
791
813
|
*
|
|
814
|
+
* ## Interpolation
|
|
815
|
+
*
|
|
816
|
+
* When `params` is provided, every `{name}` placeholder in the resolved string
|
|
817
|
+
* is replaced with `String(params[name])`. Replacement is **global** — the same
|
|
818
|
+
* placeholder may appear more than once in a message and is replaced everywhere
|
|
819
|
+
* it occurs. Placeholders without a matching `params` entry are left untouched
|
|
820
|
+
* so unfulfilled substitutions remain visible to developers.
|
|
821
|
+
*
|
|
822
|
+
* Interpolation is applied after the cascade, so it works equally for override
|
|
823
|
+
* strings, bundle strings, and the raw-key fallback.
|
|
824
|
+
*
|
|
792
825
|
* @param key - i18n key (e.g. `"country-forms.address.postalCode.label"`)
|
|
793
826
|
* @param bundle - Locale bundle loaded via `loadLocale()`
|
|
794
827
|
* @param overrides - Optional consumer-supplied overrides
|
|
795
|
-
* @
|
|
828
|
+
* @param params - Optional interpolation parameters for `{name}` placeholders
|
|
829
|
+
* @returns Resolved (and optionally interpolated) display string
|
|
796
830
|
*
|
|
797
831
|
* @example
|
|
798
832
|
* const bundle = await loadLocale('pt-BR')
|
|
@@ -807,9 +841,20 @@ declare function loadLocale(locale: string): Promise<I18nBundle>;
|
|
|
807
841
|
* @example
|
|
808
842
|
* resolveLabel('country-forms.unknown.key', bundle)
|
|
809
843
|
* // → "country-forms.unknown.key" (raw key fallback)
|
|
844
|
+
*
|
|
845
|
+
* @example
|
|
846
|
+
* // bundle: { 'country-forms.validation.maxLength':
|
|
847
|
+
* // '{fieldName} deve ter até {maxLength} caracteres' }
|
|
848
|
+
* resolveLabel(
|
|
849
|
+
* 'country-forms.validation.maxLength',
|
|
850
|
+
* bundle,
|
|
851
|
+
* undefined,
|
|
852
|
+
* { fieldName: 'CEP', maxLength: 9 },
|
|
853
|
+
* )
|
|
854
|
+
* // → "CEP deve ter até 9 caracteres"
|
|
810
855
|
*/
|
|
811
856
|
|
|
812
|
-
declare function resolveLabel(key: string, bundle: I18nBundle, overrides?: I18nOverrides): string;
|
|
857
|
+
declare function resolveLabel(key: string, bundle: I18nBundle, overrides?: I18nOverrides, params?: I18nParams): string;
|
|
813
858
|
|
|
814
859
|
/**
|
|
815
860
|
* BCP 47 locale tags supported by the library's built-in translation bundles.
|
|
@@ -830,4 +875,4 @@ declare const SUPPORTED_LOCALES: readonly ["en-US", "es-MX", "fr-FR", "pt-BR"];
|
|
|
830
875
|
/** Union of BCP 47 tags with dedicated built-in bundles. */
|
|
831
876
|
type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
|
|
832
877
|
|
|
833
|
-
export { type ConditionalOperator, type ConditionalVisibility, type FieldDefinition, type FieldType, type FormErrors, type FormSchema, type FormState, type FormType, type FormValues, type FormatFn, type I18nBundle, type I18nOverrides, type InputMode, SUPPORTED_ADDRESS_COUNTRIES, SUPPORTED_LOCALES, SUPPORTED_PERSONAL_DATA_COUNTRIES, type SelectOption, type SupportedLocale, type UnformatFn, type ValidationErrors, type ValidationRules, type ValidatorFn, createFormState, formatValue, getVisibleFields, loadLocale, loadSchema, resolveFieldOptions, resolveLabel, setValue, unformatValue, validate };
|
|
878
|
+
export { type ConditionalOperator, type ConditionalVisibility, type FieldDefinition, type FieldType, type FormErrors, type FormSchema, type FormState, type FormType, type FormValues, type FormatFn, type I18nBundle, type I18nOverrides, type I18nParams, type InputMode, SUPPORTED_ADDRESS_COUNTRIES, SUPPORTED_LOCALES, SUPPORTED_PERSONAL_DATA_COUNTRIES, type SelectOption, type SupportedLocale, type UnformatFn, type ValidationErrors, type ValidationRules, type ValidatorFn, createFormState, formatValue, getVisibleFields, loadLocale, loadSchema, resolveFieldOptions, resolveLabel, setValue, unformatValue, validate };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkYB6VNXLI_js = require('./chunk-YB6VNXLI.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkCFX5EF4R_js = require('./chunk-CFX5EF4R.js');
|
|
5
5
|
var chunkBQPGLWMB_js = require('./chunk-BQPGLWMB.js');
|
|
6
6
|
|
|
7
7
|
// src/engine/createFormState.ts
|
|
@@ -97,7 +97,7 @@ function validateField(field, value) {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
if (rules.customValidator !== void 0) {
|
|
100
|
-
const fn =
|
|
100
|
+
const fn = chunkCFX5EF4R_js.resolveValidator(rules.customValidator);
|
|
101
101
|
const result = fn(value);
|
|
102
102
|
if (result === true) {
|
|
103
103
|
return null;
|
|
@@ -225,8 +225,8 @@ async function loadAddressSchema(iso3) {
|
|
|
225
225
|
switch (iso3) {
|
|
226
226
|
case "BRA": {
|
|
227
227
|
const [{ default: schema }] = await Promise.all([
|
|
228
|
-
import('./BRA-
|
|
229
|
-
import('./bra-
|
|
228
|
+
import('./BRA-VIVRV7X7.js'),
|
|
229
|
+
import('./bra-MHTXSNLA.js'),
|
|
230
230
|
import('./bra-KEBYAD75.js'),
|
|
231
231
|
import('./bra-states-SQMU4WTB.js')
|
|
232
232
|
]);
|
|
@@ -235,7 +235,7 @@ async function loadAddressSchema(iso3) {
|
|
|
235
235
|
case "CAN": {
|
|
236
236
|
const [{ default: schema }] = await Promise.all([
|
|
237
237
|
import('./CAN-NGS6AUBG.js'),
|
|
238
|
-
import('./can-
|
|
238
|
+
import('./can-LLJ4A5Y5.js'),
|
|
239
239
|
import('./can-B5ME2ZFN.js'),
|
|
240
240
|
import('./can-provinces-6NOHMW37.js')
|
|
241
241
|
]);
|
|
@@ -244,7 +244,7 @@ async function loadAddressSchema(iso3) {
|
|
|
244
244
|
case "MEX": {
|
|
245
245
|
const [{ default: schema }] = await Promise.all([
|
|
246
246
|
import('./MEX-3PMZHDQP.js'),
|
|
247
|
-
import('./mex-
|
|
247
|
+
import('./mex-5BKCF6LS.js'),
|
|
248
248
|
import('./mex-states-GTCRN4NS.js')
|
|
249
249
|
]);
|
|
250
250
|
return schema;
|
|
@@ -252,7 +252,7 @@ async function loadAddressSchema(iso3) {
|
|
|
252
252
|
case "USA": {
|
|
253
253
|
const [{ default: schema }] = await Promise.all([
|
|
254
254
|
import('./USA-UBWW5NQB.js'),
|
|
255
|
-
import('./usa-
|
|
255
|
+
import('./usa-3AM7UFVG.js'),
|
|
256
256
|
import('./usa-LXT6WW64.js'),
|
|
257
257
|
import('./usa-states-EBFT4LUQ.js')
|
|
258
258
|
]);
|
|
@@ -270,7 +270,7 @@ async function loadPersonalDataSchema(iso3) {
|
|
|
270
270
|
case "BRA": {
|
|
271
271
|
const [{ default: schema }] = await Promise.all([
|
|
272
272
|
import('./BRA-PMVV6KOM.js'),
|
|
273
|
-
import('./bra-
|
|
273
|
+
import('./bra-MHTXSNLA.js'),
|
|
274
274
|
import('./bra-KEBYAD75.js')
|
|
275
275
|
]);
|
|
276
276
|
return schema;
|
|
@@ -294,38 +294,50 @@ async function loadSchema(iso3, formType) {
|
|
|
294
294
|
async function loadLocale(locale) {
|
|
295
295
|
switch (locale) {
|
|
296
296
|
case "en-US":
|
|
297
|
-
return import('./en-US-
|
|
297
|
+
return import('./en-US-RLEM27ZZ.js').then((m) => m.default);
|
|
298
298
|
case "es-MX":
|
|
299
|
-
return import('./es-MX-
|
|
299
|
+
return import('./es-MX-K5MWKMJW.js').then((m) => m.default);
|
|
300
300
|
case "fr-FR":
|
|
301
|
-
return import('./fr-FR-
|
|
301
|
+
return import('./fr-FR-LJIPE6BH.js').then((m) => m.default);
|
|
302
302
|
case "pt-BR":
|
|
303
|
-
return import('./pt-BR-
|
|
303
|
+
return import('./pt-BR-74IZNREP.js').then((m) => m.default);
|
|
304
304
|
}
|
|
305
305
|
const lang = locale.split("-")[0]?.toLowerCase();
|
|
306
306
|
switch (lang) {
|
|
307
307
|
case "en":
|
|
308
|
-
return import('./en-US-
|
|
308
|
+
return import('./en-US-RLEM27ZZ.js').then((m) => m.default);
|
|
309
309
|
case "es":
|
|
310
|
-
return import('./es-MX-
|
|
310
|
+
return import('./es-MX-K5MWKMJW.js').then((m) => m.default);
|
|
311
311
|
case "fr":
|
|
312
|
-
return import('./fr-FR-
|
|
312
|
+
return import('./fr-FR-LJIPE6BH.js').then((m) => m.default);
|
|
313
313
|
case "pt":
|
|
314
|
-
return import('./pt-BR-
|
|
314
|
+
return import('./pt-BR-74IZNREP.js').then((m) => m.default);
|
|
315
315
|
default:
|
|
316
|
-
return import('./en-US-
|
|
316
|
+
return import('./en-US-RLEM27ZZ.js').then((m) => m.default);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
// src/i18n/resolveLabel.ts
|
|
321
|
-
|
|
321
|
+
var PLACEHOLDER_REGEX = /\{(\w+)\}/g;
|
|
322
|
+
function resolveLabel(key, bundle, overrides, params) {
|
|
323
|
+
let resolved = key;
|
|
322
324
|
if (overrides !== void 0) {
|
|
323
325
|
const override = overrides[key];
|
|
324
|
-
if (override !== void 0)
|
|
326
|
+
if (override !== void 0) {
|
|
327
|
+
resolved = override;
|
|
328
|
+
} else {
|
|
329
|
+
const value = bundle[key];
|
|
330
|
+
if (value !== void 0) resolved = value;
|
|
331
|
+
}
|
|
332
|
+
} else {
|
|
333
|
+
const value = bundle[key];
|
|
334
|
+
if (value !== void 0) resolved = value;
|
|
325
335
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
336
|
+
if (params === void 0) return resolved;
|
|
337
|
+
return resolved.replace(PLACEHOLDER_REGEX, (match, name) => {
|
|
338
|
+
const replacement = params[name];
|
|
339
|
+
return replacement === void 0 ? match : String(replacement);
|
|
340
|
+
});
|
|
329
341
|
}
|
|
330
342
|
|
|
331
343
|
// src/i18n/types.ts
|