Regulations & Restrictions
Social (or sweepstake) casinos
To be able to enter social casinos, you need to change words like bet / pay in your translations.
To know if the game is being opened in a social casino, you can check:
let isSocialCasino = ETHEREAL.data.casinoType() === "sweep";
You can add an extra translation file, with only the keys that are afected, if the game is in a social casino, this will override the base game translations so you don't need to change the base file.
The translation file must be called sweep.json or end with it.
:::doc Extra functionality
You can use your own translation module or use the Ethereal translate module, as explained here. Ethereal translate module has its common translations prepared to work on sweepstake / social casinos (values such as total bet / bet / paytable / etc are already adapted) :::
This is the list of words that you need to change from the game:
| Word | Change for social casino |
|---|---|
| Bet / Stake | Play amount |
| Paylines | Lines |
| Payout | Win amount / prize |
| Payback | Return to player |
| Pays / Paying / Paid | Awards / Awarding / Awarded |
| Is paid | Is awarded |
| Pays (noun) | Wins |
| Payways | Ways |
| Winning bet lines | Winning lines |
| Paytable | Win table |
| Price | Prize |
| Chip(s) | Coin(s) |
| Currency | Coin type |
| Bet | Play |
| Bet level | Play level |
| Total bet | Play bet |
| Not enough money in your account | Not enough coins available to play |
| Buy / Buying / Bought | Play / Playing / Played |
| Gamble | Take a chance |
| Cost(s) | Value(s) |
| Make deposit | 'Go to lobby' / 'Visit store' |
| Withdraw | Redeeming a prize |
| Wager | Spin |
| Slot | Game |
| Cash / Money / Dollar | Coins |