It was already like this before your patch, but I don't understand why we call `getCurrentLanguage` before settting the value?
We don't even use the value sent to the callback given to `getCurrentLanguage`.