@everymatrix/player-change-password 0.0.197 → 0.0.201

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": "@everymatrix/player-change-password",
3
- "version": "0.0.197",
3
+ "version": "0.0.201",
4
4
  "main": "dist/player-change-password.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "89d693d3429e3dc0d6e642537452c8faa0ca008a"
39
+ "gitHead": "71051531499cfea745b53a0f7c0a77a252990ae7"
40
40
  }
@@ -2,6 +2,10 @@
2
2
  <script lang="typescript">
3
3
  import { onMount } from "svelte";
4
4
  import { getDevice } from 'rvhelper';
5
+ import { _, addNewMessages, setLocale } from './i18n';
6
+ import { PlayerChangePasswordTranslations } from './translations';
7
+
8
+ export let lang:string = 'en';
5
9
 
6
10
  let isLoading:boolean = false;
7
11
  let userAgent:String = window.navigator.userAgent;
@@ -32,6 +36,10 @@
32
36
  let errorPasswordChanged:string = '';
33
37
  let showErrorPasswordChanged:boolean = false;
34
38
 
39
+ Object.keys(PlayerChangePasswordTranslations).forEach((item:any) => {
40
+ addNewMessages(item, PlayerChangePasswordTranslations[item]);
41
+ });
42
+
35
43
  const togglePassword = (field) => {
36
44
  switch(field) {
37
45
  case 'userCurrentPassword':
@@ -60,6 +68,9 @@
60
68
  if(userCurrentPassword) {
61
69
  oldPasswordSameAsNew = (userCurrentPassword === userNewPassword) ? true : false;
62
70
  }
71
+ if(userConfirmPassword) {
72
+ invalidConfirmPassword = (userNewPassword === userConfirmPassword) ? !checkUserPassword(password) : true;
73
+ }
63
74
  } else {
64
75
  invalidConfirmPassword = (userNewPassword === userConfirmPassword) ? !checkUserPassword(password) : true;
65
76
  }
@@ -105,7 +116,11 @@
105
116
  }
106
117
 
107
118
  const backToCasino = () => {
119
+ window.postMessage({ type: 'GoToCasino' }, window.location.href);
120
+ }
108
121
 
122
+ const initialLoad = () => {
123
+ setLocale(lang);
109
124
  }
110
125
 
111
126
  const messageHandler = (e:any) => {
@@ -134,6 +149,7 @@
134
149
  }
135
150
  });
136
151
 
152
+ $: lang && initialLoad();
137
153
  $: passwordChanged;
138
154
  </script>
139
155
 
@@ -150,14 +166,14 @@
150
166
  <path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>
151
167
  </g></g>
152
168
  </svg>
153
- <h2 class="ChangePasswordTitleMobile">Change Password</h2>
169
+ <h2 class="ChangePasswordTitleMobile">{$_('changePassword.title')}</h2>
154
170
  </div>
155
171
  {/if}
156
- <h2 class="ChangePasswordTitle {isMobile ? 'ChangePasswordTitleNone' : ''}">Change Password</h2>
172
+ <h2 class="ChangePasswordTitle {isMobile ? 'ChangePasswordTitleNone' : ''}">{$_('changePassword.title')}</h2>
157
173
 
158
174
  <section class="PlayerChangePasswordContent">
159
175
  <div class="PlayerChangePasswordBox { invalidCurrentPassword ? 'InvalidField' : '' }">
160
- <label for="CurrentPassword">Current Password:</label>
176
+ <label for="CurrentPassword">{$_('changePassword.currentPassword')}</label>
161
177
  <input bind:value={userCurrentPassword} on:blur={validatePassword(invalidCurrentPassword, userCurrentPassword, currentPasswordVisibilityToggle)} id="CurrentPassword" type="password" bind:this={currentPasswordVisibilityToggle} />
162
178
  {#if isCurrentPasswordVisible}
163
179
  <svg on:click={() => togglePassword('userCurrentPassword')} class="TogglePasswordVisibility {invalidCurrentPassword ? 'InvalidToggle' : ''} { isMobile ? 'TogglePasswordVisibilityMobile' : '' }" xmlns="http://www.w3.org/2000/svg" width="18.844" height="12.887" viewBox="0 0 18.844 12.887"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-110.856 -23.242)"><circle class="a" cx="0.05" cy="0.05" r="0.05" transform="translate(121.017 31.148)"/><g transform="translate(117.499 27.37)"><path class="a" d="M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z" transform="translate(-142.164 -39.123)"/><path class="a" d="M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z" transform="translate(-136.413 -42.068)"/></g><g transform="translate(110.856 24.899)"><path class="a" d="M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z" transform="translate(-110.856 -33.157)"/><path class="a" d="M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z" transform="translate(-130.743 -29.617)"/></g><rect class="a" width="0.972" height="15.861" rx="0.486" transform="translate(114.827 23.858) rotate(-39.315)"/></g></svg>
