@everymatrix/casino-footer-v2 1.11.1 → 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-footer-v2",
3
- "version": "1.11.1",
3
+ "version": "1.12.1",
4
4
  "main": "dist/casino-footer-v2.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": "a74cb23abc28e2a5ca4a61858da32c86640ebd43"
38
+ "gitHead": "b07d8c9aee6584ea4b4d1718d7d928d4f2dfb523"
39
39
  }
@@ -8,7 +8,7 @@
8
8
  import moment from 'moment';
9
9
  import { checkSession, isMobile, getDevice } from 'rvhelper';
10
10
  import { _, addNewMessages, setLocale, setupI18n } from './i18n';
11
- import { CasinoFooterTranslations } from './translations.js'
11
+ import { TRANSLATIONS } from './translations.js'
12
12
 
13
13
  export let endpoint:string = '';
14
14
  export let lang:string = 'en';
@@ -93,8 +93,8 @@
93
93
  });
94
94
  }
95
95
 
96
- Object.keys(CasinoFooterTranslations).forEach((item:any) => {
97
- addNewMessages(item, CasinoFooterTranslations[item]);
96
+ Object.keys(TRANSLATIONS).forEach((item:any) => {
97
+ addNewMessages(item, TRANSLATIONS[item]);
98
98
  });
99
99
 
100
100
  let panicButtonCustomText:string = $_('casinoFooter.panicButton');
@@ -129,7 +129,7 @@
129
129
 
130
130
  timeString = `${hours > 9 ? hours : '0' + hours}:${minutes > 9 ? minutes : '0' + minutes}:${seconds > 9 ? seconds : '0' + seconds}`;
131
131
 
132
- sessionTimerElement.innerHTML = ` ${$_('casinoFooter.sessionTimer')} ${timeString}`;
132
+ sessionTimerElement.innerHTML = ` ${$_('sessionTimer')} ${timeString}`;
133
133
 
134
134
  milisecondDifference += 1000;
135
135
  }, 1000);
@@ -1,65 +1,47 @@
1
- export const CasinoFooterTranslations = {
2
- en: {
3
- casinoFooter: {
4
- timeText: `Time`,
5
- sessionTimer: 'logged in for',
6
- panicButton: 'Hold button for 3 seconds to take 24-hour timeout',
7
- }
8
- },
9
- de: {
10
- casinoFooter: {
11
- timeText: `Time`,
12
- sessionTimer: 'logged in for',
13
- panicButton: 'Button für 3 Sekunden drücken um eine 24-stündige Auszeit zu nehmen',
14
- }
15
- },
16
- fr: {
17
- casinoFooter: {
18
- timeText: `Time`,
19
- sessionTimer: 'logged in for',
20
- panicButton: 'Hold button for 3 seconds to take 24-hour timeout',
21
- }
22
- },
23
- ro: {
24
- casinoFooter: {
25
- timeText: `Ora`,
26
- sessionTimer: 'online de',
27
- panicButton: 'Hold button for 3 seconds to take 24-hour timeout',
28
- }
29
- },
30
- es: {
31
- casinoFooter: {
32
- timeText: `Hora`,
33
- sessionTimer: 'tiempo sesión',
34
- panicButton: 'Dar clic durante 3 segundos para tomar un descanso de 24 horas',
35
- }
36
- },
37
- pt: {
38
- casinoFooter: {
39
- timeText: `Time`,
40
- sessionTimer: 'logged in for',
41
- panicButton: 'Hold button for 3 seconds to take 24-hour timeout',
42
- }
43
- },
44
- hr: {
45
- casinoFooter: {
46
- timeText: `Time`,
47
- sessionTimer: 'logged in for',
48
- panicButton: 'Držite gumb 3 sekunde kako biste aktivirali vremensko ograničenje od 24 sata',
49
- }
50
- },
51
- sl: {
52
- casinoFooter: {
53
- timeText: `Time`,
54
- sessionTimer: 'logged in for',
55
- panicButton: 'Držite gumb 3 sekunde, da bi vzeli 24 urni premor',
56
- }
57
- },
58
- pl: {
59
- casinoFooter: {
60
- timeText: `Time`,
61
- sessionTimer: 'logged in for',
62
- panicButton: 'Przytrzymaj przycisk przez 3 sekundy, aby uzyskać 24-godzinny limit czasu',
63
- }
64
- },
65
- };
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "timeText": "Time",
4
+ "sessionTimer": "logged in for",
5
+ "panicButton": "Hold button for 3 seconds to take 24-hour timeout"
6
+ },
7
+ "de": {
8
+ "timeText": "Time",
9
+ "sessionTimer": "logged in for",
10
+ "panicButton": "Button für 3 Sekunden drücken um eine 24-stündige Auszeit zu nehmen"
11
+ },
12
+ "fr": {
13
+ "timeText": "Time",
14
+ "sessionTimer": "logged in for",
15
+ "panicButton": "Hold button for 3 seconds to take 24-hour timeout"
16
+ },
17
+ "ro": {
18
+ "timeText": "Ora",
19
+ "sessionTimer": "online de",
20
+ "panicButton": "Hold button for 3 seconds to take 24-hour timeout"
21
+ },
22
+ "es": {
23
+ "timeText": "Hora",
24
+ "sessionTimer": "tiempo sesión",
25
+ "panicButton": "Dar clic durante 3 segundos para tomar un descanso de 24 horas"
26
+ },
27
+ "pt": {
28
+ "timeText": "Time",
29
+ "sessionTimer": "logged in for",
30
+ "panicButton": "Hold button for 3 seconds to take 24-hour timeout"
31
+ },
32
+ "hr": {
33
+ "timeText": "Time",
34
+ "sessionTimer": "logged in for",
35
+ "panicButton": "Držite gumb 3 sekunde kako biste aktivirali vremensko ograničenje od 24 sata"
36
+ },
37
+ "sl": {
38
+ "timeText": "Time",
39
+ "sessionTimer": "logged in for",
40
+ "panicButton": "Držite gumb 3 sekunde, da bi vzeli 24 urni premor"
41
+ },
42
+ "pl": {
43
+ "timeText": "Time",
44
+ "sessionTimer": "logged in for",
45
+ "panicButton": "Przytrzymaj przycisk przez 3 sekundy, aby uzyskać 24-godzinny limit czasu"
46
+ }
47
+ }