<commit_before>define([
    'oro/datagrid/action/ajaxdelete-action',
    'oroui/js/delete-confirmation',
    'oroui/js/mediator'
], function(AjaxdeleteAction, DeleteConfirmation, mediator) {
    'use strict';

    var AjaxdeletefieldAction;

    /**
     * Ajax delete field action, shows confirmation dialogue, triggers REST AJAX request
     * and on success - refresh current page
     *
     * @export  oro/datagrid/action/ajaxdeletefield-action
     * @class   oro.datagrid.action.AjaxdeletefieldAction
     * @extends oro.datagrid.action.AjaxdeleteAction
     */
    AjaxdeletefieldAction = AjaxdeleteAction.extend({
        confirmation: true,

        /** @property {Function} */
        confirmModalConstructor: DeleteConfirmation,

        defaultMessages: {
            confirm_title: 'Delete Confirmation',
            confirm_content: 'oro.entityextend.delete_field.confirm_content',
            confirm_ok: 'Yes',
            confirm_cancel: 'Cancel',
            success: 'Removed.',
            error: 'Not removed.',
            empty_selection: 'Please, select item to remove.'
        },
        _onAjaxSuccess: function(data) {
            mediator.execute('refreshPage');
        }
    });

    return AjaxdeletefieldAction;
});
<commit_msg>BAP-12959:  Untranslated text in entity manager delete confirmation window (#5164)<commit_after>define([
    'oro/datagrid/action/ajaxdelete-action',
    'oroui/js/delete-confirmation',
    'oroui/js/mediator'
], function(AjaxdeleteAction, DeleteConfirmation, mediator) {
    'use strict';

    var AjaxdeletefieldAction;

    /**
     * Ajax delete field action, shows confirmation dialogue, triggers REST AJAX request
     * and on success - refresh current page
     *
     * @export  oro/datagrid/action/ajaxdeletefield-action
     * @class   oro.datagrid.action.AjaxdeletefieldAction
     * @extends oro.datagrid.action.AjaxdeleteAction
     */
    AjaxdeletefieldAction = AjaxdeleteAction.extend({
        confirmation: true,

        /** @property {Function} */
        confirmModalConstructor: DeleteConfirmation,

        defaultMessages: {
            confirm_title: 'Delete Confirmation',
            confirm_content: 'oro.entity_extend.delete_field.confirm_content',
            confirm_ok: 'Yes',
            confirm_cancel: 'Cancel',
            success: 'Removed.',
            error: 'Not removed.',
            empty_selection: 'Please, select item to remove.'
        },
        _onAjaxSuccess: function(data) {
            mediator.execute('refreshPage');
        }
    });

    return AjaxdeletefieldAction;
});

{'fraction_non_alphanumeric': 0.10370084811102544, 'fraction_numerical': 0.003469545104086353, 'mean_word_length': 2.634453781512605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1896149', 'n_tokens_mistral': 744, 'n_tokens_neox': 707, 'n_words': 145}