@@ -165,11 +181,11 @@
165
181
  <svg on:click={() => togglePassword('userCurrentPassword')} class="TogglePasswordVisibility {invalidCurrentPassword ? 'InvalidToggle' : ''} { isMobile ? 'TogglePasswordVisibilityMobile' : '' }" xmlns="http://www.w3.org/2000/svg" width="18.843" height="10.5" viewBox="0 0 18.843 10.5"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-14.185 -27.832)"><path class="a" d="M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z" transform="translate(0)"/><circle class="a" cx="2.779" cy="2.779" r="2.779" transform="translate(20.827 30.303)"/></g></svg>
166
182
  {/if}
167
183
  {#if invalidCurrentPassword}
168
- <p class="InvalidInput">The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.</p>
184
+ <p class="InvalidInput">{$_('changePassword.invalidCurrentPassword')}</p>
169
185
  {/if}
170
186
  </div>
171
187
  <div class="PlayerChangePasswordBox { invalidNewPassword ? 'InvalidField' : '' }">
172
- <label for="NewPassword">New Password:</label>
188
+ <label for="NewPassword">{$_('changePassword.newPassword')}</label>
173
189
  <input bind:value={userNewPassword} on:blur={validatePassword(invalidNewPassword, userNewPassword, newPasswordVisibilityToggle)} id="NewPassword" type="password" bind:this={newPasswordVisibilityToggle} />
174
190
  {#if isNewPasswordVisible}
175
191
  <svg on:click={() => togglePassword('userNewPassword')} class="TogglePasswordVisibility {invalidNewPassword ? 'InvalidToggle' : ''} { isMobile ? 'TogglePasswordVisibilityMobile' : '' }" xmlns="http://www.w3.org/2000/svg" width="18.844" height="12.887" viewBox="0 0 18.844 12.887"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-110.856 -23.242)"><circle class="a" cx="0.05" cy="0.05" r="0.05" transform="translate(121.017 31.148)"/><g transform="translate(117.499 27.37)"><path class="a" d="M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z" transform="translate(-142.164 -39.123)"/><path class="a" d="M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z" transform="translate(-136.413 -42.068)"/></g><g transform="translate(110.856 24.899)"><path class="a" d="M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z" transform="translate(-110.856 -33.157)"/><path class="a" d="M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z" transform="translate(-130.743 -29.617)"/></g><rect class="a" width="0.972" height="15.861" rx="0.486" transform="translate(114.827 23.858) rotate(-39.315)"/></g></svg>
@@ -177,13 +193,13 @@
177
193
  <svg on:click={() => togglePassword('userNewPassword')} class="TogglePasswordVisibility {invalidNewPassword ? 'InvalidToggle' : ''} { isMobile ? 'TogglePasswordVisibilityMobile' : '' }" xmlns="http://www.w3.org/2000/svg" width="18.843" height="10.5" viewBox="0 0 18.843 10.5"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-14.185 -27.832)"><path class="a" d="M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z" transform="translate(0)"/><circle class="a" cx="2.779" cy="2.779" r="2.779" transform="translate(20.827 30.303)"/></g></svg>
178
194
  {/if}
