@swan-io/shared-business 18.1.1 → 18.1.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.
- package/package.json +3 -3
- package/src/constants/__tests__/countries.test.d.ts +1 -0
- package/src/constants/__tests__/countries.test.js +22 -0
- package/src/constants/countries.d.ts +13 -4
- package/src/constants/countries.js +12 -0
- package/src/hooks/useFilesUploader.js +3 -1
- package/src/locales/de.json +4 -3
- package/src/locales/en.json +4 -3
- package/src/locales/es.json +4 -3
- package/src/locales/fi.json +4 -3
- package/src/locales/fr.json +4 -3
- package/src/locales/it.json +4 -3
- package/src/locales/nl.json +5 -4
- package/src/locales/pt.json +4 -3
- package/src/utils/validation.js +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swan-io/shared-business",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">22.12.0"
|
|
6
6
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react": ">=19.0.0",
|
|
29
29
|
"react-dom": ">=19.0.0",
|
|
30
30
|
"react-native-web": ">=0.21.2",
|
|
31
|
-
"@swan-io/lake": "18.1.
|
|
31
|
+
"@swan-io/lake": "18.1.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@formatjs/intl": "^4.1.16",
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"react-dom": "^19.2.7",
|
|
54
54
|
"react-native-web": "^0.21.2",
|
|
55
55
|
"type-fest": "^5.8.0",
|
|
56
|
-
"@swan-io/lake": "18.1.
|
|
56
|
+
"@swan-io/lake": "18.1.2"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { describe, expect, test } from "vitest";
|
|
2
|
+
import { allCountries, isTerritoryCCA3, nationalities, sovereignCountries } from "../countries";
|
|
3
|
+
describe("sovereignCountries", () => {
|
|
4
|
+
test("excludes territories", () => {
|
|
5
|
+
for (const cca3 of ["MTQ", "REU", "GLP", "GUF", "PRI", "GRL"]) {
|
|
6
|
+
expect(isTerritoryCCA3(cca3)).toBe(true);
|
|
7
|
+
expect(sovereignCountries).not.toContain(cca3);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
test("keeps sovereign countries", () => {
|
|
11
|
+
for (const cca3 of ["FRA", "DEU", "USA", "DNK"]) {
|
|
12
|
+
expect(isTerritoryCCA3(cca3)).toBe(false);
|
|
13
|
+
expect(sovereignCountries).toContain(cca3);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
test("matches nationalities", () => {
|
|
17
|
+
expect(new Set(sovereignCountries)).toEqual(new Set(nationalities.map(({ cca3 }) => cca3)));
|
|
18
|
+
});
|
|
19
|
+
test("is a subset of allCountries", () => {
|
|
20
|
+
expect(sovereignCountries.every(cca3 => allCountries.includes(cca3))).toBe(true);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -769,6 +769,13 @@ declare const readonlyCountries: readonly [{
|
|
|
769
769
|
readonly idd: "264";
|
|
770
770
|
readonly flag: "🇳🇦";
|
|
771
771
|
readonly isNationality: true;
|
|
772
|
+
}, {
|
|
773
|
+
readonly name: "Nauru";
|
|
774
|
+
readonly cca2: "NR";
|
|
775
|
+
readonly cca3: "NRU";
|
|
776
|
+
readonly idd: "674";
|
|
777
|
+
readonly flag: "🇳🇷";
|
|
778
|
+
readonly isNationality: true;
|
|
772
779
|
}, {
|
|
773
780
|
readonly name: "Nederland";
|
|
774
781
|
readonly cca2: "NL";
|
|
@@ -1740,10 +1747,10 @@ export declare const getCCA2forCCA3: (cca3: CountryCCA3) => CountryCCA2;
|
|
|
1740
1747
|
export declare const getCCA3forCCA2: (cca2: CountryCCA2) => CountryCCA3;
|
|
1741
1748
|
export declare const companyWithUboCountries: readonly ["BEL", "DEU", "FRA", "ITA", "LTU", "LUX", "NLD"];
|
|
1742
1749
|
export type CompanyWithUboCountryCCA3 = (typeof companyWithUboCountries)[number];
|
|
1743
|
-
export declare const allCountries: ("ABW" | "AFG" | "AGO" | "AIA" | "ALA" | "ALB" | "AND" | "ARE" | "ARG" | "ARM" | "ASM" | "ATA" | "ATF" | "ATG" | "AUS" | "AUT" | "AZE" | "BDI" | "BEL" | "BEN" | "BES" | "BFA" | "BGD" | "BGR" | "BHR" | "BHS" | "BIH" | "BLM" | "BLR" | "BLZ" | "BMU" | "BOL" | "BRA" | "BRB" | "BRN" | "BTN" | "BVT" | "BWA" | "CAF" | "CAN" | "CCK" | "CHE" | "CHL" | "CHN" | "CIV" | "CMR" | "COD" | "COG" | "COK" | "COL" | "COM" | "CPV" | "CRI" | "CUB" | "CUW" | "CXR" | "CYM" | "CYP" | "CZE" | "DEU" | "DJI" | "DMA" | "DNK" | "DOM" | "DZA" | "ECU" | "EGY" | "ERI" | "ESH" | "ESP" | "EST" | "ETH" | "FIN" | "FJI" | "FLK" | "FRA" | "FRO" | "FSM" | "GAB" | "GBR" | "GEO" | "GGY" | "GHA" | "GIB" | "GIN" | "GLP" | "GMB" | "GNB" | "GNQ" | "GRC" | "GRD" | "GRL" | "GTM" | "GUF" | "GUM" | "GUY" | "HKG" | "HMD" | "HND" | "HRV" | "HTI" | "HUN" | "IDN" | "IMN" | "IND" | "IRL" | "IRN" | "IRQ" | "ISL" | "ISR" | "ITA" | "JAM" | "JEY" | "JOR" | "JPN" | "KAZ" | "KEN" | "KGZ" | "KHM" | "KIR" | "KNA" | "KOR" | "KWT" | "LAO" | "LBN" | "LBR" | "LBY" | "LCA" | "LIE" | "LKA" | "LSO" | "LTU" | "LUX" | "LVA" | "MAC" | "MAF" | "MAR" | "MCO" | "MDA" | "MDG" | "MDV" | "MEX" | "MHL" | "MKD" | "MLI" | "MLT" | "MMR" | "MNE" | "MNG" | "MNP" | "MOZ" | "MRT" | "MSR" | "MTQ" | "MUS" | "MWI" | "MYS" | "MYT" | "NAM" | "NCL" | "NER" | "NFK" | "NGA" | "NIC" | "NIU" | "NLD" | "NOR" | "NPL" | "NZL" | "OMN" | "PAK" | "PAN" | "PCN" | "PER" | "PHL" | "PLW" | "PNG" | "POL" | "PRI" | "PRK" | "PRT" | "PRY" | "PSE" | "PYF" | "QAT" | "REU" | "ROU" | "RUS" | "RWA" | "SAU" | "SDN" | "SEN" | "SGP" | "SGS" | "SLB" | "SLE" | "SLV" | "SMR" | "SOM" | "SPM" | "SRB" | "SSD" | "STP" | "SUR" | "SVK" | "SVN" | "SWE" | "SWZ" | "SYC" | "SYR" | "TCA" | "TCD" | "TGO" | "THA" | "TJK" | "TKM" | "TLS" | "TON" | "TTO" | "TUN" | "TUR" | "TUV" | "TWN" | "TZA" | "UGA" | "UKR" | "UMI" | "URY" | "USA" | "UZB" | "VAT" | "VCT" | "VEN" | "VGB" | "VIR" | "VNM" | "VUT" | "WLF" | "WSM" | "XKX" | "YEM" | "ZAF" | "ZMB" | "ZWE")[];
|
|
1750
|
+
export declare const allCountries: ("ABW" | "AFG" | "AGO" | "AIA" | "ALA" | "ALB" | "AND" | "ARE" | "ARG" | "ARM" | "ASM" | "ATA" | "ATF" | "ATG" | "AUS" | "AUT" | "AZE" | "BDI" | "BEL" | "BEN" | "BES" | "BFA" | "BGD" | "BGR" | "BHR" | "BHS" | "BIH" | "BLM" | "BLR" | "BLZ" | "BMU" | "BOL" | "BRA" | "BRB" | "BRN" | "BTN" | "BVT" | "BWA" | "CAF" | "CAN" | "CCK" | "CHE" | "CHL" | "CHN" | "CIV" | "CMR" | "COD" | "COG" | "COK" | "COL" | "COM" | "CPV" | "CRI" | "CUB" | "CUW" | "CXR" | "CYM" | "CYP" | "CZE" | "DEU" | "DJI" | "DMA" | "DNK" | "DOM" | "DZA" | "ECU" | "EGY" | "ERI" | "ESH" | "ESP" | "EST" | "ETH" | "FIN" | "FJI" | "FLK" | "FRA" | "FRO" | "FSM" | "GAB" | "GBR" | "GEO" | "GGY" | "GHA" | "GIB" | "GIN" | "GLP" | "GMB" | "GNB" | "GNQ" | "GRC" | "GRD" | "GRL" | "GTM" | "GUF" | "GUM" | "GUY" | "HKG" | "HMD" | "HND" | "HRV" | "HTI" | "HUN" | "IDN" | "IMN" | "IND" | "IRL" | "IRN" | "IRQ" | "ISL" | "ISR" | "ITA" | "JAM" | "JEY" | "JOR" | "JPN" | "KAZ" | "KEN" | "KGZ" | "KHM" | "KIR" | "KNA" | "KOR" | "KWT" | "LAO" | "LBN" | "LBR" | "LBY" | "LCA" | "LIE" | "LKA" | "LSO" | "LTU" | "LUX" | "LVA" | "MAC" | "MAF" | "MAR" | "MCO" | "MDA" | "MDG" | "MDV" | "MEX" | "MHL" | "MKD" | "MLI" | "MLT" | "MMR" | "MNE" | "MNG" | "MNP" | "MOZ" | "MRT" | "MSR" | "MTQ" | "MUS" | "MWI" | "MYS" | "MYT" | "NAM" | "NCL" | "NER" | "NFK" | "NGA" | "NIC" | "NIU" | "NLD" | "NOR" | "NPL" | "NRU" | "NZL" | "OMN" | "PAK" | "PAN" | "PCN" | "PER" | "PHL" | "PLW" | "PNG" | "POL" | "PRI" | "PRK" | "PRT" | "PRY" | "PSE" | "PYF" | "QAT" | "REU" | "ROU" | "RUS" | "RWA" | "SAU" | "SDN" | "SEN" | "SGP" | "SGS" | "SLB" | "SLE" | "SLV" | "SMR" | "SOM" | "SPM" | "SRB" | "SSD" | "STP" | "SUR" | "SVK" | "SVN" | "SWE" | "SWZ" | "SYC" | "SYR" | "TCA" | "TCD" | "TGO" | "THA" | "TJK" | "TKM" | "TLS" | "TON" | "TTO" | "TUN" | "TUR" | "TUV" | "TWN" | "TZA" | "UGA" | "UKR" | "UMI" | "URY" | "USA" | "UZB" | "VAT" | "VCT" | "VEN" | "VGB" | "VIR" | "VNM" | "VUT" | "WLF" | "WSM" | "XKX" | "YEM" | "ZAF" | "ZMB" | "ZWE")[];
|
|
1744
1751
|
export declare const france: {
|
|
1745
|
-
readonly cca2: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SI" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW";
|
|
1746
|
-
readonly cca3: "ABW" | "AFG" | "AGO" | "AIA" | "ALA" | "ALB" | "AND" | "ARE" | "ARG" | "ARM" | "ASM" | "ATA" | "ATF" | "ATG" | "AUS" | "AUT" | "AZE" | "BDI" | "BEL" | "BEN" | "BES" | "BFA" | "BGD" | "BGR" | "BHR" | "BHS" | "BIH" | "BLM" | "BLR" | "BLZ" | "BMU" | "BOL" | "BRA" | "BRB" | "BRN" | "BTN" | "BVT" | "BWA" | "CAF" | "CAN" | "CCK" | "CHE" | "CHL" | "CHN" | "CIV" | "CMR" | "COD" | "COG" | "COK" | "COL" | "COM" | "CPV" | "CRI" | "CUB" | "CUW" | "CXR" | "CYM" | "CYP" | "CZE" | "DEU" | "DJI" | "DMA" | "DNK" | "DOM" | "DZA" | "ECU" | "EGY" | "ERI" | "ESH" | "ESP" | "EST" | "ETH" | "FIN" | "FJI" | "FLK" | "FRA" | "FRO" | "FSM" | "GAB" | "GBR" | "GEO" | "GGY" | "GHA" | "GIB" | "GIN" | "GLP" | "GMB" | "GNB" | "GNQ" | "GRC" | "GRD" | "GRL" | "GTM" | "GUF" | "GUM" | "GUY" | "HKG" | "HMD" | "HND" | "HRV" | "HTI" | "HUN" | "IDN" | "IMN" | "IND" | "IRL" | "IRN" | "IRQ" | "ISL" | "ISR" | "ITA" | "JAM" | "JEY" | "JOR" | "JPN" | "KAZ" | "KEN" | "KGZ" | "KHM" | "KIR" | "KNA" | "KOR" | "KWT" | "LAO" | "LBN" | "LBR" | "LBY" | "LCA" | "LIE" | "LKA" | "LSO" | "LTU" | "LUX" | "LVA" | "MAC" | "MAF" | "MAR" | "MCO" | "MDA" | "MDG" | "MDV" | "MEX" | "MHL" | "MKD" | "MLI" | "MLT" | "MMR" | "MNE" | "MNG" | "MNP" | "MOZ" | "MRT" | "MSR" | "MTQ" | "MUS" | "MWI" | "MYS" | "MYT" | "NAM" | "NCL" | "NER" | "NFK" | "NGA" | "NIC" | "NIU" | "NLD" | "NOR" | "NPL" | "NZL" | "OMN" | "PAK" | "PAN" | "PCN" | "PER" | "PHL" | "PLW" | "PNG" | "POL" | "PRI" | "PRK" | "PRT" | "PRY" | "PSE" | "PYF" | "QAT" | "REU" | "ROU" | "RUS" | "RWA" | "SAU" | "SDN" | "SEN" | "SGP" | "SGS" | "SLB" | "SLE" | "SLV" | "SMR" | "SOM" | "SPM" | "SRB" | "SSD" | "STP" | "SUR" | "SVK" | "SVN" | "SWE" | "SWZ" | "SYC" | "SYR" | "TCA" | "TCD" | "TGO" | "THA" | "TJK" | "TKM" | "TLS" | "TON" | "TTO" | "TUN" | "TUR" | "TUV" | "TWN" | "TZA" | "UGA" | "UKR" | "UMI" | "URY" | "USA" | "UZB" | "VAT" | "VCT" | "VEN" | "VGB" | "VIR" | "VNM" | "VUT" | "WLF" | "WSM" | "XKX" | "YEM" | "ZAF" | "ZMB" | "ZWE";
|
|
1752
|
+
readonly cca2: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SI" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW";
|
|
1753
|
+
readonly cca3: "ABW" | "AFG" | "AGO" | "AIA" | "ALA" | "ALB" | "AND" | "ARE" | "ARG" | "ARM" | "ASM" | "ATA" | "ATF" | "ATG" | "AUS" | "AUT" | "AZE" | "BDI" | "BEL" | "BEN" | "BES" | "BFA" | "BGD" | "BGR" | "BHR" | "BHS" | "BIH" | "BLM" | "BLR" | "BLZ" | "BMU" | "BOL" | "BRA" | "BRB" | "BRN" | "BTN" | "BVT" | "BWA" | "CAF" | "CAN" | "CCK" | "CHE" | "CHL" | "CHN" | "CIV" | "CMR" | "COD" | "COG" | "COK" | "COL" | "COM" | "CPV" | "CRI" | "CUB" | "CUW" | "CXR" | "CYM" | "CYP" | "CZE" | "DEU" | "DJI" | "DMA" | "DNK" | "DOM" | "DZA" | "ECU" | "EGY" | "ERI" | "ESH" | "ESP" | "EST" | "ETH" | "FIN" | "FJI" | "FLK" | "FRA" | "FRO" | "FSM" | "GAB" | "GBR" | "GEO" | "GGY" | "GHA" | "GIB" | "GIN" | "GLP" | "GMB" | "GNB" | "GNQ" | "GRC" | "GRD" | "GRL" | "GTM" | "GUF" | "GUM" | "GUY" | "HKG" | "HMD" | "HND" | "HRV" | "HTI" | "HUN" | "IDN" | "IMN" | "IND" | "IRL" | "IRN" | "IRQ" | "ISL" | "ISR" | "ITA" | "JAM" | "JEY" | "JOR" | "JPN" | "KAZ" | "KEN" | "KGZ" | "KHM" | "KIR" | "KNA" | "KOR" | "KWT" | "LAO" | "LBN" | "LBR" | "LBY" | "LCA" | "LIE" | "LKA" | "LSO" | "LTU" | "LUX" | "LVA" | "MAC" | "MAF" | "MAR" | "MCO" | "MDA" | "MDG" | "MDV" | "MEX" | "MHL" | "MKD" | "MLI" | "MLT" | "MMR" | "MNE" | "MNG" | "MNP" | "MOZ" | "MRT" | "MSR" | "MTQ" | "MUS" | "MWI" | "MYS" | "MYT" | "NAM" | "NCL" | "NER" | "NFK" | "NGA" | "NIC" | "NIU" | "NLD" | "NOR" | "NPL" | "NRU" | "NZL" | "OMN" | "PAK" | "PAN" | "PCN" | "PER" | "PHL" | "PLW" | "PNG" | "POL" | "PRI" | "PRK" | "PRT" | "PRY" | "PSE" | "PYF" | "QAT" | "REU" | "ROU" | "RUS" | "RWA" | "SAU" | "SDN" | "SEN" | "SGP" | "SGS" | "SLB" | "SLE" | "SLV" | "SMR" | "SOM" | "SPM" | "SRB" | "SSD" | "STP" | "SUR" | "SVK" | "SVN" | "SWE" | "SWZ" | "SYC" | "SYR" | "TCA" | "TCD" | "TGO" | "THA" | "TJK" | "TKM" | "TLS" | "TON" | "TTO" | "TUN" | "TUR" | "TUV" | "TWN" | "TZA" | "UGA" | "UKR" | "UMI" | "URY" | "USA" | "UZB" | "VAT" | "VCT" | "VEN" | "VGB" | "VIR" | "VNM" | "VUT" | "WLF" | "WSM" | "XKX" | "YEM" | "ZAF" | "ZMB" | "ZWE";
|
|
1747
1754
|
name: string;
|
|
1748
1755
|
deburr: string;
|
|
1749
1756
|
idd: string;
|
|
@@ -1751,7 +1758,9 @@ export declare const france: {
|
|
|
1751
1758
|
flag: string;
|
|
1752
1759
|
isNationality: boolean;
|
|
1753
1760
|
};
|
|
1754
|
-
export declare const
|
|
1761
|
+
export declare const isTerritoryCCA3: (cca3: CountryCCA3) => boolean;
|
|
1762
|
+
export declare const sovereignCountries: ("ABW" | "AFG" | "AGO" | "AIA" | "ALA" | "ALB" | "AND" | "ARE" | "ARG" | "ARM" | "ASM" | "ATA" | "ATF" | "ATG" | "AUS" | "AUT" | "AZE" | "BDI" | "BEL" | "BEN" | "BES" | "BFA" | "BGD" | "BGR" | "BHR" | "BHS" | "BIH" | "BLM" | "BLR" | "BLZ" | "BMU" | "BOL" | "BRA" | "BRB" | "BRN" | "BTN" | "BVT" | "BWA" | "CAF" | "CAN" | "CCK" | "CHE" | "CHL" | "CHN" | "CIV" | "CMR" | "COD" | "COG" | "COK" | "COL" | "COM" | "CPV" | "CRI" | "CUB" | "CUW" | "CXR" | "CYM" | "CYP" | "CZE" | "DEU" | "DJI" | "DMA" | "DNK" | "DOM" | "DZA" | "ECU" | "EGY" | "ERI" | "ESH" | "ESP" | "EST" | "ETH" | "FIN" | "FJI" | "FLK" | "FRA" | "FRO" | "FSM" | "GAB" | "GBR" | "GEO" | "GGY" | "GHA" | "GIB" | "GIN" | "GLP" | "GMB" | "GNB" | "GNQ" | "GRC" | "GRD" | "GRL" | "GTM" | "GUF" | "GUM" | "GUY" | "HKG" | "HMD" | "HND" | "HRV" | "HTI" | "HUN" | "IDN" | "IMN" | "IND" | "IRL" | "IRN" | "IRQ" | "ISL" | "ISR" | "ITA" | "JAM" | "JEY" | "JOR" | "JPN" | "KAZ" | "KEN" | "KGZ" | "KHM" | "KIR" | "KNA" | "KOR" | "KWT" | "LAO" | "LBN" | "LBR" | "LBY" | "LCA" | "LIE" | "LKA" | "LSO" | "LTU" | "LUX" | "LVA" | "MAC" | "MAF" | "MAR" | "MCO" | "MDA" | "MDG" | "MDV" | "MEX" | "MHL" | "MKD" | "MLI" | "MLT" | "MMR" | "MNE" | "MNG" | "MNP" | "MOZ" | "MRT" | "MSR" | "MTQ" | "MUS" | "MWI" | "MYS" | "MYT" | "NAM" | "NCL" | "NER" | "NFK" | "NGA" | "NIC" | "NIU" | "NLD" | "NOR" | "NPL" | "NRU" | "NZL" | "OMN" | "PAK" | "PAN" | "PCN" | "PER" | "PHL" | "PLW" | "PNG" | "POL" | "PRI" | "PRK" | "PRT" | "PRY" | "PSE" | "PYF" | "QAT" | "REU" | "ROU" | "RUS" | "RWA" | "SAU" | "SDN" | "SEN" | "SGP" | "SGS" | "SLB" | "SLE" | "SLV" | "SMR" | "SOM" | "SPM" | "SRB" | "SSD" | "STP" | "SUR" | "SVK" | "SVN" | "SWE" | "SWZ" | "SYC" | "SYR" | "TCA" | "TCD" | "TGO" | "THA" | "TJK" | "TKM" | "TLS" | "TON" | "TTO" | "TUN" | "TUR" | "TUV" | "TWN" | "TZA" | "UGA" | "UKR" | "UMI" | "URY" | "USA" | "UZB" | "VAT" | "VCT" | "VEN" | "VGB" | "VIR" | "VNM" | "VUT" | "WLF" | "WSM" | "XKX" | "YEM" | "ZAF" | "ZMB" | "ZWE")[];
|
|
1763
|
+
export declare const phoneCountries: ("ABW" | "AFG" | "AGO" | "AIA" | "ALA" | "ALB" | "AND" | "ARE" | "ARG" | "ARM" | "ASM" | "ATA" | "ATF" | "ATG" | "AUS" | "AUT" | "AZE" | "BDI" | "BEL" | "BEN" | "BES" | "BFA" | "BGD" | "BGR" | "BHR" | "BHS" | "BIH" | "BLM" | "BLR" | "BLZ" | "BMU" | "BOL" | "BRA" | "BRB" | "BRN" | "BTN" | "BVT" | "BWA" | "CAF" | "CAN" | "CCK" | "CHE" | "CHL" | "CHN" | "CIV" | "CMR" | "COD" | "COG" | "COK" | "COL" | "COM" | "CPV" | "CRI" | "CUB" | "CUW" | "CXR" | "CYM" | "CYP" | "CZE" | "DEU" | "DJI" | "DMA" | "DNK" | "DOM" | "DZA" | "ECU" | "EGY" | "ERI" | "ESH" | "ESP" | "EST" | "ETH" | "FIN" | "FJI" | "FLK" | "FRA" | "FRO" | "FSM" | "GAB" | "GBR" | "GEO" | "GGY" | "GHA" | "GIB" | "GIN" | "GLP" | "GMB" | "GNB" | "GNQ" | "GRC" | "GRD" | "GRL" | "GTM" | "GUF" | "GUM" | "GUY" | "HKG" | "HMD" | "HND" | "HRV" | "HTI" | "HUN" | "IDN" | "IMN" | "IND" | "IRL" | "IRN" | "IRQ" | "ISL" | "ISR" | "ITA" | "JAM" | "JEY" | "JOR" | "JPN" | "KAZ" | "KEN" | "KGZ" | "KHM" | "KIR" | "KNA" | "KOR" | "KWT" | "LAO" | "LBN" | "LBR" | "LBY" | "LCA" | "LIE" | "LKA" | "LSO" | "LTU" | "LUX" | "LVA" | "MAC" | "MAF" | "MAR" | "MCO" | "MDA" | "MDG" | "MDV" | "MEX" | "MHL" | "MKD" | "MLI" | "MLT" | "MMR" | "MNE" | "MNG" | "MNP" | "MOZ" | "MRT" | "MSR" | "MTQ" | "MUS" | "MWI" | "MYS" | "MYT" | "NAM" | "NCL" | "NER" | "NFK" | "NGA" | "NIC" | "NIU" | "NLD" | "NOR" | "NPL" | "NRU" | "NZL" | "OMN" | "PAK" | "PAN" | "PCN" | "PER" | "PHL" | "PLW" | "PNG" | "POL" | "PRI" | "PRK" | "PRT" | "PRY" | "PSE" | "PYF" | "QAT" | "REU" | "ROU" | "RUS" | "RWA" | "SAU" | "SDN" | "SEN" | "SGP" | "SGS" | "SLB" | "SLE" | "SLV" | "SMR" | "SOM" | "SPM" | "SRB" | "SSD" | "STP" | "SUR" | "SVK" | "SVN" | "SWE" | "SWZ" | "SYC" | "SYR" | "TCA" | "TCD" | "TGO" | "THA" | "TJK" | "TKM" | "TLS" | "TON" | "TTO" | "TUN" | "TUR" | "TUV" | "TWN" | "TZA" | "UGA" | "UKR" | "UMI" | "URY" | "USA" | "UZB" | "VAT" | "VCT" | "VEN" | "VGB" | "VIR" | "VNM" | "VUT" | "WLF" | "WSM" | "XKX" | "YEM" | "ZAF" | "ZMB" | "ZWE")[];
|
|
1755
1764
|
export declare const individualCountries: ("AUT" | "BEL" | "BGR" | "CYP" | "CZE" | "DEU" | "DNK" | "ESP" | "EST" | "FIN" | "FRA" | "GRC" | "HRV" | "HUN" | "IRL" | "ISL" | "ITA" | "LIE" | "LTU" | "LUX" | "LVA" | "MLT" | "NLD" | "NOR" | "POL" | "PRT" | "ROU" | "SVK" | "SVN" | "SWE")[];
|
|
1756
1765
|
export type IndividualCountryCCA3 = (typeof individualCountries)[number];
|
|
1757
1766
|
export declare const companyCountries: ("AUT" | "BEL" | "BGR" | "CYP" | "CZE" | "DEU" | "DNK" | "ESP" | "EST" | "FIN" | "FRA" | "GRC" | "HRV" | "HUN" | "IRL" | "ISL" | "ITA" | "LIE" | "LTU" | "LUX" | "LVA" | "MLT" | "NLD" | "NOR" | "POL" | "PRT" | "ROU" | "SVK" | "SVN" | "SWE")[];
|
|
@@ -883,6 +883,14 @@ const readonlyCountries = [
|
|
|
883
883
|
flag: "🇳🇦",
|
|
884
884
|
isNationality: true,
|
|
885
885
|
},
|
|
886
|
+
{
|
|
887
|
+
name: "Nauru",
|
|
888
|
+
cca2: "NR",
|
|
889
|
+
cca3: "NRU",
|
|
890
|
+
idd: "674",
|
|
891
|
+
flag: "🇳🇷",
|
|
892
|
+
isNationality: true,
|
|
893
|
+
},
|
|
886
894
|
{
|
|
887
895
|
name: "Nederland",
|
|
888
896
|
cca2: "NL",
|
|
@@ -2019,6 +2027,10 @@ export const getCCA3forCCA2 = (cca2) => countriesByCCA2[cca2].cca3;
|
|
|
2019
2027
|
export const companyWithUboCountries = ["BEL", "DEU", "FRA", "ITA", "LTU", "LUX", "NLD"];
|
|
2020
2028
|
export const allCountries = countries.map(country => country.cca3);
|
|
2021
2029
|
export const france = countriesByCCA3["FRA"];
|
|
2030
|
+
// Territories (Martinique, Réunion, Puerto Rico, Greenland…) are the entries that aren't
|
|
2031
|
+
// nationalities, same rule as the backend country list
|
|
2032
|
+
export const isTerritoryCCA3 = (cca3) => !countriesByCCA3[cca3].isNationality;
|
|
2033
|
+
export const sovereignCountries = allCountries.filter(cca3 => !isTerritoryCCA3(cca3));
|
|
2022
2034
|
const blockedPhoneCountries = ["CUB", "SYR", "IRN", "PRK", "RUS"];
|
|
2023
2035
|
export const phoneCountries = allCountries.filter(cca3 => !blockedPhoneCountries.includes(cca3));
|
|
2024
2036
|
export const individualCountries = [
|
|
@@ -30,7 +30,9 @@ export const useFilesUploader = (config) => {
|
|
|
30
30
|
]);
|
|
31
31
|
const onProgress = (progress) => {
|
|
32
32
|
setFiles(files => files.map(file => {
|
|
33
|
-
|
|
33
|
+
// A late progress report (upload is faster than fake progress bar)
|
|
34
|
+
// must not revert a file that already finished uploading
|
|
35
|
+
if (file.id !== id || file.statusInfo.status !== "Uploading") {
|
|
34
36
|
return file;
|
|
35
37
|
}
|
|
36
38
|
return {
|
package/src/locales/de.json
CHANGED
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"common.form.help.nbCharacters": "{nbCharacters} Zeichen",
|
|
63
63
|
"common.form.help.nbDigits": "{nbDigits} Ziffern",
|
|
64
64
|
"common.form.invalidTaxIdentificationNumber": "Dieses Feld ist ungültig",
|
|
65
|
-
"common.form.taxIdentificationNumber.placeholder": "Steueridentifikationsnummer",
|
|
66
|
-
"common.form.taxIdentificationNumber.tooltip.ita": "Steuer-ID (Codice fiscale)",
|
|
67
65
|
"common.next": "Weiter",
|
|
68
66
|
"common.noResult": "Leeres Ergebnis",
|
|
69
67
|
"common.open": "Öffnen",
|
|
@@ -350,7 +348,10 @@
|
|
|
350
348
|
"supportingDocuments.noDocuments": "Keine Dokumente.",
|
|
351
349
|
"supportingDocuments.powerOfAttorneyModal.description": "Ein unterschriebenes und datiertes Dokument, das eine Person ermächtigt, den gesetzlichen Vertreter eines Unternehmens zu vertreten oder in dessen Namen zu handeln.",
|
|
352
350
|
"supportingDocuments.powerOfAttorneyModal.title": "Vom gesetzlichen Vertreter unterzeichnete Vollmacht",
|
|
353
|
-
"taxIdentificationNumber.label": "
|
|
351
|
+
"taxIdentificationNumber.company.label": "Steuer-Nummer",
|
|
352
|
+
"taxIdentificationNumber.personal.label": "Steueridentifikationsnummer",
|
|
353
|
+
"taxIdentificationNumber.personal.label.BEL": "Nationalregisternummer",
|
|
354
|
+
"taxIdentificationNumber.personal.label.NLD": "Burgerservicenummer (BSN)",
|
|
354
355
|
"transactionStatement.creditor.accountNumber": "Kontonummer des Gläubigers",
|
|
355
356
|
"transactionStatement.creditor.bankIdentifier": "Bankleitzahl des Gläubigers",
|
|
356
357
|
"transactionStatement.creditor.bankName": "Name der Gläubigerbank",
|
package/src/locales/en.json
CHANGED
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"common.form.help.nbCharacters": "{nbCharacters} characters",
|
|
63
63
|
"common.form.help.nbDigits": "{nbDigits} digits",
|
|
64
64
|
"common.form.invalidTaxIdentificationNumber": "This field is invalid",
|
|
65
|
-
"common.form.taxIdentificationNumber.placeholder": "Tax ID",
|
|
66
|
-
"common.form.taxIdentificationNumber.tooltip.ita": "Tax ID (Codice fiscale)",
|
|
67
65
|
"common.next": "Next",
|
|
68
66
|
"common.noResult": "Empty result",
|
|
69
67
|
"common.open": "Open",
|
|
@@ -350,7 +348,10 @@
|
|
|
350
348
|
"supportingDocuments.noDocuments": "No documents.",
|
|
351
349
|
"supportingDocuments.powerOfAttorneyModal.description": "A signed and dated document authorizing an individual to represent or act on behalf of the company's legal representative.",
|
|
352
350
|
"supportingDocuments.powerOfAttorneyModal.title": "Power of attorney signed by the legal representative",
|
|
353
|
-
"taxIdentificationNumber.label": "Tax identification number",
|
|
351
|
+
"taxIdentificationNumber.company.label": "Tax identification number",
|
|
352
|
+
"taxIdentificationNumber.personal.label": "Tax identification number",
|
|
353
|
+
"taxIdentificationNumber.personal.label.BEL": "National register number",
|
|
354
|
+
"taxIdentificationNumber.personal.label.NLD": "Burgerservicenummer (BSN)",
|
|
354
355
|
"transactionStatement.creditor.accountNumber": "Creditor's account number",
|
|
355
356
|
"transactionStatement.creditor.bankIdentifier": "Creditor's bank identifier",
|
|
356
357
|
"transactionStatement.creditor.bankName": "Creditor’s bank name",
|
package/src/locales/es.json
CHANGED
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"common.form.help.nbCharacters": "{nbCharacters} caracteres",
|
|
63
63
|
"common.form.help.nbDigits": "{nbDigits} dígitos",
|
|
64
64
|
"common.form.invalidTaxIdentificationNumber": "Este campo es inválido",
|
|
65
|
-
"common.form.taxIdentificationNumber.placeholder": "Número de identificación fiscal",
|
|
66
|
-
"common.form.taxIdentificationNumber.tooltip.ita": "Número de identificación fiscal (Codice fiscale)",
|
|
67
65
|
"common.next": "Siguiente",
|
|
68
66
|
"common.noResult": "No hay resultados",
|
|
69
67
|
"common.open": "Abrir",
|
|
@@ -350,7 +348,10 @@
|
|
|
350
348
|
"supportingDocuments.noDocuments": "Sin documentos.",
|
|
351
349
|
"supportingDocuments.powerOfAttorneyModal.description": "Documento firmado y fechado que autoriza a una persona a representar o actuar en nombre del representante legal de una empresa.",
|
|
352
350
|
"supportingDocuments.powerOfAttorneyModal.title": "Poder notarial firmado por el representante legal",
|
|
353
|
-
"taxIdentificationNumber.label": "Número de identificación fiscal",
|
|
351
|
+
"taxIdentificationNumber.company.label": "Número de identificación fiscal",
|
|
352
|
+
"taxIdentificationNumber.personal.label": "Número de identificación fiscal",
|
|
353
|
+
"taxIdentificationNumber.personal.label.BEL": "Número de registro nacional",
|
|
354
|
+
"taxIdentificationNumber.personal.label.NLD": "Burgerservicenummer (BSN)",
|
|
354
355
|
"transactionStatement.creditor.accountNumber": "Número de cuenta del acreedor",
|
|
355
356
|
"transactionStatement.creditor.bankIdentifier": "Identificador bancario del acreedor",
|
|
356
357
|
"transactionStatement.creditor.bankName": "Nombre del banco del acreedor",
|
package/src/locales/fi.json
CHANGED
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"common.form.help.nbCharacters": "{nbCharacters} merkkiä",
|
|
63
63
|
"common.form.help.nbDigits": "{nbDigits} numeroa",
|
|
64
64
|
"common.form.invalidTaxIdentificationNumber": "Tämä kenttä ei ole kelvollinen",
|
|
65
|
-
"common.form.taxIdentificationNumber.placeholder": "verotunnus",
|
|
66
|
-
"common.form.taxIdentificationNumber.tooltip.ita": "Verotunnus (Codice fiscale)",
|
|
67
65
|
"common.next": "Seuraava",
|
|
68
66
|
"common.noResult": "Ei tuloksia",
|
|
69
67
|
"common.open": "Avaa",
|
|
@@ -350,7 +348,10 @@
|
|
|
350
348
|
"supportingDocuments.noDocuments": "Ei asiakirjoja.",
|
|
351
349
|
"supportingDocuments.powerOfAttorneyModal.description": "Allekirjoitettu ja päivätty asiakirja, joka valtuuttaa henkilön edustamaan ja toimimaan yrityksen laillisen edustajan puolesta.",
|
|
352
350
|
"supportingDocuments.powerOfAttorneyModal.title": "Oikeudellisen edustajan allekirjoittama valtakirja",
|
|
353
|
-
"taxIdentificationNumber.label": "Verotunnistenumero",
|
|
351
|
+
"taxIdentificationNumber.company.label": "Verotunnistenumero",
|
|
352
|
+
"taxIdentificationNumber.personal.label": "Verotunnistenumero",
|
|
353
|
+
"taxIdentificationNumber.personal.label.BEL": "Kansallinen rekisterinumero",
|
|
354
|
+
"taxIdentificationNumber.personal.label.NLD": "Burgerservicenummer (BSN)",
|
|
354
355
|
"transactionStatement.creditor.accountNumber": "Luotonantajan tilinumero",
|
|
355
356
|
"transactionStatement.creditor.bankIdentifier": "Luotonantajan pankkitunnus",
|
|
356
357
|
"transactionStatement.creditor.bankName": "Luotonantajan pankin nimi",
|
package/src/locales/fr.json
CHANGED
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"common.form.help.nbCharacters": "{nbCharacters} caractères",
|
|
63
63
|
"common.form.help.nbDigits": "{nbDigits} chiffres",
|
|
64
64
|
"common.form.invalidTaxIdentificationNumber": "Ce champ n’est pas valide",
|
|
65
|
-
"common.form.taxIdentificationNumber.placeholder": "Numéro d'identification fiscale",
|
|
66
|
-
"common.form.taxIdentificationNumber.tooltip.ita": "Numéro d'identification fiscale (Codice fiscale)",
|
|
67
65
|
"common.next": "Suivant",
|
|
68
66
|
"common.noResult": "Résultat vide",
|
|
69
67
|
"common.open": "Ouvrir",
|
|
@@ -350,7 +348,10 @@
|
|
|
350
348
|
"supportingDocuments.noDocuments": "Aucun document.",
|
|
351
349
|
"supportingDocuments.powerOfAttorneyModal.description": "Document signé et daté, qui confère à une personne le pouvoir de représenter ou d'agir pour le compte du représentant légal d'une entreprise.",
|
|
352
350
|
"supportingDocuments.powerOfAttorneyModal.title": "La procuration datée et signée par le représentant légal de l’organisation",
|
|
353
|
-
"taxIdentificationNumber.label": "Numéro d'identification fiscale",
|
|
351
|
+
"taxIdentificationNumber.company.label": "Numéro d'identification fiscale",
|
|
352
|
+
"taxIdentificationNumber.personal.label": "Numéro d'identification fiscale",
|
|
353
|
+
"taxIdentificationNumber.personal.label.BEL": "Numéro de registre national",
|
|
354
|
+
"taxIdentificationNumber.personal.label.NLD": "Numéro de service citoyen (BSN)",
|
|
354
355
|
"transactionStatement.creditor.accountNumber": "Numéro de compte du créancier",
|
|
355
356
|
"transactionStatement.creditor.bankIdentifier": "Identifiant bancaire du créancier",
|
|
356
357
|
"transactionStatement.creditor.bankName": "Nom de la banque du créancier",
|
package/src/locales/it.json
CHANGED
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"common.form.help.nbCharacters": "{nbCharacters} caratteri",
|
|
63
63
|
"common.form.help.nbDigits": "{nbDigits} cifre",
|
|
64
64
|
"common.form.invalidTaxIdentificationNumber": "Questo campo non è valido",
|
|
65
|
-
"common.form.taxIdentificationNumber.placeholder": "Codice fiscale",
|
|
66
|
-
"common.form.taxIdentificationNumber.tooltip.ita": "Codice fiscale (Tax ID)",
|
|
67
65
|
"common.next": "Avanti",
|
|
68
66
|
"common.noResult": "Risultato vuoto",
|
|
69
67
|
"common.open": "Apri",
|
|
@@ -350,7 +348,10 @@
|
|
|
350
348
|
"supportingDocuments.noDocuments": "Nessun documento.",
|
|
351
349
|
"supportingDocuments.powerOfAttorneyModal.description": "Un documento firmato e datato che autorizza un individuo a rappresentare o agire per conto del legale rappresentante di un'azienda.",
|
|
352
350
|
"supportingDocuments.powerOfAttorneyModal.title": "Procura firmata dal legale rappresentante",
|
|
353
|
-
"taxIdentificationNumber.label": "Codice fiscale",
|
|
351
|
+
"taxIdentificationNumber.company.label": "Codice fiscale",
|
|
352
|
+
"taxIdentificationNumber.personal.label": "Codice fiscale",
|
|
353
|
+
"taxIdentificationNumber.personal.label.BEL": "Numero di registro nazionale",
|
|
354
|
+
"taxIdentificationNumber.personal.label.NLD": "Burgerservicenummer (BSN)",
|
|
354
355
|
"transactionStatement.creditor.accountNumber": "Numero di conto del creditore",
|
|
355
356
|
"transactionStatement.creditor.bankIdentifier": "Identificativo bancario del creditore",
|
|
356
357
|
"transactionStatement.creditor.bankName": "Nome della banca del creditore",
|
package/src/locales/nl.json
CHANGED
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"common.form.help.nbCharacters": "{nbCharacters} tekens",
|
|
63
63
|
"common.form.help.nbDigits": "{nbDigits} cijfers",
|
|
64
64
|
"common.form.invalidTaxIdentificationNumber": "Dit veld is ongeldig",
|
|
65
|
-
"common.form.taxIdentificationNumber.placeholder": "BTW-nummer",
|
|
66
|
-
"common.form.taxIdentificationNumber.tooltip.ita": "Btw-nummer (Codice fiscale)",
|
|
67
65
|
"common.next": "Volgende",
|
|
68
66
|
"common.noResult": "Leeg resultaat",
|
|
69
67
|
"common.open": "Openen",
|
|
@@ -105,7 +103,7 @@
|
|
|
105
103
|
"common.statement.footer": "SWAN is een vereenvoudigde naamloze vennootschap (SAS) die is geregistreerd bij het handels- en bedrijvenregister van Paris onder nummer 853 827 103, met een kapitaal van 951.164,50 euro, btw-nummer FR90853827103 en met maatschappelijke zetel te 91 rue du Faubourg Saint-Honoré, 75008 Paris, FRANKRIJK.\n\nAls elektronischgeldinstelling die betalingsdiensten aanbiedt volgens de Franse wetgeving en goedgekeurd door de ACPR, staat SWAN bij deze laatste geregistreerd onder nummer 17328.",
|
|
106
104
|
"copyButton.copiedTooltip": "Gekopieerd naar klembord",
|
|
107
105
|
"copyButton.copyTooltip": "Klik om te kopiëren",
|
|
108
|
-
"creditStatement.additionalDetails": "De afrekening van bold>{openingDate}</bold> tot <bold>{closingDate}</bold> bevat alle kosten en betalingen die we tot {closingDate} hebben ontvangen. De volgende automatische afschrijving gebeurt vanaf {repaymentDate}.\n\
|
|
106
|
+
"creditStatement.additionalDetails": "De afrekening van <bold>{openingDate}</bold> tot <bold>{closingDate}</bold> bevat alle kosten en betalingen die we tot {closingDate} hebben ontvangen. De volgende automatische afschrijving gebeurt vanaf {repaymentDate}.\n\nAls een automatische incasso wordt geweigerd omdat er niet genoeg geld op je rekening staat, kunnen we deze incasso minstens <bold>3 tot 4 dagen</bold> na de weigering door je bank opnieuw proberen.",
|
|
109
107
|
"creditStatement.card": "Kaart",
|
|
110
108
|
"creditStatement.column.credit": "Credit",
|
|
111
109
|
"creditStatement.column.debit": "Debet",
|
|
@@ -350,7 +348,10 @@
|
|
|
350
348
|
"supportingDocuments.noDocuments": "Geen documenten.",
|
|
351
349
|
"supportingDocuments.powerOfAttorneyModal.description": "Een ondertekend en gedateerd document dat een persoon machtigt om de wettelijke vertegenwoordiger van een bedrijf te vertegenwoordigen of namens hem op te treden.",
|
|
352
350
|
"supportingDocuments.powerOfAttorneyModal.title": "Volmacht ondertekend door de wettelijke vertegenwoordiger ",
|
|
353
|
-
"taxIdentificationNumber.label": "
|
|
351
|
+
"taxIdentificationNumber.company.label": "Fiscaal identificatienummer",
|
|
352
|
+
"taxIdentificationNumber.personal.label": "Fiscaal identificatienummer",
|
|
353
|
+
"taxIdentificationNumber.personal.label.BEL": "Rijksregisternummer",
|
|
354
|
+
"taxIdentificationNumber.personal.label.NLD": "Burgerservicenummer (BSN)",
|
|
354
355
|
"transactionStatement.creditor.accountNumber": "Crediteurrekeningnummer",
|
|
355
356
|
"transactionStatement.creditor.bankIdentifier": "Bankidentificatie van de schuldeiser",
|
|
356
357
|
"transactionStatement.creditor.bankName": "Naam van de bank van de schuldeiser",
|
package/src/locales/pt.json
CHANGED
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"common.form.help.nbCharacters": "{nbCharacters} caracteres",
|
|
63
63
|
"common.form.help.nbDigits": "{nbDigits} dígitos",
|
|
64
64
|
"common.form.invalidTaxIdentificationNumber": "Este campo é inválido",
|
|
65
|
-
"common.form.taxIdentificationNumber.placeholder": "Número de Identificação Fiscal",
|
|
66
|
-
"common.form.taxIdentificationNumber.tooltip.ita": "NIF (Número de Identificação Fiscal)",
|
|
67
65
|
"common.next": "Próximo",
|
|
68
66
|
"common.noResult": "Resultado vazio",
|
|
69
67
|
"common.open": "Abrir",
|
|
@@ -350,7 +348,10 @@
|
|
|
350
348
|
"supportingDocuments.noDocuments": "Sem documentos.",
|
|
351
349
|
"supportingDocuments.powerOfAttorneyModal.description": "Um documento assinado e datado autorizando uma pessoa a representar ou agir em nome do representante legal de uma empresa.",
|
|
352
350
|
"supportingDocuments.powerOfAttorneyModal.title": "Poder de procuração assinado pelo representante legal",
|
|
353
|
-
"taxIdentificationNumber.label": "Número de Identificação Fiscal",
|
|
351
|
+
"taxIdentificationNumber.company.label": "Número de Identificação Fiscal",
|
|
352
|
+
"taxIdentificationNumber.personal.label": "Número de Identificação Fiscal",
|
|
353
|
+
"taxIdentificationNumber.personal.label.BEL": "Número de registo nacional",
|
|
354
|
+
"taxIdentificationNumber.personal.label.NLD": "Burgerservicenummer (BSN)",
|
|
354
355
|
"transactionStatement.creditor.accountNumber": "Número da conta do credor",
|
|
355
356
|
"transactionStatement.creditor.bankIdentifier": "Identificador bancário do credor",
|
|
356
357
|
"transactionStatement.creditor.bankName": "Nome do banco do credor",
|
package/src/utils/validation.js
CHANGED
|
@@ -239,9 +239,11 @@ export const validateBirthdate = (value) => {
|
|
|
239
239
|
* Translation helpers for tax validation
|
|
240
240
|
*/
|
|
241
241
|
export const getTaxNumberLabel = (isCompany, country) => match({ isCompany, lang: locale.language, country })
|
|
242
|
-
.with({ isCompany: true,
|
|
243
|
-
.with({ country: "NLD" }, () => "
|
|
244
|
-
.
|
|
242
|
+
.with({ isCompany: true, country: "NLD" }, () => "RSIN")
|
|
243
|
+
.with({ isCompany: false, country: "NLD" }, () => t("taxIdentificationNumber.personal.label.NLD"))
|
|
244
|
+
.with({ isCompany: false, country: "BEL" }, () => t("taxIdentificationNumber.personal.label.BEL"))
|
|
245
|
+
.with({ isCompany: true }, () => t("taxIdentificationNumber.company.label"))
|
|
246
|
+
.otherwise(() => t("taxIdentificationNumber.personal.label"));
|
|
245
247
|
export const getIndividualTaxNumberPlaceholder = (country) => match({ country, lang: locale.language })
|
|
246
248
|
.with({ country: "DEU", lang: P.not("de") }, () => "Steueridentifikationsnummer")
|
|
247
249
|
.with({ country: "ESP", lang: P.not("es") }, () => "Número de Identificación Fiscal")
|