(request, domain)
return json_response(translations)
Retrieves translations from all domains
Retrieves translations from all domains
Retrieves translations from all domains
def get_app_ui_translations(request, domain):
    """
    Retrieves translations from all domains
    """
    params = json_request(request.GET)
    lang = params.get('lang', 'en')
    key = params.get('key', None)
    one = params.get('one', False)
    translations = Translation.get_translations(lang, key, one)
    if isinstance(translations, dict):
        translations = {k: v for k, v in translations.items()
                        if not id_strings.is_custom_app_string(k)
                        and '=' not in k}
    return json_response(translations)
def get_app_ui_translations ( request , domain ) : params = json_request ( request . GET ) lang = params . get ( 'lang' , 'en' ) key = params . get ( 'key' , None ) one = params . get ( 'one' , False ) translations = Translation . get_translations ( lang , key , one ) if isinstance ( translations , dict ) : translations = { k : v for k , v in translations . items ( ) if not id_strings . is_custom_app_string ( k ) and '=' not in k } return json_response ( translations )