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