@designcrowd/fe-shared-lib 1.2.0-ml-jj-10 → 1.2.0-ml-jj-13

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.
Files changed (59) hide show
  1. package/Dockerfile +2 -0
  2. package/index.js +1 -1
  3. package/nodemon.translation.json +7 -0
  4. package/package.json +7 -2
  5. package/src/atoms/components/Icon/Icon.vue +3 -3
  6. package/src/bundleTranslation.js +79 -0
  7. package/src/bundles/bundled-translations.de-DE.json +51 -0
  8. package/src/bundles/bundled-translations.es-ES.json +51 -0
  9. package/src/bundles/bundled-translations.fr-FR.json +51 -0
  10. package/src/bundles/bundled-translations.json +51 -0
  11. package/src/bundles/bundled-translations.pt-PT.json +51 -0
  12. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +1 -1
  13. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue +3 -3
  14. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +42 -27
  15. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.de-DE.json +21 -0
  16. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.es-ES.json +21 -0
  17. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.fr-FR.json +21 -0
  18. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.json +21 -0
  19. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.pt-PT.json +21 -0
  20. package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +6 -8
  21. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.de-DE.json +8 -0
  22. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.es-ES.json +8 -0
  23. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.fr-FR.json +8 -0
  24. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.json +8 -0
  25. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.pt-PT.json +8 -0
  26. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.stories.js +0 -15
  27. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.vue +3 -12
  28. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.de-DE.json +6 -0
  29. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.es-ES.json +6 -0
  30. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.fr-FR.json +6 -0
  31. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.json +6 -0
  32. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.pt-PT.json +6 -0
  33. package/src/experiences/components/SellDomainNameModalApplication/SellDomainNameModalApplication.vue +3 -6
  34. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.de-DE.json +6 -0
  35. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.es-ES.json +6 -0
  36. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.fr-FR.json +6 -0
  37. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.json +6 -0
  38. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.pt-PT.json +6 -0
  39. package/src/experiences/components/SellDomainNameSearch/SellDomainNameSearch.vue +6 -10
  40. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.de-DE.json +8 -0
  41. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.es-ES.json +8 -0
  42. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.fr-FR.json +8 -0
  43. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.json +8 -0
  44. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.pt-PT.json +8 -0
  45. package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue +11 -9
  46. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.de-DE.json +6 -0
  47. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.es-ES.json +6 -0
  48. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.fr-FR.json +6 -0
  49. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.json +6 -0
  50. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.pt-PT.json +6 -0
  51. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +4 -5
  52. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.vue +5 -8
  53. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.de-DE.json +8 -0
  54. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.es-ES.json +8 -0
  55. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.fr-FR.json +8 -0
  56. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.json +8 -0
  57. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.pt-PT.json +8 -0
  58. package/src/useSharedLibTranslate.js +38 -0
  59. package/src/experiences/components/SellDomainNameSearch/useSellDomainContent.js +0 -46
