@everymatrix/casino-game-page 0.0.213 → 0.0.217
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-game-page",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.217",
|
4
4
|
"main": "dist/casino-game-page.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": "
|
39
|
+
"gitHead": "eece4cbb47122ec254298d89beb7fdb184124cdc"
|
40
40
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<svelte:options tag={null} />
|
2
2
|
|
3
|
-
<script lang="
|
3
|
+
<script lang="ts">
|
4
4
|
import { onMount } from "svelte";
|
5
5
|
import { isMobile, checkSession, getDevice } from 'rvhelper';
|
6
|
-
import { _, addNewMessages } from './i18n';
|
6
|
+
import { _, addNewMessages, setupI18n } from './i18n';
|
7
7
|
import { GamePageTranslations } from './translations';
|
8
8
|
|
9
9
|
import moment from 'moment';
|
@@ -57,6 +57,8 @@
|
|
57
57
|
let favoriteGames: Array<Object> = [];
|
58
58
|
let customStylingContainer:HTMLElement;
|
59
59
|
|
60
|
+
setupI18n({ withLocale: 'en', translations: {}});
|
61
|
+
|
60
62
|
Object.keys(GamePageTranslations).forEach((item) => {
|
61
63
|
addNewMessages(item, GamePageTranslations[item]);
|
62
64
|
});
|
@@ -254,7 +256,7 @@
|
|
254
256
|
// End section: keep aspect ratio for iframe on resize
|
255
257
|
const toggleLogin = () => {
|
256
258
|
if (loginevent) {
|
257
|
-
window.postMessage({ type: loginevent,
|
259
|
+
window.postMessage({ type: loginevent, transition: 'Login' }, window.location.href);
|
258
260
|
window.postMessage({ type: 'ModalClosed' }, window.location.href);
|
259
261
|
}
|
260
262
|
|
@@ -265,7 +267,7 @@
|
|
265
267
|
|
266
268
|
const toggleRegister = () => {
|
267
269
|
if (registerevent) {
|
268
|
-
window.postMessage({ type: registerevent,
|
270
|
+
window.postMessage({ type: registerevent, transition: 'Register' }, window.location.href);
|
269
271
|
window.postMessage({ type: 'ModalClosed' }, window.location.href);
|
270
272
|
}
|
271
273
|
|
package/src/i18n.js
CHANGED
@@ -11,9 +11,7 @@ function setupI18n({ withLocale: _locale, translations }) {
|
|
11
11
|
dictionary.set(translations);
|
12
12
|
locale.set(_locale);
|
13
13
|
}
|
14
|
-
});
|
15
|
-
/*dictionary.set(translations);
|
16
|
-
locale.set(_locale);*/
|
14
|
+
});
|
17
15
|
}
|
18
16
|
|
19
17
|
function addNewMessages(lang, dict) {
|
package/src/translations.js
CHANGED
@@ -17,8 +17,8 @@ export const GamePageTranslations = {
|
|
17
17
|
deposit: 'Einzahlung',
|
18
18
|
playForFun: 'Play for fun',
|
19
19
|
playNow: 'Jetzt starten!',
|
20
|
-
break: '
|
21
|
-
breakButton: '24
|
20
|
+
break: 'Mach mal einen Tag Pause!',
|
21
|
+
breakButton: '24 Stunden Auszeit',
|
22
22
|
}
|
23
23
|
},
|
24
24
|
it: {
|