Custom region/language
batchSDK('setup', {
...,
// Optional - Default data collection related configuration.
defaultDataCollection: {
// Whether Batch should resolve the user's region/location from the ip address.
// Optional - default: false
geoIP: true
}
});
batchSDK(async api => {
const profile = await api.profile();
await profile.edit(editor => {
editor
.setLanguage("en")
.setRegion("EN")
})
});batchSDK(api => {
api.profile().then(profile => {
profile.edit(editor => {
editor
.setLanguage("en")
.setRegion("EN")
})
})
});Last updated

