@everymatrix/general-player-register-form 1.12.0 → 1.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-player-register-form",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "main": "dist/general-player-register-form.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "5ba32db088ec6ebf8eb6110b6172d8c9409b9f70"
38
+ "gitHead": "b07d8c9aee6584ea4b4d1718d7d928d4f2dfb523"
39
39
  }
@@ -4,7 +4,7 @@
4
4
  import { getDevice } from 'rvhelper';
5
5
  import { onMount } from "svelte";
6
6
  import { _, addNewMessages, setLocale, setupI18n } from './i18n';
7
- import { RegisterFormTranslations } from './translations';
7
+ import { TRANSLATIONS } from './translations';
8
8
 
9
9
  // Native bridge
10
10
  import { isNative, call as callNative, registerEventListener as registerNativeEventListener } from 'js-native-bridge';
@@ -99,8 +99,8 @@
99
99
  });
100
100
  }
101
101
 
102
- Object.keys(RegisterFormTranslations).forEach((item:any) => {
103
- addNewMessages(item, RegisterFormTranslations[item]);
102
+ Object.keys(TRANSLATIONS).forEach((item:any) => {
103
+ addNewMessages(item, TRANSLATIONS[item]);
104
104
  });
105
105
 
106
106
  const verifyUserConsents = ():void => {
@@ -482,11 +482,11 @@ $: translationurl && setTranslationUrl();
482
482
  >
483
483
  </general-player-sms-verification-form>
484
484
  {:else}
485
- <p class="SMSErrorText">{$_('registerForm.error')}</p>
485
+ <p class="SMSErrorText">{$_('error')}</p>
486
486
  {/if}
487
487
  {:else if smsSendApiFailed}
488
488
  <!-- this case is valid only until NW fixes the internal error on the /player/sms/token which reproduces aprox 1/5 cases. was added as to avoid empty screen due to untreated error -->
489
- <p class="SMSErrorText">{$_('registerForm.error')}</p>
489
+ <p class="SMSErrorText">{$_('error')}</p>
490
490
  {/if}
491
491
  {#if showConfirmation}
492
492
  <div class="RegisterConfirmation" part="RegisterConfirmation">
@@ -494,7 +494,7 @@ $: translationurl && setTranslationUrl();
494
494
  <h2 class="RegisterConfirmationTitle" part="RegisterConfirmationTitle">{accountCreationTitle}</h2>
495
495
  <p class="RegisterConfirmationSubtitle" part="RegisterConfirmationSubtitle">{accountCreationSubTitle}</p>
496
496
  <p class="RegisterConfirmationNote" part="RegisterConfirmationNote">{accountCreationMessage}</p>
497
- <button class="RegisterConfirmationGoToLogin" part="RegisterConfirmationGoToLogin" on:click={switchToLogin}>{$_('registerForm.goToLoginButton')}</button>
497
+ <button class="RegisterConfirmationGoToLogin" part="RegisterConfirmationGoToLogin" on:click={switchToLogin}>{$_('goToLoginButton')}</button>
498
498
  </div>
499
499
  {/if}
500
500
  </div>
@@ -1,44 +1,30 @@
1
- export const RegisterFormTranslations = {
2
- en: {
3
- registerForm: {
4
- goToLoginButton: 'Go To Login',
5
- error: 'We encountered an issue. Please go to Login to receive your SMS code.'
6
- }
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "goToLoginButton": "Go To Login",
4
+ "error": "We encountered an issue. Please go to Login to receive your SMS code."
7
5
  },
8
- zhs: {
9
- registerForm: {
10
- goToLoginButton: '去登錄',
11
- error: '我们遇到了一个问题。请转到登录以接收您的短信代码'
12
- }
6
+ "zhs": {
7
+ "goToLoginButton": "去登錄",
8
+ "error": "我们遇到了一个问题。请转到登录以接收您的短信代码"
13
9
  },
14
- fr: {
15
- registerForm: {
16
- goToLoginButton: 'Aller à la connexion',
17
- error: 'Nous avons rencontré un problème. Veuillez vous connecter pour recevoir votre code SMS.'
18
- }
10
+ "fr": {
11
+ "goToLoginButton": "Aller à la connexion",
12
+ "error": "Nous avons rencontré un problème. Veuillez vous connecter pour recevoir votre code SMS."
19
13
  },
20
- tr: {
21
- registerForm: {
22
- goToLoginButton: 'Giriş Yap',
23
- error: 'Bir sorunla karşılaştık. SMS kodunuzu almak için lütfen Giriş\'e gidin.'
24
- }
14
+ "tr": {
15
+ "goToLoginButton": "Giriş Yap",
16
+ "error": "Bir sorunla karşılaştık. SMS kodunuzu almak için lütfen Giriş'e gidin."
25
17
  },
26
- ro: {
27
- registerForm: {
28
- goToLoginButton: 'Catre Autentificare',
29
- error: 'Am întâmpinat o problemă. Vă rugăm să accesați Login pentru a primi codul SMS.'
30
- }
18
+ "ro": {
19
+ "goToLoginButton": "Catre Autentificare",
20
+ "error": "Am întâmpinat o problemă. Vă rugăm să accesați Login pentru a primi codul SMS."
31
21
  },
32
- es: {
33
- registerForm: {
34
- goToLoginButton: 'Ir a Inicio de Sesión',
35
- error: 'Encontramos un problema. Vaya a Iniciar sesión para recibir su código SMS.'
36
- }
22
+ "es": {
23
+ "goToLoginButton": "Ir a Inicio de Sesión",
24
+ "error": "Encontramos un problema. Vaya a Iniciar sesión para recibir su código SMS."
37
25
  },
38
- pt: {
39
- registerForm: {
40
- goToLoginButton: 'Ir para o Login',
41
- error: 'Encontramos um problema. Vá para Login para receber seu código SMS.'
42
- }
43
- },
44
- };
26
+ "pt": {
27
+ "goToLoginButton": "Ir para o Login",
28
+ "error": "Encontramos um problema. Vá para Login para receber seu código SMS."
29
+ }
30
+ }