@everymatrix/casino-game-thumbnail 1.0.13 → 1.0.14

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-thumbnail",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "main": "dist/casino-game-thumbnail.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": "4b2bbc7cb2c3424950a39147a985ac5d38207cdf"
39
+ "gitHead": "5da9a4e3b1b2d635a921ce3981f56157191f5aa7"
40
40
  }
@@ -13,6 +13,7 @@
13
13
  export let lang:string = '';
14
14
  export let clientstyling:string = ''
15
15
  export let clientstylingurl:string = '';
16
+ export let translationUrl:string = '';
16
17
 
17
18
  export let favorites:string = '';
18
19
  export let gamethumbnail:string = '';
@@ -137,6 +138,19 @@
137
138
  '00': 'Green',
138
139
  };
139
140
 
141
+ const setTranslationUrl = ():void => {
142
+ let url:string = translationUrl;
143
+
144
+ fetch(url).then((res:any) => res.json())
145
+ .then((res) => {
146
+ Object.keys(res).forEach((item:any):void => {
147
+ addNewMessages(item, res[item]);
148
+ });
149
+ }).catch((err:any) => {
150
+ console.log(err);
151
+ });
152
+ }
153
+
140
154
  Object.keys(GameThumbnailTranslations).forEach((item:any):void => {
141
155
  addNewMessages(item, GameThumbnailTranslations[item]);
142
156
  });
@@ -575,6 +589,8 @@
575
589
  $: clientstyling && customStylingContainer && setClientStyling();
576
590
  $: clientstylingurl && customStylingContainer && setClientStylingURL();
577
591
  $: favorites && setFavorites();
592
+ $: translationUrl && setTranslationUrl();
593
+ $: gamecellsize && clientstylingurl && setClientStylingURL();
578
594
  $: endpoint && livelobbyendpoint && setLiveLobbyData();
579
595
  $: livegamedata && updateComponent();
580
596
  $: roulletteref && roulleteresults && attachAnimations();