@designcrowd/fe-shared-lib 1.2.2-data-id-2 → 1.2.2-ml-jj-1

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 (68) hide show
  1. package/dist/css/tailwind-brandCrowd.css +2419 -0
  2. package/dist/css/tailwind-brandPage.css +2107 -0
  3. package/dist/css/tailwind-crazyDomains.css +2419 -0
  4. package/dist/css/tailwind-designCom.css +2419 -0
  5. package/dist/css/tailwind-designCrowd.css +2419 -0
  6. package/index.js +1 -1
  7. package/package.json +5 -2
  8. package/public/css/tailwind-brandCrowd.css +26 -0
  9. package/public/css/tailwind-brandPage.css +22 -0
  10. package/public/css/tailwind-crazyDomains.css +26 -0
  11. package/public/css/tailwind-designCom.css +26 -0
  12. package/public/css/tailwind-designCrowd.css +26 -0
  13. package/src/atoms/components/Icon/Icon.vue +0 -1
  14. package/src/bundles/bundled-translations.de-DE.json +48 -2
  15. package/src/bundles/bundled-translations.es-ES.json +48 -2
  16. package/src/bundles/bundled-translations.fr-FR.json +48 -2
  17. package/src/bundles/bundled-translations.json +48 -2
  18. package/src/bundles/bundled-translations.pt-PT.json +48 -2
  19. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue +14 -10
  20. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +24 -0
  21. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +49 -20
  22. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.de-DE.json +21 -0
  23. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.es-ES.json +21 -0
  24. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.fr-FR.json +21 -0
  25. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.json +21 -0
  26. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.pt-PT.json +21 -0
  27. package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +15 -7
  28. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.de-DE.json +8 -0
  29. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.es-ES.json +8 -0
  30. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.fr-FR.json +8 -0
  31. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.json +8 -0
  32. package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.pt-PT.json +8 -0
  33. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.vue +12 -8
  34. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.de-DE.json +6 -0
  35. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.es-ES.json +6 -0
  36. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.fr-FR.json +6 -0
  37. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.json +6 -0
  38. package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.pt-PT.json +6 -0
  39. package/src/experiences/components/SellDomainNameModalApplication/SellDomainNameModalApplication.vue +13 -9
  40. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.de-DE.json +6 -0
  41. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.es-ES.json +6 -0
  42. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.fr-FR.json +6 -0
  43. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.json +6 -0
  44. package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.pt-PT.json +6 -0
  45. package/src/experiences/components/SellDomainNameSearch/SellDomainNameSearch.vue +18 -13
  46. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.de-DE.json +8 -0
  47. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.es-ES.json +8 -0
  48. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.fr-FR.json +8 -0
  49. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.json +8 -0
  50. package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.pt-PT.json +8 -0
  51. package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue +16 -5
  52. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.de-DE.json +6 -0
  53. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.es-ES.json +6 -0
  54. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.fr-FR.json +6 -0
  55. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.json +6 -0
  56. package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.pt-PT.json +6 -0
  57. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.vue +15 -12
  58. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.de-DE.json +8 -0
  59. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.es-ES.json +8 -0
  60. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.fr-FR.json +8 -0
  61. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.json +8 -0
  62. package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.pt-PT.json +8 -0
  63. package/src/useSharedLibTranslate.js +4 -2
  64. package/src/experiences/components/PublishBrandPageModal/i18n/publish-modal.de-DE.json +0 -5
  65. package/src/experiences/components/PublishBrandPageModal/i18n/publish-modal.es-ES.json +0 -5
  66. package/src/experiences/components/PublishBrandPageModal/i18n/publish-modal.fr-FR.json +0 -5
  67. package/src/experiences/components/PublishBrandPageModal/i18n/publish-modal.json +0 -5
  68. package/src/experiences/components/PublishBrandPageModal/i18n/publish-modal.pt-PT.json +0 -5
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <template v-if="!!this.$slots['header']">
2
+ <template v-if="!!$slots.header">
3
3
  <Modal
4
4
  classes="sell-domain-name-list-modal--modal tw-text-black"
5
5
  close-on-esc
