aliyundocxblock/aliyundocxblock.py
def _get_statici18n_js_url():
        """
        Returns the Javascript translation file for the currently selected language, if any.
        Defaults to English if available.
        """
        locale_code = translation.get_language()
        if locale_code is None:
            return None
        text_js = 'public/js/translations/{locale_code}/text.js'
        lang_code = locale_code.split('-')[0]
        for code in (locale_code, lang_code, 'en'):
            loader = ResourceLoader(__name__)
            if pkg_resources.resource_exists(
                    loader.module_name, text_js.format(locale_code=code)):
                return text_js.format(locale_code=code)
        return None

        Returns the Javascript translation file for the currently selected language, if any.
        Defaults to English if available.
        
Returns the Javascript translation file for the currently selected language, if any.
Defaults to English if available.
Returns the Javascript translation file for the currently selected language if any . Defaults to English if available .
def _get_statici18n_js_url():
        locale_code = translation.get_language()
        if locale_code is None:
            return None
        text_js = 'public/js/translations/{locale_code}/text.js'
        lang_code = locale_code.split('-')[0]
        for code in (locale_code, lang_code, 'en'):
            loader = ResourceLoader(__name__)
            if pkg_resources.resource_exists(
                    loader.module_name, text_js.format(locale_code=code)):
                return text_js.format(locale_code=code)
        return None
def _get_statici18n_js_url ( ) : locale_code = translation . get_language ( ) if locale_code is None : return None text_js = 'public/js/translations/{locale_code}/text.js' lang_code = locale_code . split ( '-' ) [ 0 ] for code in ( locale_code , lang_code , 'en' ) : loader = ResourceLoader ( __name__ ) if pkg_resources . resource_exists ( loader . module_name , text_js . format ( locale_code = code ) ) : return text_js . format ( locale_code = code ) return None
Returns the Javascript translation file for the currently selected language, if any.
Returns the Javascript translation file for the currently selected language if any .
"""
        Returns the Javascript translation file for the currently selected language, if any.
        Defaults to English if available.
        """