@designcrowd/fe-shared-lib 1.2.25-MP-4369.0 → 1.2.25-gt-8827
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/.claude/settings.local.json +10 -0
- package/dist/css/tailwind-brandCrowd.css +3 -0
- package/dist/css/tailwind-brandPage.css +3 -0
- package/dist/css/tailwind-crazyDomains.css +3 -0
- package/dist/css/tailwind-designCom.css +3 -0
- package/dist/css/tailwind-designCrowd.css +3 -0
- package/package.json +1 -1
- package/src/bundleTranslation.js +3 -8
- package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +1 -0
- package/src/useSharedLibTranslate.js +5 -0
package/package.json
CHANGED
package/src/bundleTranslation.js
CHANGED
|
@@ -3,6 +3,8 @@ const fs = require('fs');
|
|
|
3
3
|
|
|
4
4
|
const localeSuffixes = ['.de-DE', '.fr-FR', '.fr-CA', '.es-ES', '.pt-PT', '.pt-BR', ''];
|
|
5
5
|
|
|
6
|
+
const suffixRe = /\.[a-z]{2}-[a-z]{2}\.json$/i;
|
|
7
|
+
|
|
6
8
|
const findTranslationFiles = (dir, localeString) => {
|
|
7
9
|
const files = [];
|
|
8
10
|
const entries = fs.readdirSync(dir);
|
|
@@ -17,14 +19,7 @@ const findTranslationFiles = (dir, localeString) => {
|
|
|
17
19
|
.readdirSync(fullPath)
|
|
18
20
|
.filter((file) => {
|
|
19
21
|
if (localeString === '') {
|
|
20
|
-
return (
|
|
21
|
-
!file.includes('.de-DE') &&
|
|
22
|
-
!file.includes('.fr-FR') &&
|
|
23
|
-
!file.includes('.fr-CA') &&
|
|
24
|
-
!file.includes('.es-ES') &&
|
|
25
|
-
!file.includes('.pt-PT') &&
|
|
26
|
-
!file.includes('.pt-BR')
|
|
27
|
-
);
|
|
22
|
+
return !suffixRe.test(file);
|
|
28
23
|
}
|
|
29
24
|
return file.endsWith(`${localeString}.json`);
|
|
30
25
|
})
|
|
@@ -101,6 +101,7 @@ import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
|
101
101
|
const ACCEPTED_MIME_TYPES = ['image/jpeg', 'image/png', 'image/svg+xml', 'application/postscript'];
|
|
102
102
|
|
|
103
103
|
const ACCEPTED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'svg', 'eps'];
|
|
104
|
+
|
|
104
105
|
const UNSUPPORTED_FILE_ERROR_MSG = () => uploadYourLogoTr(`wrongUploadType`);
|
|
105
106
|
|
|
106
107
|
export default {
|
|
@@ -89,6 +89,11 @@ const formatCurrency = (amount, locale, currency, fraction = 0, showAbbreviation
|
|
|
89
89
|
if (localeAmount.includes(currency.iso4127Code)) {
|
|
90
90
|
localeAmount = localeAmount.replace(currency.iso4127Code, symbolTrimmed);
|
|
91
91
|
}
|
|
92
|
+
|
|
93
|
+
// For EUR currency, always use comma as decimal separator regardless of locale
|
|
94
|
+
if (currency.iso4127Code === 'EUR') {
|
|
95
|
+
localeAmount = localeAmount.replace('.', ',');
|
|
96
|
+
}
|
|
92
97
|
|
|
93
98
|
// show abbreviation locale logic
|
|
94
99
|
// note: showAbbreviation is only passed as true for symbol = "$"
|