@designcrowd/fe-shared-lib 1.2.5-byo-3 → 1.2.5-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/index.js CHANGED
@@ -19,7 +19,7 @@ export { default as SellDomainNameWidget } from './src/experiences/components/Se
19
19
  export { default as PublishBrandPageModal } from './src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue';
20
20
  export { default as PublishBrandPageCard } from './src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue';
21
21
 
22
- export { setLocaleAsync, tr, uploadYourLogoTr } from './src/useSharedLibTranslate';
22
+ export { setLocaleAsync, tr } from './src/useSharedLibTranslate';
23
23
 
24
24
  export { default as Button } from './src/atoms/components/Button/Button.vue';
25
25
  export { default as ButtonGroup } from './src/atoms/components/ButtonGroup/ButtonGroup.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.5-byo-3",
3
+ "version": "1.2.5-ml-currency",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -22,6 +22,11 @@ export default {
22
22
  required: false,
23
23
  default: null,
24
24
  },
25
+ localeCurrency: {
26
+ type: String,
27
+ required: false,
28
+ default: null,
29
+ },
25
30
  fraction: {
26
31
  type: [Number, String],
27
32
  required: false,
@@ -58,6 +63,11 @@ export default {
58
63
  return 'Free';
59
64
  }
60
65
 
66
+ if (this.localeCurrency != null && this.amount.includes(this.localeCurrency))
67
+ {
68
+ return this.amount.replace(this.localeCurrency, '').trim();
69
+ }
70
+
61
71
  const parsedAmount = Number.parseFloat(this.amount);
62
72
 
63
73
  if (Number.isNaN(parsedAmount)) {
@@ -1,33 +1,5 @@
1
1
  {
2
2
  "publishModal": {
3
3
  "test": "EN-Publish Brand Page"
4
- },
5
- "uploadYourLogo": {
6
- "uploadYourLogoText": "Upload your logo-",
7
- "disclaimerText": "Please ensure you have the right to use any image you upload.-",
8
- "generatingDesigns": "Generating Designs...-",
9
- "uploadingAndConverting": "Uploading and converting your logo...-",
10
- "stepOf": "Step {{current}} of {{total}}-",
11
- "uploadError": "Upload Error-",
12
- "cancel": "Cancel-",
13
- "continue": "Continue-",
14
- "back": "Back-",
15
- "no": "No-",
16
- "yes": "Yes-",
17
- "businessName": "Business Name-",
18
- "businessNameDescription": "Enter your logo text or business name-",
19
- "cropYourLogo": "Crop your logo-",
20
- "cropDescription": "Crop your logo design to fit our logo maker canvas-",
21
- "logoPreview": "Logo preview-",
22
- "logoPreviewDescription": "Your logo looks great! Help us setup your logo by completing the next steps.-",
23
- "primaryTextColor": "Primary text color-",
24
- "primaryTextColorDescription": "Help us setup your logo by confirming the primary text color. Choose from the available colors or click the plus icon to add another.-",
25
- "backgroundColor": "Background color-",
26
- "backgroundColorDescription": "Help us setup your logo by confirming the background color. Choose from the available colors or click the plus icon to add another.-",
27
- "colorsWarning": "Your text and background colors are too similar. Please choose a more distinct pairing to ensure they create quality designs.-",
28
- "exitConfirmationTitle": "Are you sure you want to exit?-",
29
- "exitConfirmationDescription": "Your logo upload progress in this session will be lost-",
30
- "maxByoFileErrorMessage": "Your file exceeds the maximum size of 25MB. Please choose a smaller file.-",
31
- "genericByoErrorMessage": "An unexpected error occured. Please try again.-"
32
4
  }
33
5
  }
@@ -4,13 +4,13 @@
4
4
  <HelloBar
5
5
  v-if="areColorsTooClose"
6
6
  label=""
7
- :description="uploadYourLogoTr('colorsWarning')"
7
+ description="Your text and background colors are too similar. Please choose a more distinct pairing to ensure they create quality designs."
8
8
  variant="warning"
9
9
  class="tw-m-5 tw-mt-3"
10
10
  />
11
11
  <div class="tw-pb-8 tw-px-8 tw-text-center">
12
12
  <p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
13
- {{ stepCounter }}
13
+ Step {{ activeStep.number }} of {{ totalNumSteps }}
14
14
  </p>
15
15
  <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
16
16
  {{ activeStep.title }}
@@ -80,7 +80,7 @@
80
80
  >
81
81
  <Button
82
82
  v-if="activeStep.index === 1"
83
- :label="uploadYourLogoTr('back')"
83
+ label="Back"
84
84
  size="large"
85
85
  variant="outline"
86
86
  container-classes="tw-mx-2"
@@ -89,7 +89,7 @@
89
89
  />
90
90
  <Button
91
91
  v-if="activeStep.index === 2"
92
- :label="uploadYourLogoTr('back')"
92
+ label="Back"
93
93
  size="large"
94
94
  variant="outline"
95
95
  container-classes="tw-mx-2"
@@ -98,7 +98,7 @@
98
98
  />
99
99
  <Button
100
100
  v-if="activeStep.index === 1"
101
- :label="uploadYourLogoTr('continue')"
101
+ label="Continue"
102
102
  size="large"
103
103
  variant="primary-with-icon"
104
104
  icon="chevron-right-wide"
@@ -108,7 +108,7 @@
108
108
  />
109
109
  <Button
110
110
  v-if="activeStep.index === 2"
111
- :label="uploadYourLogoTr('continue')"
111
+ label="Continue"
112
112
  size="large"
113
113
  variant="primary-with-icon"
114
114
  icon="chevron-right-wide"
@@ -126,7 +126,6 @@ import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
126
126
  import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
127
127
  import trackEvent from '../../helpers/tracking';
128
128
  import hexDiff from '../../helpers/hex-diff';
129
- import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
130
129
 
131
130
  export default {
132
131
  components: {
@@ -154,11 +153,6 @@ export default {
154
153
  required: true,
155
154
  },
156
155
  },
157
- setup() {
158
- return {
159
- uploadYourLogoTr,
160
- };
161
- },
162
156
  data() {
163
157
  return {
164
158
  currentStep: null,
@@ -177,8 +171,9 @@ export default {
177
171
  index: 1,
178
172
  number: this.totalNumSteps - 1,
179
173
  active: false,
180
- title: uploadYourLogoTr('primaryTextColor'),
181
- description: uploadYourLogoTr('primaryTextColorDescription'),
174
+ title: 'Primary text color',
175
+ description:
176
+ 'Help us setup your logo by confirming the primary text color. Choose from the available colors or click the plus icon to add another.',
182
177
  colourData: this.logoData.logoImageDetails.textColors,
183
178
  colours: [],
184
179
  },
@@ -186,8 +181,9 @@ export default {
186
181
  index: 2,
187
182
  number: this.totalNumSteps,
188
183
  active: false,
189
- title: uploadYourLogoTr('backgroundColor'),
190
- description: uploadYourLogoTr('backgroundColorDescription'),
184
+ title: 'Background color',
185
+ description:
186
+ 'Help us setup your logo by confirming the background color. Choose from the available colors or click the plus icon to add another.',
191
187
  colourData: this.logoData.logoImageDetails.backgroundColors,
192
188
  colours: [],
193
189
  },
@@ -206,12 +202,6 @@ export default {
206
202
  this.activeStep.index === 2 && hexDiff(selectedTextColour.hex, selectedBackgroundColour.hex) !== 'Different'
207
203
  );
208
204
  },
209
- stepCounter() {
210
- return this.uploadYourLogoTr('stepOf', {
211
- current: this.activeStep.number,
212
- total: this.totalNumSteps,
213
- });
214
- },
215
205
  },
216
206
  mounted() {
217
207
  const keys = Object.keys(this.steps);
@@ -5,8 +5,8 @@
5
5
  <p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
6
6
  {{ progressLabel }}
7
7
  </p>
8
- <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('businessName') }}</h2>
9
- <p class="tw-mt-0">{{ uploadYourLogoTr('businessNameDescription') }}</p>
8
+ <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Business Name</h2>
9
+ <p class="tw-mt-0">Enter your logo text or business name</p>
10
10
  </div>
11
11
 
12
12
  <div class="tw-pb-8 tw-px-8">
@@ -37,7 +37,7 @@
37
37
  class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
38
38
  >
39
39
  <Button
40
- :label="uploadYourLogoTr('back')"
40
+ label="Back"
41
41
  size="large"
42
42
  variant="outline"
43
43
  container-classes="tw-mx-2"
@@ -45,7 +45,7 @@
45
45
  @on-click="back"
46
46
  />
47
47
  <Button
48
- :label="uploadYourLogoTr('continue')"
48
+ label="Continue"
49
49
  size="large"
50
50
  variant="primary-with-icon"
51
51
  icon="chevron-right-wide"
@@ -57,9 +57,8 @@
57
57
  </div>
58
58
  </template>
59
59
  <script>
60
- import Button from '../../../atoms/components/Button/Button.vue';
60
+ import Button from '../../../../src/atoms/components/Button/Button.vue';
61
61
  import trackEvent from '../../helpers/tracking';
62
- import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
63
62
 
64
63
  export default {
65
64
  components: {
@@ -85,11 +84,6 @@ export default {
85
84
  required: true,
86
85
  },
87
86
  },
88
- setup() {
89
- return {
90
- uploadYourLogoTr,
91
- };
92
- },
93
87
  data() {
94
88
  return {
95
89
  businessText: null,
@@ -5,8 +5,8 @@
5
5
  <p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
6
6
  {{ progressLabel }}
7
7
  </p>
8
- <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('cropYourLogo') }}</h2>
9
- <p class="tw-mt-0">{{ uploadYourLogoTr('cropDescription') }}</p>
8
+ <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Crop your logo</h2>
9
+ <p class="tw-mt-0">Crop your logo design to fit our logo maker canvas</p>
10
10
  </div>
11
11
 
12
12
  <div class="c-byo-cropper__container lg:tw-pb-8 tw-mx-auto" :class="{ 'tw-opacity-0': !cropperToolReady }">
@@ -27,7 +27,7 @@
27
27
  class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
28
28
  >
29
29
  <Button
30
- :label="uploadYourLogoTr('cancel')"
30
+ label="Cancel"
31
31
  size="large"
32
32
  variant="outline"
33
33
  container-classes="tw-mx-2"
@@ -35,7 +35,7 @@
35
35
  @on-click="cancel"
36
36
  />
37
37
  <Button
38
- :label="uploadYourLogoTr('continue')"
38
+ label="Continue"
39
39
  size="large"
40
40
  variant="primary-with-icon"
41
41
  icon="chevron-right-wide"
@@ -51,7 +51,6 @@ import Button from '../../../../src/atoms/components/Button/Button.vue';
51
51
  import VueCropper from 'vue-cropperjs';
52
52
 
53
53
  import trackEvent from '../../helpers/tracking';
54
- import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
55
54
 
56
55
  export default {
57
56
  components: {
@@ -73,11 +72,6 @@ export default {
73
72
  required: true,
74
73
  },
75
74
  },
76
- setup() {
77
- return {
78
- uploadYourLogoTr,
79
- };
80
- },
81
75
  data() {
82
76
  return {
83
77
  cropperToolReady: false,
@@ -5,8 +5,8 @@
5
5
  <p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
6
6
  {{ progressLabel }}
7
7
  </p>
8
- <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('logoPreview') }}</h2>
9
- <p class="tw-mt-0">{{ uploadYourLogoTr('logoPreviewDescription') }}</p>
8
+ <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Logo preview</h2>
9
+ <p class="tw-mt-0">Your logo looks great! Help us setup your logo by completing the next steps.</p>
10
10
  </div>
11
11
 
12
12
  <div class="lg:tw-pb-8 lg:tw-px-8">
@@ -24,7 +24,7 @@
24
24
  class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
25
25
  >
26
26
  <Button
27
- :label="uploadYourLogoTr('cancel')"
27
+ label="Cancel"
28
28
  size="large"
29
29
  variant="outline"
30
30
  container-classes="tw-mx-2"
@@ -32,7 +32,7 @@
32
32
  @on-click="cancel"
33
33
  />
34
34
  <Button
35
- :label="uploadYourLogoTr('continue')"
35
+ label="Continue"
36
36
  size="large"
37
37
  variant="primary-with-icon"
38
38
  icon="chevron-right-wide"
@@ -44,9 +44,8 @@
44
44
  </div>
45
45
  </template>
46
46
  <script>
47
- import Button from '../../../atoms/components/Button/Button.vue';
47
+ import Button from '../../../../src/atoms/components/Button/Button.vue';
48
48
  import trackEvent from '../../helpers/tracking';
49
- import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
50
49
 
51
50
  export default {
52
51
  components: {
@@ -67,11 +66,6 @@ export default {
67
66
  required: true,
68
67
  },
69
68
  },
70
- setup() {
71
- return {
72
- uploadYourLogoTr,
73
- };
74
- },
75
69
  methods: {
76
70
  cropImage() {
77
71
  if (!this.$refs.preview.complete) return;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="tw-w-full">
3
3
  <div class="tw-px-8 tw-pb-8">
4
- <h2 class="tw-mb-8 tw-text-4xl tw-font-bold">{{ uploadYourLogoTr('uploadError') }}</h2>
4
+ <h2 class="tw-mb-8 tw-text-4xl tw-font-bold">Upload Error</h2>
5
5
  <p class="tw-mt-0 tw-text-grayscale-600 tw-text-base tw-text-center">
6
6
  {{ errorMessage }}
7
7
  </p>
@@ -11,7 +11,7 @@
11
11
  class="tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8"
12
12
  >
13
13
  <Button
14
- :label="uploadYourLogoTr('cancel')"
14
+ label="Cancel"
15
15
  size="large"
16
16
  variant="outline"
17
17
  container-classes="tw-mx-2"
@@ -28,7 +28,7 @@
28
28
  />
29
29
 
30
30
  <Button
31
- :label="uploadYourLogoTr('uploadYourLogoText')"
31
+ label="Upload your logo"
32
32
  size="large"
33
33
  variant="primary-with-icon"
34
34
  icon="chevron-right-wide"
@@ -39,8 +39,7 @@
39
39
  </div>
40
40
  </template>
41
41
  <script>
42
- import Button from '../../../atoms/components/Button/Button.vue';
43
- import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
42
+ import Button from '../../../../src/atoms/components/Button/Button.vue';
44
43
 
45
44
  export default {
46
45
  components: {
@@ -53,11 +52,6 @@ export default {
53
52
  default: null,
54
53
  },
55
54
  },
56
- setup() {
57
- return {
58
- uploadYourLogoTr,
59
- };
60
- },
61
55
  methods: {
62
56
  cancel() {
63
57
  this.$emit('on-cancel');
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="tw-w-full">
3
3
  <div class="tw-px-8 tw-pb-8">
4
- <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('exitConfirmationTitle') }}</h2>
4
+ <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Are you sure you want to exit?</h2>
5
5
  <p class="tw-mt-0 tw-text-grayscale-600 tw-text-base tw-text-center">
6
- {{ uploadYourLogoTr('exitConfirmationDescription') }}
6
+ Your logo upload progress in this session will be lost
7
7
  </p>
8
8
  </div>
9
9
 
@@ -11,7 +11,7 @@
11
11
  class="tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8"
12
12
  >
13
13
  <Button
14
- :label="uploadYourLogoTr('no')"
14
+ label="No"
15
15
  size="large"
16
16
  variant="outline"
17
17
  container-classes="tw-mx-2"
@@ -19,7 +19,7 @@
19
19
  @on-click="goBack"
20
20
  />
21
21
  <Button
22
- :label="uploadYourLogoTr('yes')"
22
+ label="Yes"
23
23
  size="large"
24
24
  variant="primary-with-icon"
25
25
  icon="chevron-right-wide"
@@ -31,18 +31,12 @@
31
31
  </div>
32
32
  </template>
33
33
  <script>
34
- import Button from '../../../atoms/components/Button/Button.vue';
35
- import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
34
+ import Button from '../../../../src/atoms/components/Button/Button.vue';
36
35
 
37
36
  export default {
38
37
  components: {
39
38
  Button,
40
39
  },
41
- setup() {
42
- return {
43
- uploadYourLogoTr,
44
- };
45
- },
46
40
  methods: {
47
41
  goBack() {
48
42
  this.$emit('on-go-back');
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <LogoUploadingLoader :loading-text="uploadYourLogoTr('uploadingAndConverting')" />
2
+ <LogoUploadingLoader loading-text="Uploading and converting your logo..." />
3
3
  </template>
4
4
  <script>
5
5
  import brandCrowdClient from '../../clients/brand-crowd-api.client';
@@ -7,7 +7,6 @@ import LogoUploadingLoader from './LogoUploadingLoader.vue';
7
7
 
8
8
  import trackEvent from '../../helpers/tracking';
9
9
  import hexDiff from '../../helpers/hex-diff';
10
- import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
11
10
 
12
11
  export default {
13
12
  components: {
@@ -24,11 +23,6 @@ export default {
24
23
  required: true,
25
24
  },
26
25
  },
27
- setup() {
28
- return {
29
- uploadYourLogoTr,
30
- };
31
- },
32
26
  data() {
33
27
  return {
34
28
  isRunning: false,
@@ -12,8 +12,8 @@
12
12
  <p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
13
13
  {{ currentStepProgressLabel }}
14
14
  </p>
15
- <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('uploadYourLogoText') }}</h2>
16
- <p class="tw-mt-0 tw-pb-8">{{ uploadYourLogoTr('disclaimerText') }}</p>
15
+ <h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Upload your logo</h2>
16
+ <p class="tw-mt-0 tw-pb-8">Please ensure you have the right to use any image you upload.</p>
17
17
  <UploadYourLogoDropzone :is-modal="true" @on-upload-success="onLogoFileChange"> </UploadYourLogoDropzone>
18
18
  </div>
19
19
 
@@ -70,7 +70,7 @@
70
70
  @on-logo-file-change="onLogoFileChange"
71
71
  />
72
72
 
73
- <LogoUploadingLoader v-if="isCurrentlySaving" :loading-text="uploadYourLogoTr('generatingDesigns')" />
73
+ <LogoUploadingLoader v-if="isCurrentlySaving" loading-text="Generating Designs..." />
74
74
 
75
75
  <LogoUploadExitConfirmation
76
76
  v-if="isAttemptingToExit && currentStep > 1"
@@ -85,7 +85,6 @@
85
85
  import brandCrowdClient from '../../clients/brand-crowd-api.client';
86
86
  import Errors from '../../constants/error-constants';
87
87
  import trackEvent from '../../helpers/tracking';
88
- import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
89
88
 
90
89
  import LogoUploadModal from './LogoUploadModal.vue';
91
90
  import UploadYourLogoDropzone from '../UploadYourLogoDropzone/UploadYourLogoDropzone.vue';
@@ -128,11 +127,6 @@ export default {
128
127
  default: false,
129
128
  },
130
129
  },
131
- setup() {
132
- return {
133
- uploadYourLogoTr,
134
- };
135
- },
136
130
  data() {
137
131
  return {
138
132
  currentStep: this.useDropzone ? 0 : 1,
@@ -151,9 +145,9 @@ export default {
151
145
  currentStepProgressLabel() {
152
146
  if (this.includeDropzoneInModal) {
153
147
  const currentStepDisplay = this.currentStep === 0 ? 1 : this.currentStep;
154
- return this.uploadYourLogoTr('stepOf', { current: currentStepDisplay, total: 5 });
148
+ return `Step ${currentStepDisplay} of 5`;
155
149
  }
156
- return this.uploadYourLogoTr('stepOf', { current: this.currentStep - 1, total: 4 });
150
+ return `Step ${this.currentStep - 1} of 4`;
157
151
  },
158
152
  hasError() {
159
153
  return !!this.errorMessage;
@@ -181,7 +175,7 @@ export default {
181
175
  handler() {
182
176
  if (this.logoFile) {
183
177
  this.errorMessage =
184
- this.logoFile.file.size > Errors.MAX_BYO_FILE_SIZE ? uploadYourLogoTr('maxByoFileErrorMessage') : null;
178
+ this.logoFile.file.size > Errors.MAX_BYO_FILE_SIZE ? Errors.MAX_BYO_FILE_SIZE_EXCEEDED_MSG : null;
185
179
  }
186
180
  },
187
181
  },
@@ -197,7 +191,7 @@ export default {
197
191
  if (typeof err.response?.data?.errorMessage === 'string' && err.response?.data?.errorMessage !== '') {
198
192
  this.errorMessage = err.response.data.errorMessage;
199
193
  } else {
200
- this.errorMessage = uploadYourLogoTr('genericByoErrorMessage');
194
+ this.errorMessage = Errors.GENERIC_BYO_ERROR;
201
195
  }
202
196
  this.currentStep = null;
203
197
  },
@@ -35,6 +35,4 @@ const tr = (key, valuesToInterpolate = {}) => {
35
35
  return translated;
36
36
  };
37
37
 
38
- const uploadYourLogoTr = (key, valuesToInterpolate = {}) => tr(`uploadYourLogo.${key}`, valuesToInterpolate);
39
-
40
- export { setLocaleAsync, tr, uploadYourLogoTr };
38
+ export { setLocaleAsync, tr };
@@ -1,30 +0,0 @@
1
- {
2
- "uploadYourLogo": {
3
- "uploadYourLogoText": "Upload your logo-",
4
- "disclaimerText": "Please ensure you have the right to use any image you upload.-",
5
- "generatingDesigns": "Generating Designs...-",
6
- "uploadingAndConverting": "Uploading and converting your logo...-",
7
- "stepOf": "Step {{current}} of {{total}}-",
8
- "uploadError": "Upload Error-",
9
- "cancel": "Cancel-",
10
- "continue": "Continue-",
11
- "back": "Back-",
12
- "no": "No-",
13
- "yes": "Yes-",
14
- "businessName": "Business Name-",
15
- "businessNameDescription": "Enter your logo text or business name-",
16
- "cropYourLogo": "Crop your logo-",
17
- "cropDescription": "Crop your logo design to fit our logo maker canvas-",
18
- "logoPreview": "Logo preview-",
19
- "logoPreviewDescription": "Your logo looks great! Help us setup your logo by completing the next steps.-",
20
- "primaryTextColor": "Primary text color-",
21
- "primaryTextColorDescription": "Help us setup your logo by confirming the primary text color. Choose from the available colors or click the plus icon to add another.-",
22
- "backgroundColor": "Background color-",
23
- "backgroundColorDescription": "Help us setup your logo by confirming the background color. Choose from the available colors or click the plus icon to add another.-",
24
- "colorsWarning": "Your text and background colors are too similar. Please choose a more distinct pairing to ensure they create quality designs.-",
25
- "exitConfirmationTitle": "Are you sure you want to exit?-",
26
- "exitConfirmationDescription": "Your logo upload progress in this session will be lost-",
27
- "maxByoFileErrorMessage": "Your file exceeds the maximum size of 25MB. Please choose a smaller file.-",
28
- "genericByoErrorMessage": "An unexpected error occured. Please try again.-"
29
- }
30
- }