@designcrowd/fe-shared-lib 1.2.18-kp-2 → 1.2.18-ml-currency
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/Dockerfile +1 -1
- package/dist/css/tailwind-brandCrowd.css +2459 -0
- package/dist/css/tailwind-brandPage.css +2147 -0
- package/dist/css/tailwind-crazyDomains.css +2459 -0
- package/dist/css/tailwind-designCom.css +2459 -0
- package/dist/css/tailwind-designCrowd.css +2459 -0
- package/package.json +1 -1
- package/public/css/tailwind-brandCrowd.css +10 -3
- package/public/css/tailwind-brandPage.css +10 -3
- package/public/css/tailwind-crazyDomains.css +10 -3
- package/public/css/tailwind-designCom.css +10 -3
- package/public/css/tailwind-designCrowd.css +10 -3
- package/src/atoms/components/Price/Price.fixtures.js +63 -3
- package/src/atoms/components/Price/Price.stories.js +127 -5
- package/src/atoms/components/Price/Price.vue +24 -3
- package/src/bundles/bundled-translations.de-DE.json +1 -3
- package/src/bundles/bundled-translations.es-ES.json +1 -3
- package/src/bundles/bundled-translations.fr-FR.json +1 -3
- package/src/bundles/bundled-translations.json +1 -3
- package/src/bundles/bundled-translations.pt-PT.json +1 -3
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +1 -16
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.de-DE.json +20 -22
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.es-ES.json +20 -22
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.fr-FR.json +20 -22
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.json +21 -23
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.pt-PT.json +20 -22
- package/src/useSharedLibTranslate.js +42 -0
package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.de-DE.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"publishBrandPageModal": {
|
|
3
|
-
"firstTimePublishHeaderLabel": "Legen Sie die URL für {{brandPageDisplayName}} fest",
|
|
4
|
-
"sitePublishedLabel": "Seite veröffentlicht!",
|
|
5
|
-
"publishSuccessLabel": "Ihr {{brandPageDisplayName}} ist live! Beginnen Sie mit der Nutzung Ihres Links:",
|
|
6
|
-
"freePublishCardTitleLabel": "Freie Adresse",
|
|
7
|
-
"freePublishCardDescriptionLabel": "Wählen Sie jetzt eine kostenlose Adresse zur Veröffentlichung aus. Sie können die URL später jederzeit bearbeiten",
|
|
8
|
-
"slugInputPlaceholderYourNameLabel": "ihr-name",
|
|
9
|
-
"slugInputPlaceholderYourBusinessNameLabel": "ihr-firmen-name",
|
|
10
|
-
"freeDomainLabel": "Kostenlose Domain",
|
|
11
|
-
"purchasedDomainLabel": "Erworbene Domain",
|
|
12
|
-
"setUrlLabel": "URL festlegen",
|
|
13
|
-
"publishLabel": "Veröffentlichen",
|
|
14
|
-
"viewMoreDomainLabel": "WEITERE DOMAINS ANZEIGEN",
|
|
15
|
-
"viewMyWebsiteLabel": "{{brandPageDisplayName}} anzeigen",
|
|
16
|
-
"copyLabel": "Kopieren",
|
|
17
|
-
"copySuccessLabel": "Kopiert!",
|
|
18
|
-
"publishedSuccessDescriptionLabel": "Kaufen Sie eine passende Domain für Ihre Marke",
|
|
19
|
-
"hasAlreadyPurchasedDomainCloseButtonLabel": "Nein, danke, vielleicht später",
|
|
20
|
-
"selectDomainDropdownPlaceholder": "Domain auswählen"
|
|
21
|
-
"websiteFriendlyName": "Website",
|
|
22
|
-
"digitalBusinessCardFriendlyName": "digitale Visitenkarte"
|
|
2
|
+
"publishBrandPageModal" : {
|
|
3
|
+
"firstTimePublishHeaderLabel" : "Legen Sie die URL für {{brandPageDisplayName}} fest",
|
|
4
|
+
"sitePublishedLabel" : "Seite veröffentlicht!",
|
|
5
|
+
"publishSuccessLabel" : "Ihr {{brandPageDisplayName}} ist live! Beginnen Sie mit der Nutzung Ihres Links:",
|
|
6
|
+
"freePublishCardTitleLabel" : "Freie Adresse",
|
|
7
|
+
"freePublishCardDescriptionLabel" : "Wählen Sie jetzt eine kostenlose Adresse zur Veröffentlichung aus. Sie können die URL später jederzeit bearbeiten",
|
|
8
|
+
"slugInputPlaceholderYourNameLabel" : "ihr-name",
|
|
9
|
+
"slugInputPlaceholderYourBusinessNameLabel" : "ihr-firmen-name",
|
|
10
|
+
"freeDomainLabel" : "Kostenlose Domain",
|
|
11
|
+
"purchasedDomainLabel" : "Erworbene Domain",
|
|
12
|
+
"setUrlLabel" : "URL festlegen",
|
|
13
|
+
"publishLabel" : "Veröffentlichen",
|
|
14
|
+
"viewMoreDomainLabel" : "WEITERE DOMAINS ANZEIGEN",
|
|
15
|
+
"viewMyWebsiteLabel" : "{{brandPageDisplayName}} anzeigen",
|
|
16
|
+
"copyLabel" : "Kopieren",
|
|
17
|
+
"copySuccessLabel" : "Kopiert!",
|
|
18
|
+
"publishedSuccessDescriptionLabel" : "Kaufen Sie eine passende Domain für Ihre Marke",
|
|
19
|
+
"hasAlreadyPurchasedDomainCloseButtonLabel" : "Nein, danke, vielleicht später",
|
|
20
|
+
"selectDomainDropdownPlaceholder" : "Domain auswählen"
|
|
23
21
|
}
|
|
24
|
-
}
|
|
22
|
+
}
|
package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.es-ES.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"publishBrandPageModal": {
|
|
3
|
-
"firstTimePublishHeaderLabel": "Establece la URL para {{brandPageDisplayName}}",
|
|
4
|
-
"sitePublishedLabel": "¡Sitio publicado!",
|
|
5
|
-
"publishSuccessLabel": "¡Tu {{brandPageDisplayName}} está activo! Comienza a usar tu enlace:",
|
|
6
|
-
"freePublishCardTitleLabel": "Dirección gratuita",
|
|
7
|
-
"freePublishCardDescriptionLabel": "Elige una dirección gratuita para publicar ahora. Siempre puedes editar la URL más tarde",
|
|
8
|
-
"slugInputPlaceholderYourNameLabel": "tu-nombre",
|
|
9
|
-
"slugInputPlaceholderYourBusinessNameLabel": "nombre-de-tu-negocio",
|
|
10
|
-
"freeDomainLabel": "Dominio gratis",
|
|
11
|
-
"purchasedDomainLabel": "Dominio adquirido",
|
|
12
|
-
"setUrlLabel": "Establece URL",
|
|
13
|
-
"publishLabel": "Publicar",
|
|
14
|
-
"viewMoreDomainLabel": "VER MÁS DOMINIOS",
|
|
15
|
-
"viewMyWebsiteLabel": "Ver {{brandPageDisplayName}}",
|
|
16
|
-
"copyLabel": "Copiar",
|
|
17
|
-
"copySuccessLabel": "¡Copiado!",
|
|
18
|
-
"publishedSuccessDescriptionLabel": "Compra un nombre de dominio que coincida con tu marca",
|
|
19
|
-
"hasAlreadyPurchasedDomainCloseButtonLabel": "No gracias, quizás más tarde",
|
|
20
|
-
"selectDomainDropdownPlaceholder": "Selecciona un nombre de dominio"
|
|
21
|
-
"websiteFriendlyName": "sitio web",
|
|
22
|
-
"digitalBusinessCardFriendlyName": "tarjeta de visita digital"
|
|
2
|
+
"publishBrandPageModal" : {
|
|
3
|
+
"firstTimePublishHeaderLabel" : "Establece la URL para {{brandPageDisplayName}}",
|
|
4
|
+
"sitePublishedLabel" : "¡Sitio publicado!",
|
|
5
|
+
"publishSuccessLabel" : "¡Tu {{brandPageDisplayName}} está activo! Comienza a usar tu enlace:",
|
|
6
|
+
"freePublishCardTitleLabel" : "Dirección gratuita",
|
|
7
|
+
"freePublishCardDescriptionLabel" : "Elige una dirección gratuita para publicar ahora. Siempre puedes editar la URL más tarde",
|
|
8
|
+
"slugInputPlaceholderYourNameLabel" : "tu-nombre",
|
|
9
|
+
"slugInputPlaceholderYourBusinessNameLabel" : "nombre-de-tu-negocio",
|
|
10
|
+
"freeDomainLabel" : "Dominio gratis",
|
|
11
|
+
"purchasedDomainLabel" : "Dominio adquirido",
|
|
12
|
+
"setUrlLabel" : "Establece URL",
|
|
13
|
+
"publishLabel" : "Publicar",
|
|
14
|
+
"viewMoreDomainLabel" : "VER MÁS DOMINIOS",
|
|
15
|
+
"viewMyWebsiteLabel" : "Ver {{brandPageDisplayName}}",
|
|
16
|
+
"copyLabel" : "Copiar",
|
|
17
|
+
"copySuccessLabel" : "¡Copiado!",
|
|
18
|
+
"publishedSuccessDescriptionLabel" : "Compra un nombre de dominio que coincida con tu marca",
|
|
19
|
+
"hasAlreadyPurchasedDomainCloseButtonLabel" : "No gracias, quizás más tarde",
|
|
20
|
+
"selectDomainDropdownPlaceholder" : "Selecciona un nombre de dominio"
|
|
23
21
|
}
|
|
24
|
-
}
|
|
22
|
+
}
|
package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.fr-FR.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"publishBrandPageModal": {
|
|
3
|
-
"firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
|
|
4
|
-
"sitePublishedLabel": "Site publié !",
|
|
5
|
-
"publishSuccessLabel": "Votre {{brandPageDisplayName}} est en ligne ! Commencez à utiliser votre lien :",
|
|
6
|
-
"freePublishCardTitleLabel": "Adresse libre",
|
|
7
|
-
"freePublishCardDescriptionLabel": "Choisissez une adresse gratuite pour publier maintenant. Vous pouvez toujours modifier l'URL plus tard",
|
|
8
|
-
"slugInputPlaceholderYourNameLabel": "your-name",
|
|
9
|
-
"slugInputPlaceholderYourBusinessNameLabel": "nom-de-votre-entreprise",
|
|
10
|
-
"freeDomainLabel": "Domaine gratuit",
|
|
11
|
-
"purchasedDomainLabel": "Domaine acheté",
|
|
12
|
-
"setUrlLabel": "Définir l'URL",
|
|
13
|
-
"publishLabel": "Publier",
|
|
14
|
-
"viewMoreDomainLabel": "VOIR PLUS DE NOMS DE DOMAINE",
|
|
15
|
-
"viewMyWebsiteLabel": "Voir {{brandPageDisplayName}}",
|
|
16
|
-
"copyLabel": "Copier",
|
|
17
|
-
"copySuccessLabel": "Copié !",
|
|
18
|
-
"publishedSuccessDescriptionLabel": "Achetez un nom de domaine correspondant à votre marque",
|
|
19
|
-
"hasAlreadyPurchasedDomainCloseButtonLabel": "Non merci, peut-être plus tard",
|
|
20
|
-
"selectDomainDropdownPlaceholder": "Sélectionner un nom de domaine"
|
|
21
|
-
"websiteFriendlyName": "site Web",
|
|
22
|
-
"digitalBusinessCardFriendlyName": "carte de visite numérique"
|
|
2
|
+
"publishBrandPageModal" : {
|
|
3
|
+
"firstTimePublishHeaderLabel" : "Définissez l'URL pour {{brandPageDisplayName}}",
|
|
4
|
+
"sitePublishedLabel" : "Site publié !",
|
|
5
|
+
"publishSuccessLabel" : "Votre {{brandPageDisplayName}} est en ligne ! Commencez à utiliser votre lien :",
|
|
6
|
+
"freePublishCardTitleLabel" : "Adresse libre",
|
|
7
|
+
"freePublishCardDescriptionLabel" : "Choisissez une adresse gratuite pour publier maintenant. Vous pouvez toujours modifier l'URL plus tard",
|
|
8
|
+
"slugInputPlaceholderYourNameLabel" : "your-name",
|
|
9
|
+
"slugInputPlaceholderYourBusinessNameLabel" : "nom-de-votre-entreprise",
|
|
10
|
+
"freeDomainLabel" : "Domaine gratuit",
|
|
11
|
+
"purchasedDomainLabel" : "Domaine acheté",
|
|
12
|
+
"setUrlLabel" : "Définir l'URL",
|
|
13
|
+
"publishLabel" : "Publier",
|
|
14
|
+
"viewMoreDomainLabel" : "VOIR PLUS DE NOMS DE DOMAINE",
|
|
15
|
+
"viewMyWebsiteLabel" : "Voir {{brandPageDisplayName}}",
|
|
16
|
+
"copyLabel" : "Copier",
|
|
17
|
+
"copySuccessLabel" : "Copié !",
|
|
18
|
+
"publishedSuccessDescriptionLabel" : "Achetez un nom de domaine correspondant à votre marque",
|
|
19
|
+
"hasAlreadyPurchasedDomainCloseButtonLabel" : "Non merci, peut-être plus tard",
|
|
20
|
+
"selectDomainDropdownPlaceholder" : "Sélectionner un nom de domaine"
|
|
23
21
|
}
|
|
24
|
-
}
|
|
22
|
+
}
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
}
|
|
2
|
+
"publishBrandPageModal": {
|
|
3
|
+
"firstTimePublishHeaderLabel": "Set the URL for {{brandPageDisplayName}}",
|
|
4
|
+
"sitePublishedLabel": "Site published!",
|
|
5
|
+
"publishSuccessLabel": "Your {{brandPageDisplayName}} is live! Start using your link:",
|
|
6
|
+
"freePublishCardTitleLabel": "Free Address",
|
|
7
|
+
"freePublishCardDescriptionLabel": "Choose a free address to publish now. You can always edit the URL later",
|
|
8
|
+
"slugInputPlaceholderYourNameLabel": "your-name",
|
|
9
|
+
"slugInputPlaceholderYourBusinessNameLabel": "your-business-name",
|
|
10
|
+
"freeDomainLabel": "Free domain",
|
|
11
|
+
"purchasedDomainLabel": "Purchased domain",
|
|
12
|
+
"setUrlLabel": "Set URL",
|
|
13
|
+
"publishLabel": "Publish",
|
|
14
|
+
"viewMoreDomainLabel": "VIEW MORE DOMAINS",
|
|
15
|
+
"viewMyWebsiteLabel": "View {{brandPageDisplayName}}",
|
|
16
|
+
"copyLabel": "Copy",
|
|
17
|
+
"copySuccessLabel": "Copied!",
|
|
18
|
+
"publishedSuccessDescriptionLabel": "Buy matching domain name for your brand",
|
|
19
|
+
"hasAlreadyPurchasedDomainCloseButtonLabel": "No thanks, maybe later",
|
|
20
|
+
"selectDomainDropdownPlaceholder": "Select domain name"
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.pt-PT.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"publishBrandPageModal": {
|
|
3
|
-
"firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
|
|
4
|
-
"sitePublishedLabel": "Site publicado!",
|
|
5
|
-
"publishSuccessLabel": "A sua página {{brandPageDisplayName}} está ativa! Comece a utilizar o link:",
|
|
6
|
-
"freePublishCardTitleLabel": "Endereço gratuito",
|
|
7
|
-
"freePublishCardDescriptionLabel": "Escolha um endereço gratuito para publicar agora. Pode sempre editar o URL mais tarde",
|
|
8
|
-
"slugInputPlaceholderYourNameLabel": "o-seu-nome",
|
|
9
|
-
"slugInputPlaceholderYourBusinessNameLabel": "nome-da-sua-empresa",
|
|
10
|
-
"freeDomainLabel": "Domínio gratuito",
|
|
11
|
-
"purchasedDomainLabel": "Domínio comprado",
|
|
12
|
-
"setUrlLabel": "Definir URL",
|
|
13
|
-
"publishLabel": "Publicar",
|
|
14
|
-
"viewMoreDomainLabel": "VER MAIS DOMÍNIOS",
|
|
15
|
-
"viewMyWebsiteLabel": "Ver {{brandPageDisplayName}}",
|
|
16
|
-
"copyLabel": "Copiar",
|
|
17
|
-
"copySuccessLabel": "Copiado!",
|
|
18
|
-
"publishedSuccessDescriptionLabel": "Compre um nome de domínio que corresponda à sua marca",
|
|
19
|
-
"hasAlreadyPurchasedDomainCloseButtonLabel": "Não, obrigado, talvez mais tarde",
|
|
20
|
-
"selectDomainDropdownPlaceholder": "Selecionar nome de domínio"
|
|
21
|
-
"websiteFriendlyName": "website",
|
|
22
|
-
"digitalBusinessCardFriendlyName": "cartão de visita digital"
|
|
2
|
+
"publishBrandPageModal" : {
|
|
3
|
+
"firstTimePublishHeaderLabel" : "Defina o URL para {{brandPageDisplayName}}",
|
|
4
|
+
"sitePublishedLabel" : "Site publicado!",
|
|
5
|
+
"publishSuccessLabel" : "A sua página {{brandPageDisplayName}} está ativa! Comece a utilizar o link:",
|
|
6
|
+
"freePublishCardTitleLabel" : "Endereço gratuito",
|
|
7
|
+
"freePublishCardDescriptionLabel" : "Escolha um endereço gratuito para publicar agora. Pode sempre editar o URL mais tarde",
|
|
8
|
+
"slugInputPlaceholderYourNameLabel" : "o-seu-nome",
|
|
9
|
+
"slugInputPlaceholderYourBusinessNameLabel" : "nome-da-sua-empresa",
|
|
10
|
+
"freeDomainLabel" : "Domínio gratuito",
|
|
11
|
+
"purchasedDomainLabel" : "Domínio comprado",
|
|
12
|
+
"setUrlLabel" : "Definir URL",
|
|
13
|
+
"publishLabel" : "Publicar",
|
|
14
|
+
"viewMoreDomainLabel" : "VER MAIS DOMÍNIOS",
|
|
15
|
+
"viewMyWebsiteLabel" : "Ver {{brandPageDisplayName}}",
|
|
16
|
+
"copyLabel" : "Copiar",
|
|
17
|
+
"copySuccessLabel" : "Copiado!",
|
|
18
|
+
"publishedSuccessDescriptionLabel" : "Compre um nome de domínio que corresponda à sua marca",
|
|
19
|
+
"hasAlreadyPurchasedDomainCloseButtonLabel" : "Não, obrigado, talvez mais tarde",
|
|
20
|
+
"selectDomainDropdownPlaceholder" : "Selecionar nome de domínio"
|
|
23
21
|
}
|
|
24
|
-
}
|
|
22
|
+
}
|
|
@@ -67,6 +67,47 @@ const getCurrentLocale = () => {
|
|
|
67
67
|
return i18next.language || 'en-US';
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
const formatCurrency = (amount, locale, currency, fraction = 0, showAbbreviation = false) => {
|
|
71
|
+
let localeAmount = i18next.t('{{val, currency}}', {
|
|
72
|
+
ns: 'fe-shared-lib',
|
|
73
|
+
val: amount,
|
|
74
|
+
currency: currency.iso4127Code,
|
|
75
|
+
locale: locale,
|
|
76
|
+
maximumFractionDigits: fraction,
|
|
77
|
+
useGrouping: false,
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
const abbreviationTrimmed = currency.abbreviation.trim();
|
|
81
|
+
const symbolTrimmed = currency.symbol.trim();
|
|
82
|
+
|
|
83
|
+
// i18next always uses iso code for ZAR, prefer symbol over iso code
|
|
84
|
+
if (localeAmount.includes(currency.iso4127Code) && currency.iso4127Code === 'ZAR') {
|
|
85
|
+
return localeAmount.replace(currency.iso4127Code, symbolTrimmed);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// edge case
|
|
89
|
+
if (localeAmount.includes(currency.iso4127Code)) {
|
|
90
|
+
return localeAmount.replace(currency.iso4127Code, symbolTrimmed);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// show abbreviation locale logic
|
|
94
|
+
// note: showAbbreviation is only passed as true for symbol = "$"
|
|
95
|
+
if (currency.symbol.trim() !== '$') {
|
|
96
|
+
return localeAmount;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const altAudAbbreviation = 'AU';
|
|
100
|
+
if (showAbbreviation && !localeAmount.includes(abbreviationTrimmed)) {
|
|
101
|
+
return localeAmount.replace(symbolTrimmed,`${abbreviationTrimmed}${symbolTrimmed}`);
|
|
102
|
+
} else if (!showAbbreviation && localeAmount.includes(altAudAbbreviation)) {
|
|
103
|
+
return localeAmount.replace(altAudAbbreviation, '');
|
|
104
|
+
} else if (!showAbbreviation && localeAmount.includes(abbreviationTrimmed)) {
|
|
105
|
+
return localeAmount.replace(abbreviationTrimmed, '');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return localeAmount;
|
|
109
|
+
}
|
|
110
|
+
|
|
70
111
|
export {
|
|
71
112
|
setSharedLibLocaleAsync,
|
|
72
113
|
getCurrentLocale,
|
|
@@ -81,4 +122,5 @@ export {
|
|
|
81
122
|
uploadYourLogoTr,
|
|
82
123
|
sharedPaymentConfigTr,
|
|
83
124
|
priceTr,
|
|
125
|
+
formatCurrency,
|
|
84
126
|
};
|