Skip to main content

overwolf.settings.language API

Use this API to view and modify the Overwolf language properties.

Methods Reference

Events Reference

Types Reference

get(callback)

Version added: 0.143

Returns the current language Overwolf is set to in a two letter ISO name format.

ParameterTypeDescription
callback(Result: GetLanguageResult) => voidReturns with the result

onLanguageChanged

Version added: 0.143

Fired when user change client language, with the following structure: LanguageChangedEvent Object

LanguageChangedEvent Object

ParameterTypeDescription
languagestringthe new language Overwolf is set to in a two letter ISO name format

GetLanguageResult Object

ParameterTypeDescription
successbooleaninherited from the "Result" Object
errorstringinherited from the "Result" Object
languagestringthe current language Overwolf is set to in a two letter ISO name format

Example data: Success

{
"language": "en",
"success": true
}