webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherActions.js in foreman_ansible-12.0.3 vs webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherActions.js in foreman_ansible-12.0.4

- old
+ new

@@ -1,10 +1,11 @@ import api from 'foremanReact/API'; import { propsToSnakeCase, propsToCamelCase, } from 'foremanReact/common/helpers'; +import { translate as __ } from 'foremanReact/common/I18n'; import { ANSIBLE_ROLES_REQUEST, ANSIBLE_ROLES_SUCCESS, ANSIBLE_ROLES_FAILURE, @@ -46,10 +47,10 @@ } }; const errorHandler = (msg, err) => { const error = { - errorMsg: 'Failed to fetch Ansible Roles from server.', + errorMsg: __('Failed to fetch Ansible Roles from server.'), statusText: err.response.statusText, }; return { type: msg, payload: { error } }; };