@@ -49,8 +49,8 @@
49
49
  <SellDomainNameSearch
50
50
  v-if="visible"
51
51
  :is-design-com="isDesignCom"
52
- :header-title="headerTitle"
53
- :header-subtitle="headerSubtitle"
52
+ :header-title="headerTitle || domainSearchHeaderTitle"
53
+ :header-subtitle="headerSubtitle || domainSearchHeaderSubtitle"
54
54
  :initial-search-term="initialSearchTerm"
55
55
  @onSearch="onSearchDomainName"
56
56
  @onSearchTextInputChange="onSearchTextInputChange"
@@ -71,14 +71,12 @@
71
71
  </template>
72
72
  </template>
73
73
  <script>
74
- import Modal from '../../../../src/atoms/components/Modal/Modal.vue';
74
+ import Modal from '../../../atoms/components/Modal/Modal.vue';
75
75
  import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
76
76
  import SellDomainNameSearch from '../SellDomainNameSearch/SellDomainNameSearch.vue';
77
77
  import SellDomainNameSearchResult from '../SellDomainNameSearchResult/SellDomainNameListSearchResult.vue';
78
78
  import Events from '../../constants/event-constants';
79
-
80
- const headerSubtitle = 'Buy matching domain name for your brand';
81
- const headerTitle = 'Search a domain name';
79
+ import { tr } from '../../../useSharedLibTranslate';
82
80
 
