changeLanguage
Function to execute the language change
Parameters
newLanguage
: the new language of the user
onSuccess
: the action to execute if the request has been successful
Function to execute the language change
: the new language of the user
: the action to execute if the request has been successful