Skip to content

Commit c1f2c3e

Browse files
committed
Fix Translation Missing en.active_admin.create_model
On submitting a create / edit form for a resource where validations fail, the page rendered looks for create_model / update_model string. I've given a fix here for the en locales file, but have left the other languages as the fix could be made either in yml or in code (I'm not sure which is better overall, I've left the decision up to the maintainer).
1 parent 5676c99 commit c1f2c3e

File tree

1 file changed

+2
-0
lines changed
  • lib/active_admin/locales

1 file changed

+2
-0
lines changed

lib/active_admin/locales/en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ en:
99
delete: "Delete"
1010
delete_confirmation: "Are you sure you want to delete this?"
1111
new_model: "New %{model}"
12+
create_model: "New %{model}"
1213
edit_model: "Edit %{model}"
14+
update_model: "Edit %{model}"
1315
delete_model: "Delete %{model}"
1416
details: "%{model} Details"
1517
cancel: "Cancel"

0 commit comments

Comments
 (0)