@designcrowd/fe-shared-lib 1.5.12-kp-1 → 1.5.12-kp-2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.5.12-kp-1",
3
+ "version": "1.5.12-kp-2",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -76,7 +76,7 @@ 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
- import { sellDomainNameModalApplicationTr } from '../../../useSharedLibTranslate';
79
+ import { getCurrentLocale, sellDomainNameModalApplicationTr } from '../../../useSharedLibTranslate';
80
80
 
81
81
  export default {
82
82
  components: {
@@ -139,6 +139,11 @@ export default {
139
139
  this.searchDomainName(false);
140
140
  }
141
141
  },
142
+ computed: {
143
+ currentLocale() {
144
+ return getCurrentLocale();
145
+ },
146
+ },
142
147
  methods: {
143
148
  async onSearchDomainName(event) {
144
149
  this.searchText = event.searchText;
@@ -159,6 +164,10 @@ export default {
159
164
  request.logoDraftToken = this.logoDraftToken;
160
165
  }
161
166
 
167
+ if (this.currentLocale) {
168
+ request.locale = this.currentLocale;
169
+ }
170
+
162
171
  window.dispatchEvent(new CustomEvent(Events.DomainSearchEvent, { detail: request }));
163
172
  const result = await brandCrowdApiClient.searchDomainNamesByKeywordAsync(request);
164
173
  if (!result) {