overwolf.settings.language API
Use this API to view and modify the Overwolf language properties.
Methods Reference
Events Reference
Types Reference
- overwolf.settings.language.GetLanguageResult Object
- overwolf.settings.language.LanguageChangedEvent Object
get(callback)
Version added: 0.143
Returns the current language Overwolf is set to in a two letter ISO name format.
Parameter | Type | Description |
---|---|---|
callback | (Result: GetLanguageResult) => void | Returns with the result |
onLanguageChanged
Version added: 0.143
Fired when user change client language, with the following structure: LanguageChangedEvent Object
LanguageChangedEvent Object
Parameter | Type | Description |
---|---|---|
language | string | the new language Overwolf is set to in a two letter ISO name format |
GetLanguageResult Object
Parameter | Type | Description |
---|---|---|
success | boolean | inherited from the "Result" Object |
error | string | inherited from the "Result" Object |
language | string | the current language Overwolf is set to in a two letter ISO name format |
Example data: Success
{
"language": "en",
"success": true
}