@post_required
@user_view
def remove_locale(request, user):
    POST = request.POST
    if 'locale' in POST and POST['locale'] != settings.LANGUAGE_CODE:
        user.remove_locale(POST['locale'])
        return http.HttpResponse()
    return http.HttpResponseBadRequest()
Remove a locale from the user's translations.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/users/views.py/remove_locale