Skip to content

Commit

Permalink
add locale for message to CredentialsController
Browse files Browse the repository at this point in the history
  • Loading branch information
rubygitflow committed Feb 26, 2024
1 parent 110e12a commit a0c7006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/credentials_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit a0c7006

Please sign in to comment.