@everymatrix/casino-random-game 0.0.367 → 0.0.368
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/README.md +30 -30
- package/dist/casino-random-game.js +1 -1
- package/dist/casino-random-game.js.map +1 -1
- package/index.html +47 -47
- package/index.js +1 -1
- package/package.json +2 -2
- package/public/reset.css +47 -47
- package/rollup.config.js +59 -59
- package/src/CasinoRandomGame.svelte +334 -334
- package/src/i18n.js +27 -27
- package/src/index.ts +4 -4
- package/src/translations.js +58 -58
- package/stories/CasinoRandomGame.stories.js +13 -13
- package/tsconfig.json +6 -6
package/src/i18n.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
dictionary,
|
|
3
|
-
locale,
|
|
4
|
-
addMessages,
|
|
5
|
-
_
|
|
6
|
-
} from 'svelte-i18n';
|
|
7
|
-
|
|
8
|
-
function setupI18n({ withLocale: _locale, translations }) {
|
|
9
|
-
locale.subscribe((data) => {
|
|
10
|
-
if (data == null) {
|
|
11
|
-
dictionary.set(translations);
|
|
12
|
-
locale.set(_locale);
|
|
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);*/
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function addNewMessages(lang, dict) {
|
|
20
|
-
addMessages(lang, dict);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function setLocale(_locale) {
|
|
24
|
-
locale.set(_locale);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { _, setupI18n, addNewMessages, setLocale };
|
|
1
|
+
import {
|
|
2
|
+
dictionary,
|
|
3
|
+
locale,
|
|
4
|
+
addMessages,
|
|
5
|
+
_
|
|
6
|
+
} from 'svelte-i18n';
|
|
7
|
+
|
|
8
|
+
function setupI18n({ withLocale: _locale, translations }) {
|
|
9
|
+
locale.subscribe((data) => {
|
|
10
|
+
if (data == null) {
|
|
11
|
+
dictionary.set(translations);
|
|
12
|
+
locale.set(_locale);
|
|
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);*/
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function addNewMessages(lang, dict) {
|
|
20
|
+
addMessages(lang, dict);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function setLocale(_locale) {
|
|
24
|
+
locale.set(_locale);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { _, setupI18n, addNewMessages, setLocale };
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CasinoRandomGame from './CasinoRandomGame.svelte';
|
|
2
|
-
|
|
3
|
-
!customElements.get('casino-random-game') && customElements.define('casino-random-game', CasinoRandomGame);
|
|
4
|
-
export default CasinoRandomGame;
|
|
1
|
+
import CasinoRandomGame from './CasinoRandomGame.svelte';
|
|
2
|
+
|
|
3
|
+
!customElements.get('casino-random-game') && customElements.define('casino-random-game', CasinoRandomGame);
|
|
4
|
+
export default CasinoRandomGame;
|
package/src/translations.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
export const CasinoRandomGameTranslations = {
|
|
2
|
-
en: {
|
|
3
|
-
randomGame: {
|
|
4
|
-
playRandomGame: 'Play a random game',
|
|
5
|
-
randomGameLoading: 'Selecting ...',
|
|
6
|
-
playNowRandomGame: 'Play Now'
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
zh: {
|
|
10
|
-
randomGame: {
|
|
11
|
-
playRandomGame: '玩隨機遊戲',
|
|
12
|
-
randomGameLoading: '選擇...',
|
|
13
|
-
playNowRandomGame: '現在播放'
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
de: {
|
|
17
|
-
randomGame: {
|
|
18
|
-
playRandomGame: 'Spiel ein Zufallsspiel',
|
|
19
|
-
randomGameLoading: 'Auswahl läuf',
|
|
20
|
-
playNowRandomGame: 'Jetzt spielen'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
fr: {
|
|
24
|
-
randomGame: {
|
|
25
|
-
playRandomGame: 'Jouer à un jeu aléatoire',
|
|
26
|
-
randomGameLoading: 'Sélectinner ...',
|
|
27
|
-
playNowRandomGame: 'Jouer maintenant'
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
ro: {
|
|
31
|
-
randomGame: {
|
|
32
|
-
playRandomGame: 'Joaca-te un joc aleatoriu',
|
|
33
|
-
randomGameLoading: 'Se selecteaza ...',
|
|
34
|
-
playNowRandomGame: 'Joaca-te Acum'
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
tr: {
|
|
38
|
-
randomGame: {
|
|
39
|
-
playRandomGame: 'Rastgele Bir Oyun Oyna',
|
|
40
|
-
randomGameLoading: 'Oyun Seçiliyor',
|
|
41
|
-
playNowRandomGame: 'Şimdi Oyna'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
es: {
|
|
45
|
-
randomGame: {
|
|
46
|
-
playRandomGame: 'Juega un juego aleatorio',
|
|
47
|
-
randomGameLoading: 'Lütfen bekleyin ...',
|
|
48
|
-
playNowRandomGame: 'Şimdi Oyna'
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
pt: {
|
|
52
|
-
randomGame: {
|
|
53
|
-
playRandomGame: 'Jogue um jogo aleatório',
|
|
54
|
-
randomGameLoading: 'Selecionando ...',
|
|
55
|
-
playNowRandomGame: 'Jogue agora'
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
};
|
|
1
|
+
export const CasinoRandomGameTranslations = {
|
|
2
|
+
en: {
|
|
3
|
+
randomGame: {
|
|
4
|
+
playRandomGame: 'Play a random game',
|
|
5
|
+
randomGameLoading: 'Selecting ...',
|
|
6
|
+
playNowRandomGame: 'Play Now'
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
zh: {
|
|
10
|
+
randomGame: {
|
|
11
|
+
playRandomGame: '玩隨機遊戲',
|
|
12
|
+
randomGameLoading: '選擇...',
|
|
13
|
+
playNowRandomGame: '現在播放'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
de: {
|
|
17
|
+
randomGame: {
|
|
18
|
+
playRandomGame: 'Spiel ein Zufallsspiel',
|
|
19
|
+
randomGameLoading: 'Auswahl läuf',
|
|
20
|
+
playNowRandomGame: 'Jetzt spielen'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
fr: {
|
|
24
|
+
randomGame: {
|
|
25
|
+
playRandomGame: 'Jouer à un jeu aléatoire',
|
|
26
|
+
randomGameLoading: 'Sélectinner ...',
|
|
27
|
+
playNowRandomGame: 'Jouer maintenant'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
ro: {
|
|
31
|
+
randomGame: {
|
|
32
|
+
playRandomGame: 'Joaca-te un joc aleatoriu',
|
|
33
|
+
randomGameLoading: 'Se selecteaza ...',
|
|
34
|
+
playNowRandomGame: 'Joaca-te Acum'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
tr: {
|
|
38
|
+
randomGame: {
|
|
39
|
+
playRandomGame: 'Rastgele Bir Oyun Oyna',
|
|
40
|
+
randomGameLoading: 'Oyun Seçiliyor',
|
|
41
|
+
playNowRandomGame: 'Şimdi Oyna'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
es: {
|
|
45
|
+
randomGame: {
|
|
46
|
+
playRandomGame: 'Juega un juego aleatorio',
|
|
47
|
+
randomGameLoading: 'Lütfen bekleyin ...',
|
|
48
|
+
playNowRandomGame: 'Şimdi Oyna'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
pt: {
|
|
52
|
+
randomGame: {
|
|
53
|
+
playRandomGame: 'Jogue um jogo aleatório',
|
|
54
|
+
randomGameLoading: 'Selecionando ...',
|
|
55
|
+
playNowRandomGame: 'Jogue agora'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { html } from 'lit-element';
|
|
2
|
-
|
|
3
|
-
import CasinoRandomGame from '../src/CasinoRandomGame';
|
|
4
|
-
|
|
5
|
-
// This default export determines where your story goes in the story list
|
|
6
|
-
export default {
|
|
7
|
-
title: 'CasinoRandomGame',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
|
11
|
-
const CasinoRandomGame = ({ aProperty }) => html`<casino-random-game></casino-random-game>`;
|
|
12
|
-
|
|
13
|
-
export const FirstStory = CasinoRandomGame.bind({});
|
|
1
|
+
import { html } from 'lit-element';
|
|
2
|
+
|
|
3
|
+
import CasinoRandomGame from '../src/CasinoRandomGame';
|
|
4
|
+
|
|
5
|
+
// This default export determines where your story goes in the story list
|
|
6
|
+
export default {
|
|
7
|
+
title: 'CasinoRandomGame',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
// 👇 We create a “template” of how args map to rendering
|
|
11
|
+
const CasinoRandomGame = ({ aProperty }) => html`<casino-random-game></casino-random-game>`;
|
|
12
|
+
|
|
13
|
+
export const FirstStory = CasinoRandomGame.bind({});
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
3
|
-
|
|
4
|
-
"include": ["src/**/*"],
|
|
5
|
-
"exclude": ["node_modules/*", "__sapper__/*", "public/*"]
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
3
|
+
|
|
4
|
+
"include": ["src/**/*"],
|
|
5
|
+
"exclude": ["node_modules/*", "__sapper__/*", "public/*"]
|
|
6
|
+
}
|