@designcrowd/fe-shared-lib 1.2.20-ml-902-1 → 1.2.20-rr-test
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/css/tailwind-brandCrowd.css +3 -11
- package/dist/css/tailwind-brandPage.css +3 -11
- package/dist/css/tailwind-crazyDomains.css +3 -11
- package/dist/css/tailwind-designCom.css +3 -11
- package/dist/css/tailwind-designCrowd.css +3 -11
- package/package.json +2 -2
- package/src/bundles/bundled-translations.de-DE.json +0 -6
- package/src/bundles/bundled-translations.es-ES.json +0 -6
- package/src/bundles/bundled-translations.fr-FR.json +0 -6
- package/src/bundles/bundled-translations.json +0 -6
- package/src/bundles/bundled-translations.pt-PT.json +0 -6
- package/src/experiences/components/AuthFlow/SignIn.vue +2 -3
- package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +9 -2
- package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +5 -15
- package/src/useSharedLibTranslate.js +2 -6
- package/public/css/tailwind-brandCrowd.css +0 -2408
- package/public/css/tailwind-brandPage.css +0 -2092
- package/public/css/tailwind-crazyDomains.css +0 -2408
- package/public/css/tailwind-designCom.css +0 -2408
- package/public/css/tailwind-designCrowd.css +0 -2408
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.de-DE.json +0 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.es-ES.json +0 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.fr-FR.json +0 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.json +0 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.pt-PT.json +0 -8
|
@@ -643,10 +643,6 @@ video {
|
|
|
643
643
|
margin-top: 0px;
|
|
644
644
|
margin-bottom: 0px;
|
|
645
645
|
}
|
|
646
|
-
.tw-my-1 {
|
|
647
|
-
margin-top: 0.25rem;
|
|
648
|
-
margin-bottom: 0.25rem;
|
|
649
|
-
}
|
|
650
646
|
.tw-my-10 {
|
|
651
647
|
margin-top: 2.5rem;
|
|
652
648
|
margin-bottom: 2.5rem;
|
|
@@ -853,6 +849,9 @@ video {
|
|
|
853
849
|
.tw-max-h-screen {
|
|
854
850
|
max-height: 100vh;
|
|
855
851
|
}
|
|
852
|
+
.tw-w-1\/3 {
|
|
853
|
+
width: 33.333333%;
|
|
854
|
+
}
|
|
856
855
|
.tw-w-10 {
|
|
857
856
|
width: 2.5rem;
|
|
858
857
|
}
|
|
@@ -1021,9 +1020,6 @@ video {
|
|
|
1021
1020
|
.tw-animate-spin {
|
|
1022
1021
|
animation: tw-spin 1s linear infinite;
|
|
1023
1022
|
}
|
|
1024
|
-
.\!tw-cursor-not-allowed {
|
|
1025
|
-
cursor: not-allowed !important;
|
|
1026
|
-
}
|
|
1027
1023
|
.tw-cursor-not-allowed {
|
|
1028
1024
|
cursor: not-allowed;
|
|
1029
1025
|
}
|
|
@@ -2259,10 +2255,6 @@ video {
|
|
|
2259
2255
|
margin-left: 1rem;
|
|
2260
2256
|
}
|
|
2261
2257
|
|
|
2262
|
-
.md\:tw-mr-2 {
|
|
2263
|
-
margin-right: 0.5rem;
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
2258
|
.md\:tw-mt-0 {
|
|
2267
2259
|
margin-top: 0px;
|
|
2268
2260
|
}
|
|
@@ -643,10 +643,6 @@ video {
|
|
|
643
643
|
margin-top: 0px;
|
|
644
644
|
margin-bottom: 0px;
|
|
645
645
|
}
|
|
646
|
-
.tw-my-1 {
|
|
647
|
-
margin-top: 0.25rem;
|
|
648
|
-
margin-bottom: 0.25rem;
|
|
649
|
-
}
|
|
650
646
|
.tw-my-10 {
|
|
651
647
|
margin-top: 2.5rem;
|
|
652
648
|
margin-bottom: 2.5rem;
|
|
@@ -853,6 +849,9 @@ video {
|
|
|
853
849
|
.tw-max-h-screen {
|
|
854
850
|
max-height: 100vh;
|
|
855
851
|
}
|
|
852
|
+
.tw-w-1\/3 {
|
|
853
|
+
width: 33.333333%;
|
|
854
|
+
}
|
|
856
855
|
.tw-w-10 {
|
|
857
856
|
width: 2.5rem;
|
|
858
857
|
}
|
|
@@ -1021,9 +1020,6 @@ video {
|
|
|
1021
1020
|
.tw-animate-spin {
|
|
1022
1021
|
animation: tw-spin 1s linear infinite;
|
|
1023
1022
|
}
|
|
1024
|
-
.\!tw-cursor-not-allowed {
|
|
1025
|
-
cursor: not-allowed !important;
|
|
1026
|
-
}
|
|
1027
1023
|
.tw-cursor-not-allowed {
|
|
1028
1024
|
cursor: not-allowed;
|
|
1029
1025
|
}
|
|
@@ -1943,10 +1939,6 @@ video {
|
|
|
1943
1939
|
margin-left: 1rem;
|
|
1944
1940
|
}
|
|
1945
1941
|
|
|
1946
|
-
.md\:tw-mr-2 {
|
|
1947
|
-
margin-right: 0.5rem;
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
1942
|
.md\:tw-mt-0 {
|
|
1951
1943
|
margin-top: 0px;
|
|
1952
1944
|
}
|
|
@@ -643,10 +643,6 @@ video {
|
|
|
643
643
|
margin-top: 0px;
|
|
644
644
|
margin-bottom: 0px;
|
|
645
645
|
}
|
|
646
|
-
.tw-my-1 {
|
|
647
|
-
margin-top: 0.25rem;
|
|
648
|
-
margin-bottom: 0.25rem;
|
|
649
|
-
}
|
|
650
646
|
.tw-my-10 {
|
|
651
647
|
margin-top: 2.5rem;
|
|
652
648
|
margin-bottom: 2.5rem;
|
|
@@ -853,6 +849,9 @@ video {
|
|
|
853
849
|
.tw-max-h-screen {
|
|
854
850
|
max-height: 100vh;
|
|
855
851
|
}
|
|
852
|
+
.tw-w-1\/3 {
|
|
853
|
+
width: 33.333333%;
|
|
854
|
+
}
|
|
856
855
|
.tw-w-10 {
|
|
857
856
|
width: 2.5rem;
|
|
858
857
|
}
|
|
@@ -1021,9 +1020,6 @@ video {
|
|
|
1021
1020
|
.tw-animate-spin {
|
|
1022
1021
|
animation: tw-spin 1s linear infinite;
|
|
1023
1022
|
}
|
|
1024
|
-
.\!tw-cursor-not-allowed {
|
|
1025
|
-
cursor: not-allowed !important;
|
|
1026
|
-
}
|
|
1027
1023
|
.tw-cursor-not-allowed {
|
|
1028
1024
|
cursor: not-allowed;
|
|
1029
1025
|
}
|
|
@@ -2259,10 +2255,6 @@ video {
|
|
|
2259
2255
|
margin-left: 1rem;
|
|
2260
2256
|
}
|
|
2261
2257
|
|
|
2262
|
-
.md\:tw-mr-2 {
|
|
2263
|
-
margin-right: 0.5rem;
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
2258
|
.md\:tw-mt-0 {
|
|
2267
2259
|
margin-top: 0px;
|
|
2268
2260
|
}
|
|
@@ -643,10 +643,6 @@ video {
|
|
|
643
643
|
margin-top: 0px;
|
|
644
644
|
margin-bottom: 0px;
|
|
645
645
|
}
|
|
646
|
-
.tw-my-1 {
|
|
647
|
-
margin-top: 0.25rem;
|
|
648
|
-
margin-bottom: 0.25rem;
|
|
649
|
-
}
|
|
650
646
|
.tw-my-10 {
|
|
651
647
|
margin-top: 2.5rem;
|
|
652
648
|
margin-bottom: 2.5rem;
|
|
@@ -853,6 +849,9 @@ video {
|
|
|
853
849
|
.tw-max-h-screen {
|
|
854
850
|
max-height: 100vh;
|
|
855
851
|
}
|
|
852
|
+
.tw-w-1\/3 {
|
|
853
|
+
width: 33.333333%;
|
|
854
|
+
}
|
|
856
855
|
.tw-w-10 {
|
|
857
856
|
width: 2.5rem;
|
|
858
857
|
}
|
|
@@ -1021,9 +1020,6 @@ video {
|
|
|
1021
1020
|
.tw-animate-spin {
|
|
1022
1021
|
animation: tw-spin 1s linear infinite;
|
|
1023
1022
|
}
|
|
1024
|
-
.\!tw-cursor-not-allowed {
|
|
1025
|
-
cursor: not-allowed !important;
|
|
1026
|
-
}
|
|
1027
1023
|
.tw-cursor-not-allowed {
|
|
1028
1024
|
cursor: not-allowed;
|
|
1029
1025
|
}
|
|
@@ -2259,10 +2255,6 @@ video {
|
|
|
2259
2255
|
margin-left: 1rem;
|
|
2260
2256
|
}
|
|
2261
2257
|
|
|
2262
|
-
.md\:tw-mr-2 {
|
|
2263
|
-
margin-right: 0.5rem;
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
2258
|
.md\:tw-mt-0 {
|
|
2267
2259
|
margin-top: 0px;
|
|
2268
2260
|
}
|
|
@@ -643,10 +643,6 @@ video {
|
|
|
643
643
|
margin-top: 0px;
|
|
644
644
|
margin-bottom: 0px;
|
|
645
645
|
}
|
|
646
|
-
.tw-my-1 {
|
|
647
|
-
margin-top: 0.25rem;
|
|
648
|
-
margin-bottom: 0.25rem;
|
|
649
|
-
}
|
|
650
646
|
.tw-my-10 {
|
|
651
647
|
margin-top: 2.5rem;
|
|
652
648
|
margin-bottom: 2.5rem;
|
|
@@ -853,6 +849,9 @@ video {
|
|
|
853
849
|
.tw-max-h-screen {
|
|
854
850
|
max-height: 100vh;
|
|
855
851
|
}
|
|
852
|
+
.tw-w-1\/3 {
|
|
853
|
+
width: 33.333333%;
|
|
854
|
+
}
|
|
856
855
|
.tw-w-10 {
|
|
857
856
|
width: 2.5rem;
|
|
858
857
|
}
|
|
@@ -1021,9 +1020,6 @@ video {
|
|
|
1021
1020
|
.tw-animate-spin {
|
|
1022
1021
|
animation: tw-spin 1s linear infinite;
|
|
1023
1022
|
}
|
|
1024
|
-
.\!tw-cursor-not-allowed {
|
|
1025
|
-
cursor: not-allowed !important;
|
|
1026
|
-
}
|
|
1027
1023
|
.tw-cursor-not-allowed {
|
|
1028
1024
|
cursor: not-allowed;
|
|
1029
1025
|
}
|
|
@@ -2259,10 +2255,6 @@ video {
|
|
|
2259
2255
|
margin-left: 1rem;
|
|
2260
2256
|
}
|
|
2261
2257
|
|
|
2262
|
-
.md\:tw-mr-2 {
|
|
2263
|
-
margin-right: 0.5rem;
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
2258
|
.md\:tw-mt-0 {
|
|
2267
2259
|
margin-top: 0px;
|
|
2268
2260
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designcrowd/fe-shared-lib",
|
|
3
|
-
"version": "1.2.20-
|
|
3
|
+
"version": "1.2.20-rr-test",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "run-p storybook watch:translation",
|
|
6
6
|
"build": "npm run build:css --production",
|
|
@@ -113,4 +113,4 @@
|
|
|
113
113
|
"overrides": {
|
|
114
114
|
"storybook": "$storybook"
|
|
115
115
|
}
|
|
116
|
-
}
|
|
116
|
+
}
|
|
@@ -92,11 +92,5 @@
|
|
|
92
92
|
"clickToUpload": "klicken Sie hier, um eine Datei hochzuladen.",
|
|
93
93
|
"acceptedFiles": "Wir akzeptieren PNG-, JPG-, SVG- und EPS-Dateien bis zu 25 MB.",
|
|
94
94
|
"wrongUploadType": "Sie können Dateien dieses Typs nicht hochladen."
|
|
95
|
-
},
|
|
96
|
-
"uploadLogoSearchResultCard": {
|
|
97
|
-
"replace": "Ersetzen",
|
|
98
|
-
"replaceLogo": "Logo ersetzen",
|
|
99
|
-
"delete": "Löschen",
|
|
100
|
-
"deleteLogo": "Logo löschen"
|
|
101
95
|
}
|
|
102
96
|
}
|
|
@@ -92,11 +92,5 @@
|
|
|
92
92
|
"clickToUpload": "haz clic para subirlo",
|
|
93
93
|
"acceptedFiles": "Aceptamos archivos PNG, JPG, SVG o EPS de hasta 25 MB",
|
|
94
94
|
"wrongUploadType": "No puedes subir archivos de este tipo."
|
|
95
|
-
},
|
|
96
|
-
"uploadLogoSearchResultCard": {
|
|
97
|
-
"replace": "Sustituir",
|
|
98
|
-
"replaceLogo": "Reemplaza el logo",
|
|
99
|
-
"delete": "Eliminar",
|
|
100
|
-
"deleteLogo": "Elimina el logo"
|
|
101
95
|
}
|
|
102
96
|
}
|
|
@@ -92,11 +92,5 @@
|
|
|
92
92
|
"clickToUpload": "cliquez pour télécharger",
|
|
93
93
|
"acceptedFiles": "Nous acceptons les fichiers PNG, JPG, SVG ou EPS jusqu'à 25 Mo",
|
|
94
94
|
"wrongUploadType": "Vous ne pouvez pas télécharger des fichiers de ce type."
|
|
95
|
-
},
|
|
96
|
-
"uploadLogoSearchResultCard": {
|
|
97
|
-
"replace": "Remplacer",
|
|
98
|
-
"replaceLogo": "Remplacez le logo",
|
|
99
|
-
"delete": "Supprimer",
|
|
100
|
-
"deleteLogo": "Supprimez le logo"
|
|
101
95
|
}
|
|
102
96
|
}
|
|
@@ -92,11 +92,5 @@
|
|
|
92
92
|
"clickToUpload": "click to upload",
|
|
93
93
|
"acceptedFiles": "We accept PNG, JPG, SVG or EPS files up to 25MB",
|
|
94
94
|
"wrongUploadType": "You can't upload files of this type."
|
|
95
|
-
},
|
|
96
|
-
"uploadLogoSearchResultCard": {
|
|
97
|
-
"replace": "Replace",
|
|
98
|
-
"replaceLogo": "Replace Logo",
|
|
99
|
-
"delete": "Delete",
|
|
100
|
-
"deleteLogo": "Delete Logo"
|
|
101
95
|
}
|
|
102
96
|
}
|
|
@@ -92,11 +92,5 @@
|
|
|
92
92
|
"clickToUpload": "clique para carregar",
|
|
93
93
|
"acceptedFiles": "Aceitamos ficheiros PNG, JPG, SVG ou EPS até 25 MB",
|
|
94
94
|
"wrongUploadType": "Não pode carregar ficheiros deste tipo."
|
|
95
|
-
},
|
|
96
|
-
"uploadLogoSearchResultCard": {
|
|
97
|
-
"replace": "Substituir",
|
|
98
|
-
"replaceLogo": "Substituir logótipo",
|
|
99
|
-
"delete": "Eliminar",
|
|
100
|
-
"deleteLogo": "Eliminar Logótipo"
|
|
101
95
|
}
|
|
102
96
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
v-if="recommendedActionLink"
|
|
8
8
|
variant="secondary"
|
|
9
9
|
size="small"
|
|
10
|
-
|
|
10
|
+
label="RESET PASSWORD"
|
|
11
11
|
class="tw-hidden sm:tw-inline"
|
|
12
12
|
:url="getRedirectToRecommendedActionUrl"
|
|
13
13
|
/>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
v-if="recommendedActionLink"
|
|
16
16
|
variant="secondary"
|
|
17
17
|
size="medium"
|
|
18
|
-
|
|
18
|
+
label="RESET PASSWORD"
|
|
19
19
|
:full-width="true"
|
|
20
20
|
class="sm:tw-hidden tw-mt-2"
|
|
21
21
|
:url="getRedirectToRecommendedActionUrl"
|
|
@@ -327,7 +327,6 @@ export default {
|
|
|
327
327
|
emailPlaceholderLabel: this.signInContent.emailPlaceholderLabel ?? 'Email Address',
|
|
328
328
|
passwordPlaceholderLabel: this.signInContent.passwordPlaceholderLabel ?? 'Password',
|
|
329
329
|
forgotPasswordLabel: this.signInContent.forgotPasswordLabel ?? 'Forgot Password?',
|
|
330
|
-
resetPasswordButtonlabel: this.signInContent.resetPasswordButtonlabel ?? 'RESET PASSWORD',
|
|
331
330
|
orLabel: this.signInContent.orLabel ?? 'or',
|
|
332
331
|
signUpLabel: this.signInContent.signUpLabel ?? 'Sign Up',
|
|
333
332
|
};
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
import Button from '../../../atoms/components/Button/Button.vue';
|
|
67
67
|
import Price from '../../../atoms/components/Price/Price.vue';
|
|
68
68
|
import Events from '../../constants/event-constants';
|
|
69
|
-
import { sellDomainNameListTr } from '../../../useSharedLibTranslate';
|
|
69
|
+
import { sellDomainNameListTr, getCurrentLocale } from '../../../useSharedLibTranslate';
|
|
70
70
|
|
|
71
71
|
export default {
|
|
72
72
|
components: {
|
|
@@ -116,6 +116,11 @@ export default {
|
|
|
116
116
|
costPriceLabel: sellDomainNameListTr('costPriceLabel'),
|
|
117
117
|
};
|
|
118
118
|
},
|
|
119
|
+
computed: {
|
|
120
|
+
currentLocale() {
|
|
121
|
+
return getCurrentLocale();
|
|
122
|
+
},
|
|
123
|
+
},
|
|
119
124
|
methods: {
|
|
120
125
|
onBuyNowClick(domain) {
|
|
121
126
|
const request = domain;
|
|
@@ -129,7 +134,9 @@ export default {
|
|
|
129
134
|
}),
|
|
130
135
|
);
|
|
131
136
|
if (this.isUserAuthenticated) {
|
|
132
|
-
|
|
137
|
+
const { checkoutUrl } = domain;
|
|
138
|
+
checkoutUrl.searchParams.set('locale', this.currentLocale);
|
|
139
|
+
window.location.href = checkoutUrl;
|
|
133
140
|
}
|
|
134
141
|
},
|
|
135
142
|
getPrice(domain) {
|
package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}"
|
|
56
56
|
>
|
|
57
57
|
<label for="replace-logo-file" class="tw-sr-only">
|
|
58
|
-
|
|
58
|
+
Replace logo
|
|
59
59
|
<input
|
|
60
60
|
id="replace-logo-file"
|
|
61
61
|
ref="fileInput"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
/>
|
|
66
66
|
</label>
|
|
67
67
|
<div
|
|
68
|
-
class="tw-flex tw-items-center tw-justify-center
|
|
68
|
+
class="tw-flex tw-items-center tw-justify-center"
|
|
69
69
|
:class="{
|
|
70
70
|
'md:tw-items-center': useLandscapeTile,
|
|
71
71
|
'md:tw-flex-col': aspectRatio > 30 && useLandscapeTile,
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
@on-click="onReplaceButtonClick"
|
|
82
82
|
/>
|
|
83
83
|
<button
|
|
84
|
-
class="tw-uppercase tw-text-xs tw-text-secondary tw-font-sans tw-font-bold"
|
|
84
|
+
class="tw-uppercase tw-ml-6 tw-text-xs tw-text-secondary tw-font-sans tw-font-bold"
|
|
85
85
|
:class="{
|
|
86
86
|
'md:tw-mt-3': useLandscapeTile && !extraWideLandscape,
|
|
87
87
|
'md:tw-ml-0': useLandscapeTile,
|
|
@@ -102,7 +102,6 @@ import Button from '../../../../src/atoms/components/Button/Button.vue';
|
|
|
102
102
|
import Events from '../../constants/event-constants';
|
|
103
103
|
import API from '../../constants/api';
|
|
104
104
|
import trackEvent from '../../helpers/tracking';
|
|
105
|
-
import { uploadLogoSearchResultCardTr } from '../../../useSharedLibTranslate';
|
|
106
105
|
|
|
107
106
|
export default {
|
|
108
107
|
components: {
|
|
@@ -132,11 +131,6 @@ export default {
|
|
|
132
131
|
default: false,
|
|
133
132
|
},
|
|
134
133
|
},
|
|
135
|
-
setup() {
|
|
136
|
-
return {
|
|
137
|
-
uploadLogoSearchResultCardTr,
|
|
138
|
-
};
|
|
139
|
-
},
|
|
140
134
|
data() {
|
|
141
135
|
return {
|
|
142
136
|
extraWideLandscape: this.useLandscapeTile && this.aspectRatio <= 30,
|
|
@@ -144,14 +138,10 @@ export default {
|
|
|
144
138
|
},
|
|
145
139
|
computed: {
|
|
146
140
|
replaceButtonLabel() {
|
|
147
|
-
return this.alternativeLayout
|
|
148
|
-
? this.uploadLogoSearchResultCardTr('replace')
|
|
149
|
-
: this.uploadLogoSearchResultCardTr('replaceLogo');
|
|
141
|
+
return this.alternativeLayout ? 'Replace' : 'Replace Logo';
|
|
150
142
|
},
|
|
151
143
|
deleteButtonLabel() {
|
|
152
|
-
return this.alternativeLayout
|
|
153
|
-
? this.uploadLogoSearchResultCardTr('delete')
|
|
154
|
-
: this.uploadLogoSearchResultCardTr('deleteLogo');
|
|
144
|
+
return this.alternativeLayout ? 'Delete' : 'Delete Logo';
|
|
155
145
|
},
|
|
156
146
|
},
|
|
157
147
|
methods: {
|
|
@@ -63,9 +63,6 @@ const sharedPaymentConfigTr = (key, valuesToInterpolate = {}) => tr(`sharedPayme
|
|
|
63
63
|
|
|
64
64
|
const priceTr = (key, valuesToInterpolate = {}) => tr(`price.${key}`, valuesToInterpolate);
|
|
65
65
|
|
|
66
|
-
const uploadLogoSearchResultCardTr = (key, valuesToInterpolate = {}) =>
|
|
67
|
-
tr(`uploadLogoSearchResultCard.${key}`, valuesToInterpolate);
|
|
68
|
-
|
|
69
66
|
const getCurrentLocale = () => {
|
|
70
67
|
return i18next.language || 'en-US';
|
|
71
68
|
};
|
|
@@ -96,7 +93,7 @@ const formatCurrency = (amount, locale, currency, fraction = 0, showAbbreviation
|
|
|
96
93
|
|
|
97
94
|
const altAudAbbreviation = 'AU';
|
|
98
95
|
if (showAbbreviation && !localeAmount.includes(abbreviationTrimmed)) {
|
|
99
|
-
return localeAmount.replace(symbolTrimmed
|
|
96
|
+
return localeAmount.replace(symbolTrimmed,`${abbreviationTrimmed}${symbolTrimmed}`);
|
|
100
97
|
} else if (!showAbbreviation && localeAmount.includes(altAudAbbreviation)) {
|
|
101
98
|
return localeAmount.replace(altAudAbbreviation, '');
|
|
102
99
|
} else if (!showAbbreviation && localeAmount.includes(abbreviationTrimmed)) {
|
|
@@ -104,7 +101,7 @@ const formatCurrency = (amount, locale, currency, fraction = 0, showAbbreviation
|
|
|
104
101
|
}
|
|
105
102
|
|
|
106
103
|
return localeAmount;
|
|
107
|
-
}
|
|
104
|
+
}
|
|
108
105
|
|
|
109
106
|
export {
|
|
110
107
|
setSharedLibLocaleAsync,
|
|
@@ -120,6 +117,5 @@ export {
|
|
|
120
117
|
uploadYourLogoTr,
|
|
121
118
|
sharedPaymentConfigTr,
|
|
122
119
|
priceTr,
|
|
123
|
-
uploadLogoSearchResultCardTr,
|
|
124
120
|
formatCurrency,
|
|
125
121
|
};
|