def _is_lang_change(self, request):
        if 'lang' not in request.GET:
            return False

        return not any(request.path.endswith(url) for url in self.exempt_urls)
Return True if the lang param is present and URL isn't exempt.
dataset/ETHPy150Open mozilla/funfactory/funfactory/middleware.py/LocaleURLMiddleware._is_lang_change