179
195
  {#if oldPasswordSameAsNew}
180
- <p class="InvalidInputNew">The new password must be different from the old password.</p>
196
+ <p class="InvalidInputNew">{$_('changePassword.invalidNewPassword')}</p>
181
197
  {:else if invalidNewPassword}
182
- <p class="InvalidInput">The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.</p>
198
+ <p class="InvalidInput">{$_('changePassword.invalidNewPasswordSecondary')}</p>
183
199
  {/if}
184
200
  </div>
185
201
  <div class="PlayerChangePasswordBox { invalidConfirmPassword ? 'InvalidField' : '' }">
186
- <label for="ConfirmPassword">Confirm Password:</label>
202
+ <label for="ConfirmPassword">{$_('changePassword.confirmPassword')}</label>
187
203
  <input bind:value={userConfirmPassword} on:blur={validatePassword(invalidConfirmPassword, userConfirmPassword, confirmPasswordVisibilityToggle)} id="ConfirmPassword" type="password" bind:this={confirmPasswordVisibilityToggle} />
188
204
  {#if isConfirmPasswordVisible}
189
205
  <svg on:click={() => togglePassword('userConfirmPassword')} class="TogglePasswordVisibility {invalidConfirmPassword ? 'InvalidToggle' : ''} { isMobile ? 'TogglePasswordVisibilityMobile' : '' }" xmlns="http://www.w3.org/2000/svg" width="18.844" height="12.887" viewBox="0 0 18.844 12.887"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-110.856 -23.242)"><circle class="a" cx="0.05" cy="0.05" r="0.05" transform="translate(121.017 31.148)"/><g transform="translate(117.499 27.37)"><path class="a" d="M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z" transform="translate(-142.164 -39.123)"/><path class="a" d="M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z" transform="translate(-136.413 -42.068)"/></g><g transform="translate(110.856 24.899)"><path class="a" d="M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z" transform="translate(-110.856 -33.157)"/><path class="a" d="M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z" transform="translate(-130.743 -29.617)"/></g><rect class="a" width="0.972" height="15.861" rx="0.486" transform="translate(114.827 23.858) rotate(-39.315)"/></g></svg>
@@ -191,7 +207,7 @@
191
207
  <svg on:click={() => togglePassword('userConfirmPassword')} class="TogglePasswordVisibility {invalidConfirmPassword ? 'InvalidToggle' : ''} { isMobile ? 'TogglePasswordVisibilityMobile' : '' }" xmlns="http://www.w3.org/2000/svg" width="18.843" height="10.5" viewBox="0 0 18.843 10.5"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-14.185 -27.832)"><path class="a" d="M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z" transform="translate(0)"/><circle class="a" cx="2.779" cy="2.779" r="2.779" transform="translate(20.827 30.303)"/></g></svg>
192
208
  {/if}
