@everymatrix/lottery-ticket 0.1.23 → 1.0.69
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/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-f01e4770.js +1303 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/lottery-bullet_3.cjs.entry.js +402 -440
- package/dist/cjs/lottery-ticket.cjs.js +17 -11
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/lottery-ticket/index.js +1 -0
- package/dist/collection/components/lottery-ticket/lottery-ticket.js +435 -485
- package/dist/collection/utils/locale.utils.js +53 -43
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-cde6554c.js +1276 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/lottery-bullet_3.entry.js +402 -440
- package/dist/esm/lottery-ticket.js +14 -11
- package/dist/lottery-ticket/lottery-ticket.esm.js +1 -1
- package/dist/lottery-ticket/p-174b5b05.entry.js +1 -0
- package/dist/lottery-ticket/p-73c1e1fd.js +2 -0
- package/dist/lottery-ticket/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/lottery-ticket/index.d.ts +1 -0
- package/dist/types/components/lottery-ticket/lottery-ticket.d.ts +78 -78
- package/dist/types/components/lottery-ticket/lottery-ticket.types.d.ts +31 -31
- package/dist/types/components.d.ts +24 -5
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +10 -3
- package/dist/cjs/index-6033a99f.js +0 -1272
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/lottery-bullet.js +0 -6
- package/dist/components/lottery-bullet2.js +0 -91
- package/dist/components/lottery-grid.js +0 -6
- package/dist/components/lottery-grid2.js +0 -236
- package/dist/components/lottery-ticket.d.ts +0 -11
- package/dist/components/lottery-ticket.js +0 -266
- package/dist/esm/index-7790b5a7.js +0 -1246
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/lottery-ticket/p-4e7976c5.entry.js +0 -1
- package/dist/lottery-ticket/p-913d0cce.js +0 -1
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/stencil/widgets-stencil/packages/lottery-ticket/.stencil/packages/lottery-ticket/stencil.config.d.ts +0 -2
|
@@ -1,48 +1,58 @@
|
|
|
1
1
|
const DEFAULT_LANGUAGE = 'en';
|
|
2
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
2
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
3
3
|
const TRANSLATIONS = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
4
|
+
en: {
|
|
5
|
+
loading: 'Loading, please wait ...',
|
|
6
|
+
error: 'It was an error while trying to fetch the data',
|
|
7
|
+
grid: 'Grid',
|
|
8
|
+
multiplier: 'Multiplier',
|
|
9
|
+
numberOfDraws: 'Number of draws',
|
|
10
|
+
wagerPerDraw: 'Wager per draw',
|
|
11
|
+
resetButton: 'Reset',
|
|
12
|
+
autoButton: 'I feel lucky'
|
|
13
|
+
},
|
|
14
|
+
ro: {
|
|
15
|
+
loading: 'Se incarca, va rugam asteptati ...',
|
|
16
|
+
error: 'A fost o eroare in timp ce asteptam datele',
|
|
17
|
+
grid: 'Grid',
|
|
18
|
+
multiplier: 'Multiplicator',
|
|
19
|
+
numberOfDraws: 'Numarul de extrageri',
|
|
20
|
+
wagerPerDraw: 'Pariul per extragere',
|
|
21
|
+
resetButton: 'Reseteaza',
|
|
22
|
+
autoButton: 'Ma simt norocos'
|
|
23
|
+
},
|
|
24
|
+
fr: {
|
|
25
|
+
loading: 'Loading, please wait ...',
|
|
26
|
+
error: 'It was an error while trying to fetch the data',
|
|
27
|
+
grid: 'Grid',
|
|
28
|
+
multiplier: 'Multiplier',
|
|
29
|
+
numberOfDraws: 'Number of draws',
|
|
30
|
+
wagerPerDraw: 'Wager per draw',
|
|
31
|
+
resetButton: 'Reset',
|
|
32
|
+
autoButton: 'I feel lucky'
|
|
33
|
+
},
|
|
34
|
+
ar: {
|
|
35
|
+
loading: 'Loading, please wait ...',
|
|
36
|
+
error: 'It was an error while trying to fetch the data',
|
|
37
|
+
grid: 'Grid',
|
|
38
|
+
multiplier: 'Multiplier',
|
|
39
|
+
numberOfDraws: 'Number of draws',
|
|
40
|
+
wagerPerDraw: 'Wager per draw',
|
|
41
|
+
resetButton: 'Reset',
|
|
42
|
+
autoButton: 'I feel lucky'
|
|
43
|
+
},
|
|
44
|
+
hr: {
|
|
45
|
+
loading: 'Učitavanje, molimo pričekajte ...',
|
|
46
|
+
error: 'Došlo je do pogreške prilikom pokušaja dohvaćanja podataka',
|
|
47
|
+
grid: 'Tablica',
|
|
48
|
+
multiplier: 'Multiplikator',
|
|
49
|
+
numberOfDraws: 'Broj izvlačenja',
|
|
50
|
+
wagerPerDraw: 'Ulog po izvlačenju',
|
|
51
|
+
resetButton: 'Resetiraj',
|
|
52
|
+
autoButton: 'Osjećam se sretno'
|
|
53
|
+
}
|
|
44
54
|
};
|
|
45
55
|
export const translate = (key, customLang) => {
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
const lang = customLang;
|
|
57
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
48
58
|
};
|