def _i18n_cache_key_suffix(request, cache_key):
    if settings.USE_I18N:
        # first check if LocaleMiddleware or another middleware added
        # LANGUAGE_CODE to request, then fall back to the active language
        # which in turn can also fall back to settings.LANGUAGE_CODE
        cache_key += '.%s' % getattr(request, 'LANGUAGE_CODE', get_language())
    return cache_key
If enabled, returns the cache key ending with a locale.
dataset/ETHPy150Open adieu/django-nonrel/django/utils/cache.py/_i18n_cache_key_suffix