Contoh skrip konfigurasi lokal untuk manajemen sesi dan preferensi bahasa.
JavaScript
// Konfigurasi objek klien lokal sl99
const clientConfig = {
brandIdentifier: "sl99",
countryTarget: "id",
network: {
timeoutLimitMs: 8000,
retryAttempts: 3
},
preferences: {
defaultLocale: "Bahasa Indonesia",
enableSessionLog: true
}
};
function validateConfig(config) {
return Boolean(config.brandIdentifier && config.network.timeoutLimitMs);
}
module.exports = { clientConfig, validateConfig };
JSON
{
"brandIdentifier": "sl99",
"countryTarget": "id",
"network": {
"timeoutLimitMs": 8000,
"retryAttempts": 3
},
"preferences": {
"defaultLocale": "Bahasa Indonesia",
"enableSessionLog": true
}
}