change Language

fun changeLanguage(newLanguage: String, onSuccess: () -> Unit)

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