@everymatrix/casino-categories 1.12.0 → 1.12.2

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-categories",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "main": "dist/casino-categories.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": "22bb69e504862fb909bc5d21d62ba4178aaefe3d"
39
39
  }
@@ -1,7 +1,7 @@
1
1
  <svelte:options tag={null} />
2
2
  <script lang="ts">
3
3
  import { _, addNewMessages, setLocale } from './i18n';
4
- import { Translations } from './translations';
4
+ import { TRANSLATIONS } from './translations';
5
5
 
6
6
  export let endpoint:string = '';
7
7
  export let datasource:string = '';
@@ -19,8 +19,8 @@
19
19
  let topCategories:Array<any> = [];
20
20
  let otherCategories:Array<any> = [];
21
21
 
22
- Object.keys(Translations).forEach((item:any):void => {
23
- addNewMessages(item, Translations[item]);
22
+ Object.keys(TRANSLATIONS).forEach((item:any):void => {
23
+ addNewMessages(item, TRANSLATIONS[item]);
24
24
  });
25
25
 
26
26
  const setTranslationUrl = ():void => {
@@ -101,23 +101,23 @@
101
101
  <p class="Message">Loading, please wait...</p>
102
102
  {:else}
103
103
  <div class="CasinoCategories">
104
- <h4 class="CategoryTitle">{$_('Translations.topCategories')}</h4>
104
+ <h4 class="CategoryTitle">{$_('topCategories')}</h4>
105
105
  {#each topCategories as category}
106
106
  <div on:click={() => openGameCategory(category.id)} class="Category {activecategory === category.id ? "Active" : ""}">
107
107
  <img src={category.icon} alt="{category.name}" class="CategoryImage" >
108
108
  <div class="CategoryTextContainer">
109
109
  <p>{category.name}</p>
110
- <p>{category.games.count} {$_('Translations.games')}</p>
110
+ <p>{category.games.count} {$_('games')}</p>
111
111
  </div>
112
112
  </div>
113
113
  {/each}
114
- <h4 class="CategoryTitle">{$_('Translations.otherCategories')}</h4>
114
+ <h4 class="CategoryTitle">{$_('otherCategories')}</h4>
115
115
  {#each otherCategories as category}
116
116
  <div on:click={() => openGameCategory(category.id)} class="Category {activecategory === category.id ? "Active" : ""}">
117
117
  <img src={category.icon} alt="{category.name}" class="CategoryImage">
118
118
  <div class="CategoryTextContainer">
119
119
  <p>{category.name}</p>
120
- <p>{category.games.count} {$_('Translations.games')}</p>
120
+ <p>{category.games.count} {$_('games')}</p>
121
121
  </div>
122
122
  </div>
123
123
  {/each}
@@ -1,122 +1,92 @@
1
- export const Translations = {
2
- en: {
3
- Translations: {
4
- topCategories: "Top Categories",
5
- otherCategories: "Other Categories",
6
- loading: "Loading, please wait...",
7
- games: "games",
8
- },
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "topCategories": "Top Categories",
4
+ "otherCategories": "Other Categories",
5
+ "loading": "Loading, please wait...",
6
+ "games": "games"
9
7
  },
10
- 'zh-hk': {
11
- Translations: {
12
- topCategories: "热门类别",
13
- otherCategories: "其他类别",
14
- loading: "加载请稍候...",
15
- games: "游戏",
16
- },
8
+ "zh-hk": {
9
+ "topCategories": "热门类别",
10
+ "otherCategories": "其他类别",
11
+ "loading": "加载请稍候...",
12
+ "games": "游戏"
17
13
  },
18
- de: {
19
- Translations: {
20
- topCategories: "Top Kategorien",
21
- otherCategories: "Andere Kategorien",
22
- loading: "Es lädt, bitte warten...",
23
- games: "Spiele",
24
- },
14
+ "de": {
15
+ "topCategories": "Top Kategorien",
16
+ "otherCategories": "Andere Kategorien",
17
+ "loading": "Es lädt, bitte warten...",
18
+ "games": "Spiele"
25
19
  },
26
- it: {
27
- Translations: {
28
- topCategories: "Top Categories",
29
- otherCategories: "Other Categories",
30
- loading: "Loading, please wait...",
31
- games: "games",
32
- },
20
+ "it": {
21
+ "topCategories": "Top Categories",
22
+ "otherCategories": "Other Categories",
23
+ "loading": "Loading, please wait...",
24
+ "games": "games"
33
25
  },
34
- fr: {
35
- Translations: {
36
- topCategories: "Catégories principales",
37
- otherCategories: "Autres catégories",
38
- loading: "Chargement, veuillez patienter...",
39
- games: "jeux",
40
- },
26
+ "fr": {
27
+ "topCategories": "Catégories principales",
28
+ "otherCategories": "Autres catégories",
29
+ "loading": "Chargement, veuillez patienter...",
30
+ "games": "jeux"
41
31
  },
42
- es: {
43
- Translations: {
44
- topCategories: "Categorias Top",
45
- otherCategories: "Otras Categorias ",
46
- loading: "Cargando...",
47
- games: "juegos",
48
- },
32
+ "es": {
33
+ "topCategories": "Categorias Top",
34
+ "otherCategories": "Otras Categorias",
35
+ "loading": "Cargando...",
36
+ "games": "juegos"
49
37
  },
50
- tr: {
51
- Translations: {
52
- topCategories: "Top Categories",
53
- otherCategories: "Other Categories",
54
- loading: "Loading, please wait...",
55
- games: "games",
56
- },
38
+ "tr": {
39
+ "topCategories": "Top Categories",
40
+ "otherCategories": "Other Categories",
41
+ "loading": "Loading, please wait...",
42
+ "games": "games"
57
43
  },
58
- ru: {
59
- Translations: {
60
- topCategories: "Top Categories",
61
- otherCategories: "Other Categories",
62
- loading: "Loading, please wait...",
63
- games: "games",
64
- },
44
+ "ru": {
45
+ "topCategories": "Top Categories",
46
+ "otherCategories": "Other Categories",
47
+ "loading": "Loading, please wait...",
48
+ "games": "games"
65
49
  },
66
- ro: {
67
- Translations: {
68
- topCategories: "Categorii de top",
69
- otherCategories: "Alte categorii",
70
- loading: "Se incarca, te rugam asteapta…",
71
- games: "jocuri",
72
- },
50
+ "ro": {
51
+ "topCategories": "Categorii de top",
52
+ "otherCategories": "Alte categorii",
53
+ "loading": "Se incarca, te rugam asteapta…",
54
+ "games": "jocuri"
73
55
  },
74
- hr: {
75
- Translations: {
76
- topCategories: "Top Categories",
77
- otherCategories: "Other Categories",
78
- loading: "Loading, please wait...",
79
- games: "games",
80
- },
56
+ "hr": {
57
+ "topCategories": "Top Categories",
58
+ "otherCategories": "Other Categories",
59
+ "loading": "Loading, please wait...",
60
+ "games": "games"
81
61
  },
82
- hu: {
83
- Translations: {
84
- topCategories: "Top Categories",
85
- otherCategories: "Other Categories",
86
- loading: "Loading, please wait...",
87
- games: "games",
88
- },
62
+ "hu": {
63
+ "topCategories": "Top Categories",
64
+ "otherCategories": "Other Categories",
65
+ "loading": "Loading, please wait...",
66
+ "games": "games"
89
67
  },
90
- pl: {
91
- Translations: {
92
- topCategories: "Top Categories",
93
- otherCategories: "Other Categories",
94
- loading: "Loading, please wait...",
95
- games: "games",
96
- },
68
+ "pl": {
69
+ "topCategories": "Top Categories",
70
+ "otherCategories": "Other Categories",
71
+ "loading": "Loading, please wait...",
72
+ "games": "games"
97
73
  },
98
- pt: {
99
- Translations: {
100
- topCategories: "Top Categories",
101
- otherCategories: "Other Categories",
102
- loading: "Loading, please wait...",
103
- games: "games",
104
- },
74
+ "pt": {
75
+ "topCategories": "Top Categories",
76
+ "otherCategories": "Other Categories",
77
+ "loading": "Loading, please wait...",
78
+ "games": "games"
105
79
  },
106
- sl: {
107
- Translations: {
108
- topCategories: "Top Categories",
109
- otherCategories: "Other Categories",
110
- loading: "Loading, please wait...",
111
- games: "games",
112
- },
80
+ "sl": {
81
+ "topCategories": "Top Categories",
82
+ "otherCategories": "Other Categories",
83
+ "loading": "Loading, please wait...",
84
+ "games": "games"
113
85
  },
114
- sr: {
115
- Translations: {
116
- topCategories: "Top Categories",
117
- otherCategories: "Other Categories",
118
- loading: "Loading, please wait...",
119
- games: "games",
120
- },
121
- },
122
- };
86
+ "sr": {
87
+ "topCategories": "Top Categories",
88
+ "otherCategories": "Other Categories",
89
+ "loading": "Loading, please wait...",
90
+ "games": "games"
91
+ }
92
+ }