@everymatrix/casino-game-page 0.0.214 → 0.0.215

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.214",
3
+ "version": "0.0.215",
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": "504c889b442d1a70906bdb23ddaef68e256963b6"
39
+ "gitHead": "9c9f7a9e6a715010e0746e271e930d92e64e16d2"
40
40
  }
@@ -1,9 +1,9 @@
1
1
  <svelte:options tag={null} />
2
2
 
3
- <script lang="typescript">
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
  });
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
- }); // maybe we will need this to make sure that the i18n is set up only once
15
- /*dictionary.set(translations);
16
- locale.set(_locale);*/
14
+ });
17
15
  }
18
16
 
19
17
  function addNewMessages(lang, dict) {