@@ -0,0 +1,21 @@
1
+ {
2
+ "publishBrandPageModal": {
3
+ "firstTimePublishHeaderLabel": "Définissez l'URL de votre site {brandPageDisplayName}",
4
+ "sitePublishedLabel": "Site publié !",
5
+ "publishSuccessLabel": "Votre site {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 le site {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
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ {
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
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "publishBrandPageModal": {
3
+ "firstTimePublishHeaderLabel": "Defina o URL do seu {brandPageDisplayName}",
4
+ "sitePublishedLabel": "Site publicado!",
5
+ "publishSuccessLabel": "O seu {brandPageDisplayName} está ativo! Comece a usar o seu 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
+ }
21
+ }
@@ -63,11 +63,10 @@
63
63
  </div>
64
64
  </template>
65
65
  <script>
66
- import { computed } from 'vue';
67
66
  import Button from '../../../atoms/components/Button/Button.vue';
68
67
  import Price from '../../../atoms/components/Price/Price.vue';
69
- import useSellDomainContent from '../SellDomainNameSearch/useSellDomainContent';
70
68
  import Events from '../../constants/event-constants';
69
+ import { tr } from '../../../useSharedLibTranslate';
71
70
 
72
71
  export default {
73
72
  components: {
@@ -110,13 +109,11 @@ export default {
110
109
  },
111
110
  emits: ['load-more-domains'],
112
111
  setup() {
113
- const contentProvider = useSellDomainContent();
114
- const content = contentProvider.getContent();
115
112
  return {
116
- freeDomainButtonLabel: computed(() => content.value.freeDomainButtonLabel),
117
- buyNowButtonLabel: computed(() => content.value.buyNowButtonLabel),
118
- pricePerYearLabel: computed(() => content.value.pricePerYearLabel),
119
- costPriceLabel: computed(() => content.value.costPriceLabel),
113
+ freeDomainButtonLabel: tr('sellDomainNameList.freeDomainButtonLabel'),
114
+ buyNowButtonLabel: tr('sellDomainNameList.buyNowButtonLabel'),
115
+ pricePerYearLabel: tr('sellDomainNameList.pricePerYearLabel'),
116
+ costPriceLabel: tr('sellDomainNameList.costPriceLabel'),
120
117
  };
121
118
  },
122
119
  methods: {
@@ -125,6 +122,7 @@ export default {
125
122
  if (typeof this.domainSearchLocation !== 'undefined') {
126
123
  request.domainSearchLocation = this.domainSearchLocation;
127
124
  }
125
+ this.$emit('on-buy-now-click');
128
126
  window.dispatchEvent(
129
127
  new CustomEvent(Events.DomainSelectedEvent, {
130
128
  detail: request,
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameList": {
3
+ "freeDomainButtonLabel": "Kostenlose Domain",
4
+ "buyNowButtonLabel": "Jetzt kaufen",
5
+ "pricePerYearLabel": "/yr",
6
+ "costPriceLabel": "Kostenpreis:"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameList": {
3
+ "freeDomainButtonLabel": "Dominio gratis",
4
+ "buyNowButtonLabel": "Comprar ahora",
5
+ "pricePerYearLabel": "/yr",
6
+ "costPriceLabel": "Precio de coste:"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameList": {
3
+ "freeDomainButtonLabel": "Domaine gratuit",
4
+ "buyNowButtonLabel": "Acheter",
5
+ "pricePerYearLabel": "/yr",
6
+ "costPriceLabel": "Prix de revient:"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameList": {
3
+ "freeDomainButtonLabel": "Free Domain",
4
+ "buyNowButtonLabel": "Buy Now",
5
+ "pricePerYearLabel": "/yr",
6
+ "costPriceLabel": "Cost Price:"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameList": {
3
+ "freeDomainButtonLabel": "Domínio gratuito",
4
+ "buyNowButtonLabel": "Comprar Agora",
5
+ "pricePerYearLabel": "/yr",
6
+ "costPriceLabel": "Preço de Custo:"
7
+ }
8
+ }
@@ -1,6 +1,5 @@
1
1
  import { domainNamesFixture } from '../SellDomainNameList/SellDomainNameList.fixtures';
2
2
  import SellDomainNameListModal from './SellDomainNameListModal.vue';
3
- import useSellDomainContent from '../SellDomainNameSearch/useSellDomainContent';
4
3
 
5
4
  export default {
6
5
  title: 'Components/SellDomainNameListModal',
@@ -12,20 +11,6 @@ export const Sample = () => {
12
11
  components: {
13
12
  SellDomainNameListModal,
14
13
  },
15
- setup() {
16
- const contentProvider = useSellDomainContent();
17
-
18
- setTimeout(() => {
19
- console.log('SETTE');
20
- contentProvider.setGlobalContentHandler(() => {
21
- return {
22
- domainSearchHeaderTitle: '++++Search a domain name',
23
- };
24
- });
25
- }, 7000);
26
-
27
- return {};
28
- },
29
14
  data() {
30
15
  return {
31
16
  domainNamesFixture,
@@ -16,7 +16,6 @@
16
16
  :header-title="headerTitle || domainSearchHeaderTitle"
17
17
  :header-subtitle="headerSubtitle || domainSearchHeaderSubtitle"
18
18
  :initial-search-term="modelValue"
19
- :search-button-label="searchButtonLabel"
20
19
  @onSearch="onSearch"
21
20
  @onSearchTextInputChange="onSearchTextInputChange"
22
21
  />
@@ -35,12 +34,11 @@
35
34
  </Modal>
36
35
  </template>
37
36
  <script>
38
- import { computed } from 'vue';
39
37
  import Modal from '../../../atoms/components/Modal/Modal.vue';
38
+ import { tr } from '../../../useSharedLibTranslate';
40
39
 
41
40
  import SellDomainNameSearch from '../SellDomainNameSearch/SellDomainNameSearch.vue';
42
41
  import SellDomainNameSearchResult from '../SellDomainNameSearchResult/SellDomainNameListSearchResult.vue';
43
- import useSellDomainContent from '../SellDomainNameSearch/useSellDomainContent';
44
42
 
45
43
  export default {
46
44
  components: {
@@ -92,19 +90,12 @@ export default {
92
90
  type: String,
93
91
  default: undefined,
94
92
  },
95
- searchButtonLabel: {
96
- type: String,
97
- default: 'Search',
98
- },
99
93
  },
100
94
  emits: ['close-modal', 'input', 'search'],
101
95
  setup() {
102
- const contentProvider = useSellDomainContent();
103
- const content = contentProvider.getContent();
104
96
  return {
105
- translationContent: content,
106
- domainSearchHeaderTitle: computed(() => content.value.domainSearchHeaderTitle),
107
- domainSearchHeaderSubtitle: computed(() => content.value.domainSearchHeaderSubtitle),
97
+ domainSearchHeaderTitle: tr('sellDomainNameListModal.domainSearchHeaderTitle'),
98
+ domainSearchHeaderSubtitle: tr('sellDomainNameListModal.domainSearchHeaderSubtitle'),
108
99
  };
109
100
  },
110
101
  methods: {
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListModal": {
3
+ "domainSearchHeaderTitle": "Domainname suchen",
4
+ "domainSearchHeaderSubtitle": "Kaufen Sie eine passende Domain für Ihre Marke"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListModal": {
3
+ "domainSearchHeaderTitle": "Busca un nombre de dominio",
4
+ "domainSearchHeaderSubtitle": "Compra un nombre de dominio que coincida con tu marca"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListModal": {
3
+ "domainSearchHeaderTitle": "Rechercher un nom de domaine",
4
+ "domainSearchHeaderSubtitle": "Achetez un nom de domaine correspondant à votre marque"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListModal": {
3
+ "domainSearchHeaderTitle": "Search a domain name",
4
+ "domainSearchHeaderSubtitle": "Buy matching domain name for your brand"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListModal": {
3
+ "domainSearchHeaderTitle": "Pesquisar um nome de domínio",
4
+ "domainSearchHeaderSubtitle": "Compre um nome de domínio que corresponda à sua marca"
5
+ }
6
+ }
@@ -71,13 +71,12 @@
71
71
  </template>
72
72
  </template>
73
73
  <script>
74
- import { computed } from 'vue';
75
74
  import Modal from '../../../atoms/components/Modal/Modal.vue';
76
75
  import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
77
76
  import SellDomainNameSearch from '../SellDomainNameSearch/SellDomainNameSearch.vue';
78
77
  import SellDomainNameSearchResult from '../SellDomainNameSearchResult/SellDomainNameListSearchResult.vue';
79
78
  import Events from '../../constants/event-constants';
80
- import useSellDomainContent from '../SellDomainNameSearch/useSellDomainContent';
79
+ import { tr } from '../../../useSharedLibTranslate';
81
80
 
82
81
  export default {
83
82
  components: {
@@ -122,11 +121,9 @@ export default {
122
121
  },
123
122
  },
124
123
  setup() {
125
- const contentProvider = useSellDomainContent();
126
- const content = contentProvider.getContent();
127
124
  return {
128
- domainSearchHeaderTitle: computed(() => content.value.domainSearchHeaderTitle),
129
- domainSearchHeaderSubtitle: computed(() => content.value.domainSearchHeaderSubtitle),
125
+ domainSearchHeaderTitle: tr('sellDomainNameModalApplication.domainSearchHeaderTitle'),
126
+ domainSearchHeaderSubtitle: tr('sellDomainNameModalApplication.domainSearchHeaderTitle'),
130
127
  };
131
128
  },
132
129
  data: () => ({
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameModalApplication": {
3
+ "domainSearchHeaderTitle": "Domainname suchen",
4
+ "domainSearchHeaderSubtitle": "Kaufen Sie eine passende Domain für Ihre Marke"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameModalApplication": {
3
+ "domainSearchHeaderTitle": "Busca un nombre de dominio",
4
+ "domainSearchHeaderSubtitle": "Compra un nombre de dominio que coincida con tu marca"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameModalApplication": {
3
+ "domainSearchHeaderTitle": "Rechercher un nom de domaine",
4
+ "domainSearchHeaderSubtitle": "Achetez un nom de domaine correspondant à votre marque"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameModalApplication": {
3
+ "domainSearchHeaderTitle": "Search a domain name",
4
+ "domainSearchHeaderSubtitle": "Buy matching domain name for your brand"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameModalApplication": {
3
+ "domainSearchHeaderTitle": "Pesquisar um nome de domínio",
4
+ "domainSearchHeaderSubtitle": "Compre um nome de domínio que corresponda à sua marca"
5
+ }
6
+ }
@@ -41,11 +41,10 @@
41
41
  </div>
42
42
  </template>
43
43
  <script>
44
- import { computed } from 'vue';
45
44
  import Button from '../../../atoms/components/Button/Button.vue';
46
45
  import TextInput from '../../../atoms/components/TextInput/TextInput.vue';
47
- import useSellDomainContent from './useSellDomainContent';
48
46
  import { sellDomainNameMinSearchTextLength } from '../../constants/sell-domain-name-constants';
47
+ import { tr } from '../../../useSharedLibTranslate';
49
48
 
50
49
  export default {
51
50
  components: {
@@ -82,15 +81,12 @@ export default {
82
81
  },
83
82
  },
84
83
  emits: ['onSearch', 'onSearchTextInputChange'],
85
- setup(props) {
86
- const contentProvider = useSellDomainContent(props.contentOverride);
87
- const content = contentProvider.getContent();
88
-
84
+ setup() {
89
85
  return {
90
- searchButtonLabel: computed(() => content.value.searchButtonLabel),
91
- searchBarLabel: computed(() => content.value.searchBarLabel),
92
- searchBarPlaceholder: computed(() => content.value.searchBarPlaceholder),
93
- searchBarPreText: computed(() => content.value.searchBarPreText),
86
+ searchButtonLabel: tr('sellDomainNameSearch.searchButtonLabel'),
87
+ searchBarLabel: tr('sellDomainNameSearch.searchBarLabel'),
88
+ searchBarPlaceholder: tr('sellDomainNameSearch.searchBarPlaceholder'),
89
+ searchBarPreText: tr('sellDomainNameSearch.searchBarPreText'),
94
90
  };
95
91
  },
96
92
  data() {
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameSearch": {
3
+ "searchButtonLabel": "Suche",
4
+ "searchBarLabel": "Suche",
5
+ "searchBarPlaceholder": "Domainnamen suchen",
6
+ "searchBarPreText": "Domainname"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameSearch": {
3
+ "searchButtonLabel": "Buscar",
4
+ "searchBarLabel": "Buscar",
5
+ "searchBarPlaceholder": "Busca nombres de dominio",
6
+ "searchBarPreText": "Nombre de dominio"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameSearch": {
3
+ "searchButtonLabel": "Rechercher",
4
+ "searchBarLabel": "Rechercher",
5
+ "searchBarPlaceholder": "Rechercher des noms de domaine",
6
+ "searchBarPreText": "Nom de domaine"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameSearch": {
3
+ "searchButtonLabel": "Search",
4
+ "searchBarLabel": "Search",
5
+ "searchBarPlaceholder": "Search domain names",
6
+ "searchBarPreText": "Domain name"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameSearch": {
3
+ "searchButtonLabel": "Pesquisar",
4
+ "searchBarLabel": "Pesquisar",
5
+ "searchBarPlaceholder": "Pesquisar nomes de domínio",
6
+ "searchBarPreText": "Nome de domínio"
7
+ }
8
+ }
@@ -25,6 +25,7 @@
25
25
  :load-more-domains-button-text="loadMoreDomainsButtonText"
26
26
  :domain-search-location="domainSearchLocation"
27
27
  @load-more-domains="onLoadMoreDomains"
28
+ @on-buy-now-click="onBuyNowClick"
28
29
  />
29
30
  <div v-else-if="shouldShowDomainNameNotFound" class="tw-flex tw-justify-center tw-text-center">
30
31
  {{ domainSearchEmptyMessageWithUserDomainName }}
@@ -36,12 +37,11 @@
36
37
  </template>
37
38
 
38
39
  <script>
39
- import { computed } from 'vue';
40
40
  import Loader from '../../../atoms/components/Loader/Loader.vue';
41
41
  import Picture from '../../../atoms/components/Picture/Picture.vue';
42
42
  import SellDomainNameList from '../SellDomainNameList/SellDomainNameList.vue';
43
43
  import Events from '../../constants/event-constants';
44
- import useSellDomainContent from '../SellDomainNameSearch/useSellDomainContent';
44
+ import { tr } from '../../../useSharedLibTranslate';
45
45
 
46
46
  export default {
47
47
  components: {
@@ -101,13 +101,10 @@ export default {
101
101
  default: undefined,
102
102
  },
103
103
  },
104
- setup(props) {
105
- const contentProvider = useSellDomainContent(props.contentOverride);
106
- const content = contentProvider.getContent();
107
-
104
+ setup() {
108
105
  return {
109
- domainSearchEmptyMessage: computed(() => content.value.domainSearchEmptyMessage),
110
- searchAnotherDomainMessage: computed(() => content.value.searchAnotherDomainMessage),
106
+ tr,
107
+ searchAnotherDomainMessage: tr('sellDomainNameListSearchResult.searchAnotherDomainMessage'),
111
108
  };
112
109
  },
113
110
  data() {
@@ -117,7 +114,9 @@ export default {
117
114
  },
118
115
  computed: {
119
116
  domainSearchEmptyMessageWithUserDomainName() {
120
- return this.domainSearchEmptyMessage.replace('{domainNameSearchTerm}', this.previousSearchText);
117
+ return tr('sellDomainNameListSearchResult.domainSearchEmptyMessage', {
118
+ domainNameSearchTerm: this.previousSearchText,
119
+ });
121
120
  },
122
121
  shouldShowDomainNameNotFound() {
123
122
  return (
@@ -158,6 +157,9 @@ export default {
158
157
  window.dispatchEvent(new CustomEvent(Events.DomainLoadMoreEvent));
159
158
  this.domainNameItemsInView += this.domainNameItemsPerPage;
160
159
  },
160
+ onBuyNowClick() {
161
+ this.$emit('on-buy-now-click');
162
+ },
161
163
  resetDomainNameItemsInView() {
162
164
  this.domainNameItemsInView = this.domainNameItemsPerPage;
163
165
  },
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListSearchResult": {
3
+ "domainSearchEmptyMessage": "Leider konnten wir keine Domain für \"{domainNameSearchTerm}\" finden.",
4
+ "searchAnotherDomainMessage": "Versuchen Sie, mit einer anderen Domain zu suchen."
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListSearchResult": {
3
+ "domainSearchEmptyMessage": "Lo siento, no hemos podido encontrar ningún dominio para \"{domainNameSearchTerm}\".",
4
+ "searchAnotherDomainMessage": "Prueba a buscar con otro nombre de dominio."
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListSearchResult": {
3
+ "domainSearchEmptyMessage": "Désolé, nous n’avons pas trouvé de nom de domaine pour \"{domainNameSearchTerm}\".",
4
+ "searchAnotherDomainMessage": "Essayez de faire une recherche avec un autre nom de domaine."
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListSearchResult": {
3
+ "domainSearchEmptyMessage": "Sorry, we couldn't find any domain for \"{domainNameSearchTerm}\".",
4
+ "searchAnotherDomainMessage": "Try searching with another domain name."
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sellDomainNameListSearchResult": {
3
+ "domainSearchEmptyMessage": "Não conseguimos encontrar nenhum domínio para \"{domainNameSearchTerm}\".",
4
+ "searchAnotherDomainMessage": "Experimente pesquisar outro nome de domínio."
5
+ }
6
+ }
@@ -4,7 +4,6 @@
4
4
  :is-design-com="isDesignCom"
5
5
  :initial-search-term="initialSearchTerm"
6
6
  :show-white-search-background="showWhiteSearchBackground"
7
- :search-button-label="searchButtonLabel"
8
7
  @onSearch="onSearchDomainName"
9
8
  />
10
9
  <SellDomainNameSearchResult
@@ -21,6 +20,7 @@
21
20
  :domain-name-items-per-page="domainNameItemsPerPage"
22
21
  :load-more-domains-button-text="loadMoreDomainsButtonText"
23
22
  :domain-search-location="domainSearchLocation"
23
+ @on-buy-now-click="onBuyNowClick"
24
24
  />
25
25
  </div>
26
26
  </template>
@@ -101,10 +101,6 @@ export default {
101
101
  type: Number,
102
102
  default: undefined,
103
103
  },
104
- searchButtonLabel: {
105
- type: String,
106
- default: () => 'Search',
107
- },
108
104
  },
109
105
  data: () => ({
110
106
  domainNameItems: undefined,
@@ -175,6 +171,9 @@ export default {
175
171
  this.isBusy = false;
176
172
  }
177
173
  },
174
+ onBuyNowClick() {
175
+ this.$emit('on-buy-now-click');
176
+ },
178
177
  cleanText(inputText) {
179
178
  // In this function, we use the Unicode property escapes \p{L} and \p{N} to match any Unicode letters (characters from various scripts) and Unicode numbers, respectively.
180
179
  const cleanedText = inputText.replace(/[^\p{L}\p{N}\-.]+/gu, '');
@@ -38,14 +38,13 @@
38
38
  </div>
39
39
  </template>
40
40
  <script>
41
- import { computed } from 'vue';
41
+ import { tr } from '../../../useSharedLibTranslate';
42
42
  import Button from '../../../atoms/components/Button/Button.vue';
43
43
  import TextInput from '../../../atoms/components/TextInput/TextInput.vue';
44
44
  import SellDomainNameListModal from '../SellDomainNameListModal/SellDomainNameListModal.vue';
45
45
  import { sellDomainNameMinSearchTextLength } from '../../constants/sell-domain-name-constants';
46
46
  import Events from '../../constants/event-constants';
47
47
  import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
48
- import useSellDomainContent from '../SellDomainNameSearch/useSellDomainContent';
49
48
 
50
49
  export default {
51
50
  components: {
@@ -75,13 +74,11 @@ export default {
75
74
  },
76
75
  },
77
76
  setup() {
78
- const contentProvider = useSellDomainContent();
79
- const content = contentProvider.getContent();
80
77
  return {
81
- searchButtonLabel: computed(() => content.value.searchButtonLabel),
82
- searchBarLabel: computed(() => content.value.searchBarLabel),
83
- searchBarPlaceholder: computed(() => content.value.searchBarPlaceholder),
84
- domainSearchOrConnectHeaderSubtitle: computed(() => content.value.domainSearchOrConnectHeaderSubtitle),
78
+ searchButtonLabel: tr('sellDomainNameWidget.searchButtonLabel'),
79
+ searchBarLabel: tr('sellDomainNameWidget.searchBarLabel'),
80
+ searchBarPlaceholder: tr('sellDomainNameWidget.searchBarPlaceholder'),
81
+ domainSearchOrConnectHeaderSubtitle: tr('sellDomainNameWidget.domainSearchOrConnectHeaderSubtitle'),
85
82
  };
86
83
  },
87
84
  data: () => ({
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameWidget": {
3
+ "searchButtonLabel": "Suche",
4
+ "searchBarLabel": "Suche",
5
+ "searchBarPlaceholder": "Domainnamen suchen",
6
+ "domainSearchOrConnectHeaderSubtitle": "Kaufen Sie passende Domains für Ihre Marke oder verknüpfen Sie Ihre bestehende Domain"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameWidget": {
3
+ "searchButtonLabel": "Buscar",
4
+ "searchBarLabel": "Buscar",
5
+ "searchBarPlaceholder": "Busca nombres de dominio",
6
+ "domainSearchOrConnectHeaderSubtitle": "Compra un nombre de dominio que coincida con tu marca o conecta tu dominio existente"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameWidget": {
3
+ "searchButtonLabel": "Rechercher",
4
+ "searchBarLabel": "Rechercher",
5
+ "searchBarPlaceholder": "Rechercher des noms de domaine",
6
+ "domainSearchOrConnectHeaderSubtitle": "Achetez un nom de domaine correspondant à votre marque ou connectez votre domaine existant"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameWidget": {
3
+ "searchButtonLabel": "Search",
4
+ "searchBarLabel": "Search",
5
+ "searchBarPlaceholder": "Search domain names",
6
+ "domainSearchOrConnectHeaderSubtitle": "Buy matching domain name for your brand or connect your existing domain"
7
+ }
8
+ }