@everymatrix/casino-bonuses-controller 1.29.3 → 1.29.4

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-bonuses-controller",
3
- "version": "1.29.3",
3
+ "version": "1.29.4",
4
4
  "main": "index.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": "b35b07d0d019ab53162690eac785d06af1ad9de9"
38
+ "gitHead": "70873f2feed3be9c071d9ad09343a833b236b4fc"
39
39
  }
@@ -3,7 +3,7 @@
3
3
  import {onMount} from 'svelte';
4
4
  import { _, addNewMessages, setLocale } from './i18n';
5
5
  import { isMobile } from 'rvhelper';
6
- import { BonusControllerTranslations } from './translation';
6
+ import { TRANSLATIONS } from './translation';
7
7
  import moment from 'moment';
8
8
  import '@vaadin/date-picker/vaadin-date-picker.js';
9
9
  import './component/CasinoBonusCard.svelte'
@@ -81,8 +81,8 @@
81
81
  console.log(err);
82
82
  });
83
83
  }
84
- Object.keys(BonusControllerTranslations).forEach((item: any) => {
85
- addNewMessages(item, BonusControllerTranslations[item]);
84
+ Object.keys(TRANSLATIONS).forEach((item: any) => {
85
+ addNewMessages(item, TRANSLATIONS[item]);
86
86
  });
87
87
  onMount(() => {
88
88
  window.addEventListener('message', messageHandler, false);
@@ -3,7 +3,7 @@
3
3
  import {onMount} from 'svelte';
4
4
  import moment from 'moment';
5
5
  import './CasinoBonusProgress.svelte';
6
- import {BonusControllerTranslations} from '../translation';
6
+ import { TRANSLATIONS } from '../translation';
7
7
  import { _, addNewMessages, setLocale } from '../i18n';
8
8
  import { getCurrencySymbol } from '../base';
9
9
  export let rawbonus: string = '';
@@ -12,7 +12,7 @@
12
12
  export let clientstyling: string = '';
13
13
  export let clientstylingurl: string = '';
14
14
  export let cmsendpoint: string = '';
15
- export let translationurl: srting = '';
15
+ export let translationurl: string = '';
16
16
 
17
17
  let bonus: any;
18
18
  let levels = [];
@@ -50,8 +50,8 @@
50
50
  console.log(err);
51
51
  });
52
52
  }
53
- Object.keys(BonusControllerTranslations).forEach((item:any) => {
54
- addNewMessages(item, BonusControllerTranslations[item]);
53
+ Object.keys(TRANSLATIONS).forEach((item:any) => {
54
+ addNewMessages(item, TRANSLATIONS[item]);
55
55
  });
56
56
  $:{
57
57
  if(status === 'claimable' ){
@@ -1,65 +1,63 @@
1
- export const BonusControllerTranslations = {
2
- en: {
3
- bonus: {
4
- bonusCode: 'Do you have a bonus code',
5
- placeholder: 'Enter your bonus code here',
6
- invalidBonusCode: 'Invalid bonus code',
7
- claim: 'Claim Bonus',
8
- from: 'From',
9
- to: 'to',
10
- noBonus: 'No bonuses found',
11
- filter: 'Filter',
12
- error: 'Error',
13
- forfeit: 'Forfeit',
14
- invalidBonusCode: `The bonus code provided is invalid.`,
15
- noActiveBonuses: `You have no active bonuses at the moment.`,
16
- forfeitMessage: `Are you sure want to forfeit bonus?`,
17
- forfeitConfirm: `Confirm`,
18
- forfeitCancel: `Cancel`,
19
- claimSuccessMessage: `Bonus claimed!`,
20
- canlendarTitle: `Select the period`,
21
- show: 'Show'
22
- },
23
- bonusType: {
24
- standard: 'Bonus Money',
25
- freeBet: 'Free Bet',
26
- freeRound: 'Free Spins',
27
- wagering: 'Wagering Challenge',
28
- cashBack: 'Cash Back',
29
- oddsBoost: 'Odds Boost',
30
- stakeBack: 'Stake Back',
31
- tournamentTicket: 'Ticket'
32
- },
33
- bonusCard: {
34
- level: 'Level',
35
- current: 'Current',
36
- next: 'Next',
37
- first: 'First',
38
- last: 'Last',
39
- previous: 'Previous',
40
- startChallenge: 'START CHALLENGE',
41
- rewards: 'Rewards',
42
- join: 'Join',
43
- forfeit: 'Forfeit',
44
- terms: 'Terms and Conditions',
45
- bonusType: 'Bonus Type',
46
- levels: 'Levels',
47
- validity: 'Validity',
48
- bonusStatus: 'Bonus Status',
49
- bonusAmount: 'Bonus Amount',
50
- wagered:'Wagered',
51
- wageredAmount: 'Wagered Amount',
52
- roundNumber: 'Number of freespins',
53
- game: 'Game',
54
- validUntil: 'Valid Until',
55
- wageringType: 'Wagering Type',
56
- remaining: 'Remaining',
57
- money: 'Money Wagering',
58
- betCount: 'Bet Count',
59
- allRewards: 'All Rewards',
60
- error: 'Join failed, please try again.',
61
- playNow: 'Play Now'
62
- }
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "bonus": {
4
+ "bonusCode": "Do you have a bonus code",
5
+ "placeholder": "Enter your bonus code here",
6
+ "claim": "Claim Bonus",
7
+ "from": "From",
8
+ "to": "to",
9
+ "noBonus": "No bonuses found",
10
+ "filter": "Filter",
11
+ "error": "Error",
12
+ "forfeit": "Forfeit",
13
+ "invalidBonusCode": "The bonus code provided is invalid.",
14
+ "noActiveBonuses": "You have no active bonuses at the moment.",
15
+ "forfeitMessage": "Are you sure want to forfeit bonus?",
16
+ "forfeitConfirm": "Confirm",
17
+ "forfeitCancel": "Cancel",
18
+ "claimSuccessMessage": "Bonus claimed!",
19
+ "canlendarTitle": "Select the period",
20
+ "show": "Show"
63
21
  },
64
- };
65
-
22
+ "bonusType": {
23
+ "standard": "Bonus Money",
24
+ "freeBet": "Free Bet",
25
+ "freeRound": "Free Spins",
26
+ "wagering": "Wagering Challenge",
27
+ "cashBack": "Cash Back",
28
+ "oddsBoost": "Odds Boost",
29
+ "stakeBack": "Stake Back",
30
+ "tournamentTicket": "Ticket"
31
+ },
32
+ "bonusCard": {
33
+ "level": "Level",
34
+ "current": "Current",
35
+ "next": "Next",
36
+ "first": "First",
37
+ "last": "Last",
38
+ "previous": "Previous",
39
+ "startChallenge": "START CHALLENGE",
40
+ "rewards": "Rewards",
41
+ "join": "Join",
42
+ "forfeit": "Forfeit",
43
+ "terms": "Terms and Conditions",
44
+ "bonusType": "Bonus Type",
45
+ "levels": "Levels",
46
+ "validity": "Validity",
47
+ "bonusStatus": "Bonus Status",
48
+ "bonusAmount": "Bonus Amount",
49
+ "wagered": "Wagered",
50
+ "wageredAmount": "Wagered Amount",
51
+ "roundNumber": "Number of freespins",
52
+ "game": "Game",
53
+ "validUntil": "Valid Until",
54
+ "wageringType": "Wagering Type",
55
+ "remaining": "Remaining",
56
+ "money": "Money Wagering",
57
+ "betCount": "Bet Count",
58
+ "allRewards": "All Rewards",
59
+ "error": "Join failed, please try again.",
60
+ "playNow": "Play Now"
61
+ }
62
+ }
63
+ };