def get_language_bidi():
 from django.conf import settings
 base_lang = get_language().split(u'-')[0]
 return (base_lang in settings.LANGUAGES_BIDI)

def get_language_bidi ( ) : from django . conf import settings base_lang = get_language ( ) . split ( u'-' ) [ 0 ] return ( base_lang in settings . LANGUAGES_BIDI )
returns selected languages bidi layout .