193
209
  {#if invalidConfirmPassword}
194
- <p class="InvalidInput">Password must match the new password and must follow the same rules.</p>
210
+ <p class="InvalidInput">{$_('changePassword.confirmPasswordInvalid')}</p>
195
211
  {/if}
196
212
  </div>
197
213
  </section>
@@ -203,7 +219,7 @@
203
219
  <section class="PlayerChangePasswordButtonsArea">
204
220
  <div class="PlayerChangePasswordSaveButton {activateSubmit ? '' : 'ButtonInactive'}"
205
221
  disabled={!activateSubmit}
206
- on:click={() => submitNewPassword()}>Change Password</div>
222
+ on:click={() => submitNewPassword()}>{$_('changePassword.submitChangePassword')}</div>
207
223
  </section>
208
224
  {:else}
209
225
  {#if isMobile}
@@ -216,11 +232,11 @@
216
232
  C52.942,116.507,52.942,124.327,57.633,129.007z"/>
217
233
  </g>
218
234
  </svg>
219
- <span>Return to menu</span>
235
+ <span>{$_('changePassword.returnToMenu')}</span>
220
236
  </div>
221
237
  {/if}
222
238
  <div class="PlayerChangePasswordHeader">
223
- <h3>Change Password</h3>
239
+ <h3>{$_('changePassword.changePasswordText')}</h3>
224
240
  </div>
225
241
  <div class="ChangedPasswordSuccessfully">
226
242
  <div class="SuccessWrapper">
@@ -228,11 +244,11 @@
228
244
  <div class="Checkmark"></div>
229
245
  </div>
230
246
  <div class="TextContainer">
231
- <h3>PASSWORD RESET</h3>
232
- <p>Your password has been reset successfully.</p>
247
+ <h3>{$_('changePassword.passwordReset')}</h3>
248
+ <p>{$_('changePassword.passwordResetConfirmation')}</p>
233
249
  </div>
234
250
  </div>
235
- <div class="PlayerChangePasswordBackButton" on:click={() => backToCasino()}>Back to Casino</div>
251
+ <div class="PlayerChangePasswordBackButton" on:click={() => backToCasino()}>{$_('changePassword.backButtonText')}</div>
236
252
  </div>
237
253
  {/if}
238
254
  </form>
@@ -275,7 +291,7 @@
275
291
  .PlayerChangePasswordContent {
276
292
  display: grid;
277
293
  grid-column-gap: ttp(3.125);
278
- grid-row-gap: 15px;
294
+ grid-row-gap: 30px;
279
295
  grid-template-rows: auto;
280
296
  grid-template-columns: 1fr;
281
297
  padding-bottom: ttp(1.875);
@@ -359,6 +375,12 @@
359
375
  margin: 0;
360
376
  }
361
377
 
378
+ /* MS Edge */
379
+ input::-ms-reveal,
380
+ input::-ms-clear {
381
+ display: none;
382
+ }
383
+
362
384
  /* Firefox */
363
385
  input[type=number] {
364
386
  -moz-appearance: textfield;
@@ -386,8 +408,9 @@
386
408
  height: 20px;
387
409
  position: absolute;
388
410
  right: 10px;
389
- top: 33px;
411
+ top: 38px;
390
412
  cursor: pointer;
413
+ color: #58586B;
391
414
  &.InvalidToggle {
392
415
  path, circle, rect {
393
416
  fill: #D0046C;
@@ -399,7 +422,7 @@
399
422
  }
400
423
 
401
424
  .TogglePasswordVisibilityMobile {
402
- top: 31px;
425
+ top: 35px;
403
426
 
404
427
  }
405
428
  .InvalidInput, .InvalidInputNew {
@@ -568,6 +591,14 @@
568
591
  .TogglePasswordVisibility {
569
592
  width: ttp(1.875);
570
593
  top: ttp(2.875);
594
+ &.InvalidToggle {
595
+ path, circle, rect {
596
+ fill: #D0046C;
597
+ }
598
+ }
599
+ path, circle, rect {
600
+ fill: #58586B;
601
+ }
571
602
  }
572
603
  .InvalidInput {
573
604
  font-size: ttp(1);
package/src/i18n.js ADDED
@@ -0,0 +1,27 @@
1
+ import {
2
+ dictionary,
3
+ locale,
4
+ addMessages,
5
+ _
6
+ } from 'svelte-i18n';
7
+
8
+ function setupI18n({ withLocale: _locale, translations }) {
9
+ locale.subscribe((data) => {
10
+ if (data == null) {
11
+ dictionary.set(translations);
12
+ locale.set(_locale);
13
+ }
14
+ }); // maybe we will need this to make sure that the i18n is set up only once
15
+ /*dictionary.set(translations);
16
+ locale.set(_locale);*/
17
+ }
18
+
19
+ function addNewMessages(lang, dict) {
20
+ addMessages(lang, dict);
21
+ }
22
+
23
+ function setLocale(_locale) {
24
+ locale.set(_locale);
25
+ }
26
+
27
+ export { _, setupI18n, addNewMessages, setLocale };
@@ -0,0 +1,38 @@
1
+ export const PlayerChangePasswordTranslations = {
2
+ en: {
3
+ changePassword: {
4
+ title: `Change Password`,
5
+ currentPassword: `Current Password:`,
6
+ invalidCurrentPassword: `The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.`,
7
+ newPassword: `New Password:`,
8
+ invalidNewPassword: `The new password must be different from the old password.`,
9
+ invalidNewPasswordSecondary: `The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.`,
10
+ confirmPassword: `Confirm Password:`,
11
+ confirmPasswordInvalid: `Password must match the new password and must follow the same rules.`,
12
+ submitChangePassword: `Change Password`,
13
+ returnToMenu: `Return to menu`,
14
+ changePasswordText: `Change Password`,
15
+ passwordReset: `PASSWORD RESET`,
16
+ passwordResetConfirmation: `Your password has been reset successfully.`,
17
+ backButtonText: `Back to Casino`
18
+ }
19
+ },
20
+ ro: {
21
+ changePassword: {
22
+ title: `Change Password`,
23
+ currentPassword: `Current Password:`,
24
+ invalidCurrentPassword: `The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.`,
25
+ newPassword: `New Password:`,
26
+ invalidNewPassword: `The new password must be different from the old password.`,
27
+ invalidNewPasswordSecondary: `The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.`,
28
+ confirmPassword: `Confirm Password:`,
29
+ confirmPasswordInvalid: `Password must match the new password and must follow the same rules.`,
30
+ submitChangePassword: `Change Password`,
31
+ returnToMenu: `Return to menu`,
32
+ changePasswordText: `Change Password`,
33
+ passwordReset: `PASSWORD RESET`,
34
+ passwordResetConfirmation: `Your password has been reset successfully.`,
35
+ backButtonText: `Back to Casino`
36
+ }
37
+ }
38
+ };