cozy-client 38.0.2 → 38.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/dist/CozyClient.js
CHANGED
|
@@ -2677,7 +2677,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2677
2677
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2678
2678
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2679
2679
|
|
|
2680
|
-
CozyClient.version = "38.0
|
|
2680
|
+
CozyClient.version = "38.1.0";
|
|
2681
2681
|
|
|
2682
2682
|
_microee.default.mixin(CozyClient);
|
|
2683
2683
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bank_statement": "Relevé de compte |||| Relevés de compte",
|
|
26
26
|
"birth_certificate": "Certificat de naissance |||| Certificats de naissance",
|
|
27
27
|
"building_permit": "Permis de construire",
|
|
28
|
-
"caf": "Attestation de quotient familial
|
|
28
|
+
"caf": "Attestation de quotient familial CAF |||| Attestations de quotient familial CAF",
|
|
29
29
|
"car_insurance": "Attestation d'assurance auto |||| Attestations d'assurance auto",
|
|
30
30
|
"citizen_registration_certificate": "Attestation de recensement citoyen |||| Attestations de recensement citoyen",
|
|
31
31
|
"diploma": "Diplôme |||| Diplômes",
|
|
@@ -42,7 +42,7 @@ var getBoundT = function getBoundT(lang) {
|
|
|
42
42
|
smart_count: (opts === null || opts === void 0 ? void 0 : opts.smart_count) || 1
|
|
43
43
|
};
|
|
44
44
|
var emojiCountry = (0, _emojiCountry.getEmojiByCountry)(opts === null || opts === void 0 ? void 0 : opts.country, t);
|
|
45
|
-
return emojiCountry ? "".concat(t(label, newOpts), "
|
|
45
|
+
return emojiCountry ? "".concat(t(label, newOpts), " ").concat(emojiCountry) : t(label, newOpts);
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
|
|
@@ -17,10 +17,10 @@ describe('getBoundT', () => {
|
|
|
17
17
|
it.each`
|
|
18
18
|
translationKey | country | smart_count | lang | expected
|
|
19
19
|
${'Scan.items.national_id_card'} | ${undefined} | ${undefined} | ${'en'} | ${'ID card'}
|
|
20
|
-
${'Scan.items.national_id_card'} | ${'fr'} | ${undefined} | ${'en'} | ${'ID card
|
|
21
|
-
${'Scan.items.national_id_card'} | ${'stranger'} | ${undefined} | ${'en'} | ${'ID card
|
|
22
|
-
${'Scan.items.national_id_card'} | ${'fr'} | ${1} | ${'en'} | ${'ID card
|
|
23
|
-
${'Scan.items.national_id_card'} | ${'fr'} | ${2} | ${'en'} | ${'ID cards
|
|
20
|
+
${'Scan.items.national_id_card'} | ${'fr'} | ${undefined} | ${'en'} | ${'ID card 🇫🇷'}
|
|
21
|
+
${'Scan.items.national_id_card'} | ${'stranger'} | ${undefined} | ${'en'} | ${'ID card Stranger'}
|
|
22
|
+
${'Scan.items.national_id_card'} | ${'fr'} | ${1} | ${'en'} | ${'ID card 🇫🇷'}
|
|
23
|
+
${'Scan.items.national_id_card'} | ${'fr'} | ${2} | ${'en'} | ${'ID cards 🇫🇷'}
|
|
24
24
|
${'Scan.items.national_id_card'} | ${undefined} | ${1} | ${'en'} | ${'ID card'}
|
|
25
25
|
${'Scan.items.national_id_card'} | ${undefined} | ${2} | ${'en'} | ${'ID cards'}
|
|
26
26
|
`(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "38.0
|
|
3
|
+
"version": "38.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
74
74
|
},
|
|
75
75
|
"sideEffects": false,
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "ef7486fc8347b57fab37b20fabdf67cf1bc9bc62"
|
|
77
77
|
}
|