diff --git a/app/controllers/api/v1/credentials_controller.rb b/app/controllers/api/v1/credentials_controller.rb index e23150e..958f986 100644 --- a/app/controllers/api/v1/credentials_controller.rb +++ b/app/controllers/api/v1/credentials_controller.rb @@ -27,7 +27,7 @@ def create end def update - resp, status = Tasks::ReimportProducts.new(true, @mp_credential, 'user control').call + resp, status = Tasks::ReimportProducts.new(true, @mp_credential, I18n.t('messages.users_control')).call render json: resp, status: end diff --git a/config/locales/en.yml b/config/locales/en.yml index 663bce3..9b5d0d1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -44,3 +44,4 @@ en: messages: process_has_started: 'The process has started' check_in_ten_minutes: 'Check the products for marketplace_credentials %{id} in 10 minutes' + users_control: "User's control"