@everymatrix/casino-random-game 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/casino-random-game",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "main": "dist/casino-random-game.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
  }
@@ -3,7 +3,7 @@
3
3
  <script lang="ts">
4
4
  import { getDevice } from 'rvhelper';
5
5
  import { _, setupI18n, addNewMessages, setLocale } from './i18n';
6
- import { CasinoRandomGameTranslations } from './translations';
6
+ import { TRANSLATIONS } from './translations';
7
7
 
8
8
  export let endpoint:string = '';
9
9
  export let datasource:string = '';
@@ -42,8 +42,8 @@
42
42
  });
43
43
  }
44
44
 
45
- Object.keys(CasinoRandomGameTranslations).forEach((item:any) => {
46
- addNewMessages(item, CasinoRandomGameTranslations[item]);
45
+ Object.keys(TRANSLATIONS).forEach((item:any) => {
46
+ addNewMessages(item, TRANSLATIONS[item]);
47
47
  });
48
48
 
49
49
  const randomizeGame = () => {
@@ -191,7 +191,7 @@
191
191
  {/each}
192
192
  </div>
193
193
  </main>
194
- <p class="RandomGameLoading" part="RandomGameLoading">{$_('randomGame.randomGameLoading')}</p>
194
+ <p class="RandomGameLoading" part="RandomGameLoading">{$_('randomGameLoading')}</p>
195
195
  </div>
196
196
  {/if}
197
197
 
@@ -211,7 +211,7 @@
211
211
  <div class="RandomGameDetails" part="RandomGameDetails">
212
212
  <p class="RandomGameTitle" part="RandomGameTitle">{randomGame.name}</p>
213
213
  <p class="RandomGameVendor" part="RandomGameVendor">{randomGame.vendor.name}</p>
214
- <button class="RandomGamePlay" part="RandomGamePlay" on:click={() => playGame()}>{$_('randomGame.playNowRandomGame')}</button>
214
+ <button class="RandomGamePlay" part="RandomGamePlay" on:click={() => playGame()}>{$_('playNowRandomGame')}</button>
215
215
  </div>
216
216
  </div>
217
217
  {/if}
@@ -224,7 +224,7 @@
224
224
  {#if buttontext}
225
225
  <span class="RandomButtonText">{buttontext}</span>
226
226
  {:else if !buttontext}
227
- <span class="RandomButtonText" part="RandomButtonText">{$_('randomGame.playRandomGame')}</span>
227
+ <span class="RandomButtonText" part="RandomButtonText">{$_('playRandomGame')}</span>
228
228
  {/if}
229
229
  <span class="RandomButtonIcon" part="RandomButtonIcon">
230
230
  {@html randombuttonicon}
@@ -1,58 +1,42 @@
1
- export const CasinoRandomGameTranslations = {
2
- en: {
3
- randomGame: {
4
- playRandomGame: 'Play a random game',
5
- randomGameLoading: 'Selecting ...',
6
- playNowRandomGame: 'Play Now'
7
- }
8
- },
9
- 'zh-hk': {
10
- randomGame: {
11
- playRandomGame: '玩隨機遊戲',
12
- randomGameLoading: '選擇...',
13
- playNowRandomGame: '現在播放'
14
- }
15
- },
16
- de: {
17
- randomGame: {
18
- playRandomGame: 'Spiel ein Zufallsspiel',
19
- randomGameLoading: 'Auswahl läuft',
20
- playNowRandomGame: 'Jetzt spielen'
21
- }
22
- },
23
- fr: {
24
- randomGame: {
25
- playRandomGame: 'Jouer à un jeu aléatoire',
26
- randomGameLoading: 'Sélectinner ...',
27
- playNowRandomGame: 'Jouer maintenant'
28
- }
29
- },
30
- ro: {
31
- randomGame: {
32
- playRandomGame: 'Joaca-te un joc aleatoriu',
33
- randomGameLoading: 'Se selecteaza ...',
34
- playNowRandomGame: 'Joaca-te Acum'
35
- }
36
- },
37
- tr: {
38
- randomGame: {
39
- playRandomGame: 'Rastgele Bir Oyun Oyna',
40
- randomGameLoading: 'Oyun Seçiliyor',
41
- playNowRandomGame: 'Şimdi Oyna'
42
- }
43
- },
44
- es: {
45
- randomGame: {
46
- playRandomGame: 'Juego aleatorio',
47
- randomGameLoading: 'Seleccionando…',
48
- playNowRandomGame: 'Juega Ya'
49
- }
50
- },
51
- pt: {
52
- randomGame: {
53
- playRandomGame: 'Jogue um jogo aleatório',
54
- randomGameLoading: 'Selecionando ...',
55
- playNowRandomGame: 'Jogue agora'
56
- }
57
- },
58
- };
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "playRandomGame": "Play a random game",
4
+ "randomGameLoading": "Selecting ...",
5
+ "playNowRandomGame": "Play Now"
6
+ },
7
+ "zh-hk": {
8
+ "playRandomGame": "玩隨機遊戲",
9
+ "randomGameLoading": "選擇...",
10
+ "playNowRandomGame": "現在播放"
11
+ },
12
+ "de": {
13
+ "playRandomGame": "Spiel ein Zufallsspiel",
14
+ "randomGameLoading": "Auswahl läuft",
15
+ "playNowRandomGame": "Jetzt spielen"
16
+ },
17
+ "fr": {
18
+ "playRandomGame": "Jouer à un jeu aléatoire",
19
+ "randomGameLoading": "Sélectinner ...",
20
+ "playNowRandomGame": "Jouer maintenant"
21
+ },
22
+ "ro": {
23
+ "playRandomGame": "Joaca-te un joc aleatoriu",
24
+ "randomGameLoading": "Se selecteaza ...",
25
+ "playNowRandomGame": "Joaca-te Acum"
26
+ },
27
+ "tr": {
28
+ "playRandomGame": "Rastgele Bir Oyun Oyna",
29
+ "randomGameLoading": "Oyun Seçiliyor",
30
+ "playNowRandomGame": "Şimdi Oyna"
31
+ },
32
+ "es": {
33
+ "playRandomGame": "Juego aleatorio",
34
+ "randomGameLoading": "Seleccionando…",
35
+ "playNowRandomGame": "Juega Ya"
36
+ },
37
+ "pt": {
38
+ "playRandomGame": "Jogue um jogo aleatório",
39
+ "randomGameLoading": "Selecionando ...",
40
+ "playNowRandomGame": "Jogue agora"
41
+ }
42
+ }