call the translation.get_language function, substitute the result for the value under the 'LANGUAGE_CODE' key of the context_extras dictionary.
context_extras [ 'LANGUAGE_CODE' ] = translation . get_language ( )