83
81
  export default {
84
82
  components: {
@@ -89,11 +87,11 @@ export default {
89
87
  props: {
90
88
  headerSubtitle: {
91
89
  type: String,
92
- default: () => headerSubtitle,
90
+ default: null,
93
91
  },
94
92
  headerTitle: {
95
93
  type: String,
96
- default: () => headerTitle,
94
+ default: null,
97
95
  },
98
96
  modelValue: {
99
97
  type: String,
@@ -122,6 +120,12 @@ export default {
122
120
  default: undefined,
123
121
  },
124
122
  },
123
+ setup() {
124
+ return {
125
+ domainSearchHeaderTitle: tr('sellDomainNameModalApplication.domainSearchHeaderTitle'),
126
+ domainSearchHeaderSubtitle: tr('sellDomainNameModalApplication.domainSearchHeaderTitle'),
127
+ };
128
+ },
125
129
  data: () => ({
126
130
  domainNameItems: [],
127
131
  userCurrency: {},
@@ -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
+ }
@@ -32,7 +32,7 @@
32
32
  <Button
33
33
  :classes="searchButtonClasses"
34
34
  variant="primary"
35
- label="Search"
35
+ :label="searchButtonLabel"
36
36
  :disabled="false"
37
37
  @on-click="onSearchBarClick"
38
38
  />
@@ -41,15 +41,10 @@
41
41
  </div>
42
42
  </template>
43
43
  <script>
44
- import Button from '../../../../src/atoms/components/Button/Button.vue';
45
- import TextInput from '../../../../src/atoms/components/TextInput/TextInput.vue';
46
-
47
- import {
48
- sellDomainNameMinSearchTextLength,
49
- sellDomainNameSearchBarLabel,
50
- sellDomainNameSearchBarPlaceholder,
51
- sellDomainNameSearchBarPreText,
52
- } from '../../constants/sell-domain-name-constants';
44
+ import Button from '../../../atoms/components/Button/Button.vue';
45
+ import TextInput from '../../../atoms/components/TextInput/TextInput.vue';
46
+ import { sellDomainNameMinSearchTextLength } from '../../constants/sell-domain-name-constants';
47
+ import { tr } from '../../../useSharedLibTranslate';
53
48
 
54
49
  export default {
55
50
  components: {
@@ -79,14 +74,24 @@ export default {
79
74
  type: Boolean,
80
75
  required: false,
81
76
  },
77
+ contentOverride: {
78
+ type: Object,
79
+ required: false,
80
+ default: null,
81
+ },
82
82
  },
83
83
  emits: ['onSearch', 'onSearchTextInputChange'],
84
+ setup() {
85
+ return {
86
+ searchButtonLabel: tr('sellDomainNameSearch.searchButtonLabel'),
87
+ searchBarLabel: tr('sellDomainNameSearch.searchBarLabel'),
88
+ searchBarPlaceholder: tr('sellDomainNameSearch.searchBarPlaceholder'),
89
+ searchBarPreText: tr('sellDomainNameSearch.searchBarPreText'),
90
+ };
91
+ },
84
92
  data() {
85
93
  return {
86
- searchBarLabel: sellDomainNameSearchBarLabel,
87
- searchBarPlaceholder: sellDomainNameSearchBarPlaceholder,
88
94
  searchText: this.initialSearchTerm ?? '',
89
- searchBarPreText: sellDomainNameSearchBarPreText,
90
95
  };
91
96
  },
92
97
  computed: {
@@ -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
+ }
@@ -28,20 +28,20 @@
28
28
  @on-buy-now-click="onBuyNowClick"
29
29
  />
30
30
  <div v-else-if="shouldShowDomainNameNotFound" class="tw-flex tw-justify-center tw-text-center">
31
- Sorry, we couldn't find any domain for "{{ previousSearchText }}".
31
+ {{ domainSearchEmptyMessageWithUserDomainName }}
32
32
  <br />
33
- Try searching with another domain name.
33
+ {{ searchAnotherDomainMessage }}
34
34
  </div>
35
35
  <div v-else></div>
36
36
  </div>
37
37
  </template>
38
38
 
39
39
  <script>
40
- import Loader from '../../../../src/atoms/components/Loader/Loader.vue';
41
- import Picture from '../../../../src/atoms/components/Picture/Picture.vue';
42
-
40
+ import Loader from '../../../atoms/components/Loader/Loader.vue';
41
+ import Picture from '../../../atoms/components/Picture/Picture.vue';
43
42
  import SellDomainNameList from '../SellDomainNameList/SellDomainNameList.vue';
44
43
  import Events from '../../constants/event-constants';
44
+ import { tr } from '../../../useSharedLibTranslate';
45
45
 
46
46
  export default {
47
47
  components: {
@@ -101,12 +101,23 @@ export default {
101
101
  default: undefined,
102
102
  },
103
103
  },
104
+ setup() {
105
+ return {
106
+ tr,
107
+ searchAnotherDomainMessage: tr('sellDomainNameListSearchResult.searchAnotherDomainMessage'),
108
+ };
109
+ },
104
110
  data() {
105
111
  return {
106
112
  domainNameItemsInView: undefined,
107
113
  };
108
114
  },
109
115
  computed: {
116
+ domainSearchEmptyMessageWithUserDomainName() {
117
+ return tr('sellDomainNameListSearchResult.domainSearchEmptyMessage', {
118
+ domainNameSearchTerm: this.previousSearchText,
119
+ });
120
+ },
110
121
  shouldShowDomainNameNotFound() {
111
122
  return (
112
123
  !this.isBusy &&
@@ -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
+ }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- Buy matching domain name for your brand or connect your existing domain
3
+ {{ domainSearchOrConnectHeaderSubtitle }}
4
4
  <div class="tw-flex tw-flex-col md:tw-flex-row tw-mt-4 tw-mb-4">
5
5
  <TextInput
6
6
  v-model="searchText"
@@ -18,7 +18,7 @@
18
18
  <Button
19
19
  classes="tw-w-full tw-mt-2 md:tw-rounded-l-none md:tw-mt-0"
20
20
  variant="primary"
21
- label="Search"
21
+ :label="searchButtonLabel"
22
22
  :disabled="false"
23
23
  @on-click="onSearchBarClick"
24
24
  />
@@ -31,21 +31,18 @@
31
31
  :domain-name-items="domainNameItems"
32
32
  :previous-search-text="previousSearchText"
33
33
  :visible="isSearchDomainListModalVisible"
34
+ :search-button-label="searchButtonLabel"
34
35
  @close-modal="onSellDomainNameListCloseModal"
35
36
  @search="onSearchDomainName(true)"
36
37
  />
37
38
  </div>
38
39
  </template>
39
40
  <script>
40
- import Button from '../../../../src/atoms/components/Button/Button.vue';
41
- import TextInput from '../../../../src/atoms/components/TextInput/TextInput.vue';
42
-
41
+ import { tr } from '../../../useSharedLibTranslate';
42
+ import Button from '../../../atoms/components/Button/Button.vue';
43
+ import TextInput from '../../../atoms/components/TextInput/TextInput.vue';
43
44
  import SellDomainNameListModal from '../SellDomainNameListModal/SellDomainNameListModal.vue';
44
- import {
45
- sellDomainNameMinSearchTextLength,
46
- sellDomainNameSearchBarLabel,
47
- sellDomainNameSearchBarPlaceholder,
48
- } from '../../constants/sell-domain-name-constants';
45
+ import { sellDomainNameMinSearchTextLength } from '../../constants/sell-domain-name-constants';
49
46
  import Events from '../../constants/event-constants';
50
47
  import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
51
48
 
@@ -76,13 +73,19 @@ export default {
76
73
  default: false,
77
74
  },
78
75
  },
76
+ setup() {
77
+ return {
78
+ searchButtonLabel: tr('sellDomainNameWidget.searchButtonLabel'),
79
+ searchBarLabel: tr('sellDomainNameWidget.searchBarLabel'),
80
+ searchBarPlaceholder: tr('sellDomainNameWidget.searchBarPlaceholder'),
81
+ domainSearchOrConnectHeaderSubtitle: tr('sellDomainNameWidget.domainSearchOrConnectHeaderSubtitle'),
82
+ };
83
+ },
79
84
  data: () => ({
80
85
  domainNameItems: undefined,
81
86
  userCurrency: undefined,
82
87
  isBusy: false,
83
88
  isSearchDomainListModalVisible: false,
84
- searchBarLabel: sellDomainNameSearchBarLabel,
85
- searchBarPlaceholder: sellDomainNameSearchBarPlaceholder,
86
89
  searchText: '',
87
90
  previousSearchText: '',
88
91
  }),
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "sellDomainNameWidget": {
3
+ "searchButtonLabel": "Pesquisar",
4
+ "searchBarLabel": "Pesquisar",
5
+ "searchBarPlaceholder": "Pesquisar nomes de domínio",
6
+ "domainSearchOrConnectHeaderSubtitle": "Compre um nome de domínio que corresponda à sua marca ou associe ao domínio que já tem"
7
+ }
8
+ }
@@ -11,7 +11,7 @@ const relativePathsToTranslationFiles = {
11
11
  'pt-PT': () => import('./bundles/bundled-translations.pt-PT.json'),
12
12
  };
13
13
 
14
- const setSharedLibLocaleAsync = async (locale = 'en-US') => {
14
+ const setLocaleAsync = async (locale = 'en-US') => {
15
15
  const localeToUse = locale;
16
16
 
17
17
  if (!i18next.isInitialized) {
@@ -24,6 +24,8 @@ const setSharedLibLocaleAsync = async (locale = 'en-US') => {
24
24
 
25
25
  const languageFile = (await relativePathsToTranslationFiles[localeToUse]()).default;
26
26
 
27
+ console.log('ss', localeToUse, languageFile);
28
+
27
29
  await i18next.addResourceBundle(localeToUse, 'fe-shared-lib', {
28
30
  ...languageFile,
29
31
  });
@@ -35,4 +37,4 @@ const tr = (key, valuesToInterpolate = {}) => {
35
37
  return translated;
36
38
  };
37
39
 
38
- export { setSharedLibLocaleAsync, tr };
40
+ export { setLocaleAsync, tr };
@@ -1,5 +0,0 @@
1
- {
2
- "publishModal": {
3
- "test": "DE-Publish Brand Page"
4
- }
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "publishModal": {
3
- "test": "ES-Publish Brand Page"
4
- }
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "publishModal": {
3
- "test": "FR-Publish Brand Page"
4
- }
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "publishModal": {
3
- "test": "EN-Publish Brand Page"
4
- }
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "publishModal": {
3
- "test": "PT-Publish Brand Page"
4
- }
5
- }