@everymatrix/casino-last-played-section 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-last-played-section",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "main": "index.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
 
4
4
  import { getDevice } from 'rvhelper';
5
5
  import { _, addNewMessages, setLocale } from './i18n';
6
- import { LastPlayedTranslations } from './translations.js';
6
+ import { TRANSLATIONS } from './translations.js';
7
7
  import '@everymatrix/casino-games-category-section'
8
8
 
9
9
  export let endpoint:string = '';
@@ -39,7 +39,7 @@
39
39
  let customStylingContainer:HTMLElement;
40
40
 
41
41
  const setTranslationUrl = ():void => {
42
- let url:string = translationUrl;
42
+ let url:string = translationurl;
43
43
 
44
44
  fetch(url).then((res:any) => res.json())
45
45
  .then((res) => {
@@ -51,8 +51,8 @@
51
51
  });
52
52
  }
53
53
 
54
- Object.keys(LastPlayedTranslations).forEach((item:any):void => {
55
- addNewMessages(item, LastPlayedTranslations[item]);
54
+ Object.keys(TRANSLATIONS).forEach((item:any):void => {
55
+ addNewMessages(item, TRANSLATIONS[item]);
56
56
  });
57
57
 
58
58
  const getLastPlayedCategory = ():Promise<any> => {
@@ -161,7 +161,7 @@
161
161
  <div class="CasinoGamesCategorySectionContainer" bind:this={customStylingContainer}>
162
162
  <div class="CasinoLastPlayedSection">
163
163
  {#if lastPlayedEmpty}
164
- <p class="SearchLoading"> {$_('LastPlayedTranslations.noRecentGames')}</p>
164
+ <p class="SearchLoading"> {$_('noRecentGames')}</p>
165
165
  {:else}
166
166
  <casino-games-category-section
167
167
  session={session}
@@ -1,12 +1,8 @@
1
- export const LastPlayedTranslations = {
2
- en: {
3
- LastPlayedTranslations: {
4
- noRecentGames: "You haven't played yet but here you will find in the future a list of your games.",
5
- },
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "noRecentGames": "You haven't played yet but here you will find in the future a list of your games."
6
4
  },
7
- de: {
8
- LastPlayedTranslations: {
9
- noRecentGames: "Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele.",
10
- },
11
- },
12
- };
5
+ "de": {
6
+ "noRecentGames": "Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."
7
+ }
8
+ }