def METHOD_NAME(request, code, slug):
    """Locale-project overview."""
    locale = get_object_or_404(Locale, code=code)
    project = get_project_or_redirect(
        slug, "pontoon.localizations.localization", "slug", request.user, code=code
    )
    if isinstance(project, HttpResponseRedirect):
        return project
    project_locale = get_object_or_404(
        ProjectLocale,
        locale=locale,
        project=project,
    )
    resource_count = len(locale.parts_stats(project)) - 1
    return render(
        request,
        "localizations/localization.html",
        {
            "locale": locale,
            "project": project,
            "project_locale": project_locale,
            "resource_count": resource_count,
            "tags_count": (
                project.tag_set.filter(resources__isnull=False).distinct().count()
                if project.tags_enabled
                else None
            ),
        },
    )