Contoh berkas konfigurasi lokal katalog sv88.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek lokal katalog game sv88
const sv88CatalogConfig = {
domain: "rk89game.com" ,
country: "id" ,
supportedGames: [
{ id: "059" , name: "Bikini Paradise" , category: "Slot" },
{ id: "199" , name: "Farmstead Fort" , category: "Permainan Kasual" }
],
defaultLanguage: "Bahasa Indonesia"
};
function getGameTitle(gameId) {
const game = sv88CatalogConfig.supportedGames.find(item => item.id === gameId);
return game ? game.name : "Permainan Tidak Ditemukan" ;
}
module.exports = { sv88CatalogConfig, getGameTitle }; JSON
{
"domain" : "rk89game.com" ,
"country" : "id" ,
"supportedGames" : [
{
"id" : "059" ,
"name" : "Bikini Paradise" ,
"category" : "Slot"
},
{
"id" : "199" ,
"name" : "Farmstead Fort" ,
"category" : "Permainan Kasual"
}
],
"defaultLanguage" : "Bahasa Indonesia"
}