Skip to content

Commit

Permalink
Merge pull request #5979 from mamhoff/fix-missing-translation-spec
Browse files Browse the repository at this point in the history
Backend: Add missing error translation
  • Loading branch information
tvdeyen authored Dec 3, 2024
2 parents 9013f71 + 506ddfc commit 1329331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def user

it "cannot be destroyed" do
is_expected.to be_forbidden
expect(subject.body).to eq I18n.t("spree.error_user_destroy_with_orders")
expect(subject.body).to eq("Cannot delete a user with orders")
end
end
end
Expand Down
1 change: 1 addition & 0 deletions core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,7 @@ en:
end: End
ending_in: Ending in
error: error
error_user_destroy_with_orders: Cannot delete a user with orders
errors:
messages:
cannot_delete_finalized_stock_location: Stock Location cannot be destroyed if you have open stock transfers.
Expand Down

0 comments on commit 1329331

Please sign in to comment.