@designcrowd/fe-shared-lib 1.2.22 → 1.2.23

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.2.22",
3
+ "version": "1.2.23",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <path
3
3
  d="M12.1655 1H14.5349L9.35972 6.93021L15.4483 15H10.6815L6.94786 10.1048L2.67545 15H0.305103L5.84041 8.65655L0 1H4.88841L8.2629 5.47324L12.1655 1ZM11.3352 13.5788H12.6483L4.17393 2.3469H2.76621L11.3352 13.5788Z"
4
- fill="black"
5
4
  />
6
5
  </template>
@@ -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: {
@@ -129,7 +129,10 @@ export default {
129
129
  }),
130
130
  );
131
131
  if (this.isUserAuthenticated) {
132
- window.location.href = domain.checkoutUrl;
132
+ const { checkoutUrl } = domain;
133
+ const url = new URL(checkoutUrl, window.location.origin);
134
+ url.searchParams.set('locale', getCurrentLocale());
135
+ window.location.href = url.toString();
133
136
  }
134
137
  },
135
138
  getPrice(domain) {