@everymatrix/casino-promotions-slider 1.13.0
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 -0
- package/dist/casino-promotions-slider.js +699 -0
- package/dist/casino-promotions-slider.js.map +1 -0
- package/img/slider-line.svg +3 -0
- package/index.html +105 -0
- package/index.js +1 -0
- package/package.json +41 -0
- package/public/favicon.png +0 -0
- package/public/reset.css +48 -0
- package/rollup.config.js +59 -0
- package/src/CasinoPromotionsSlider.svelte +737 -0
- package/src/i18n.js +27 -0
- package/src/index.ts +4 -0
- package/src/translations.js +51 -0
- package/stories/CasinoPromotionsSlider.stories.js +13 -0
- package/tsconfig.json +6 -0
package/src/i18n.js
ADDED
|
@@ -0,0 +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 };
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const TRANSLATIONS = {
|
|
2
|
+
"en": {
|
|
3
|
+
"promotionsTitle": "Promotions",
|
|
4
|
+
"promotionsSubTitle": "New hot offers everyday!",
|
|
5
|
+
"promotionsButton": "More Info",
|
|
6
|
+
"promotionsNone": "There are no promotions available at the moment.",
|
|
7
|
+
"promotionsLoading": "Loading, please wait ...",
|
|
8
|
+
},
|
|
9
|
+
"zh": {
|
|
10
|
+
"promotionsTitle": "促銷活動",
|
|
11
|
+
"promotionsSubTitle": "New hot offers everyday!",
|
|
12
|
+
"promotionsButton": "更多信息",
|
|
13
|
+
"promotionsNone": "目前沒有促銷活動。",
|
|
14
|
+
"promotionsLoading": "Loading, please wait ...",
|
|
15
|
+
},
|
|
16
|
+
"fr": {
|
|
17
|
+
"promotionsTitle": "Promotions",
|
|
18
|
+
"promotionsSubTitle": "New hot offers everyday!",
|
|
19
|
+
"promotionsButton": "Plus d'informations",
|
|
20
|
+
"promotionsNone": "Il n'y a pas de promotions disponibles pour le moment.",
|
|
21
|
+
"promotionsLoading": "Loading, please wait ...",
|
|
22
|
+
},
|
|
23
|
+
"tr": {
|
|
24
|
+
"promotionsTitle": "Promosyonlar",
|
|
25
|
+
"promotionsSubTitle": "New hot offers everyday!",
|
|
26
|
+
"promotionsButton": "Daha fazla bilgi",
|
|
27
|
+
"promotionsNone": "Şu anda herhangi bir promosyon bulunmamaktadır.",
|
|
28
|
+
"promotionsLoading": "Loading, please wait ...",
|
|
29
|
+
},
|
|
30
|
+
"ro": {
|
|
31
|
+
"promotionsTitle": "Promotii",
|
|
32
|
+
"promotionsSubTitle": "New hot offers everyday!",
|
|
33
|
+
"promotionsButton": "Detalii",
|
|
34
|
+
"promotionsNone": "Nu avem promotii disponibile momentan.",
|
|
35
|
+
"promotionsLoading": "Loading, please wait ...",
|
|
36
|
+
},
|
|
37
|
+
"es": {
|
|
38
|
+
"promotionsTitle": "Promociones",
|
|
39
|
+
"promotionsSubTitle": "New hot offers everyday!",
|
|
40
|
+
"promotionsButton": "Mas informaciones",
|
|
41
|
+
"promotionsNone": "Actualmente no hay promociones disponibles.",
|
|
42
|
+
"promotionsLoading": "Loading, please wait ...",
|
|
43
|
+
},
|
|
44
|
+
"pt": {
|
|
45
|
+
"promotionsTitle": "Promoções",
|
|
46
|
+
"promotionsSubTitle": "New hot offers everyday!",
|
|
47
|
+
"promotionsButton": "Mais informações",
|
|
48
|
+
"promotionsNone": "Não há promoções disponíveis no momento.",
|
|
49
|
+
"promotionsLoading": "Loading, please wait ...",
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { html } from 'lit-element';
|
|
2
|
+
|
|
3
|
+
import CasinoPromotionsSlider from '../src/CasinoPromotionsSlider';
|
|
4
|
+
|
|
5
|
+
// This default export determines where your story goes in the story list
|
|
6
|
+
export default {
|
|
7
|
+
title: 'CasinoPromotionsSlider',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
// 👇 We create a “template” of how args map to rendering
|
|
11
|
+
const CasinoPromotionsSlider = ({ aProperty }) => html`<casino-promotions-slider></casino-promotions-slider>`;
|
|
12
|
+
|
|
13
|
+
export const FirstStory = CasinoPromotionsSlider.bind({});
|