Created by: dmshvetsov
This is how new_resource translation is used:
<%# app/views/administrate/application/index.html.erb %>
<div>
<%= link_to(
t(
"administrate.actions.new_resource",
name: display_resource_name(page.resource_name).titleize.downcase
),
[:new, namespace, page.resource_path],
class: "button",
) if valid_action?(:new) && show_action?(:new, new_resource) %>
</div>
we are passing name
variable instead of resource
.
This PR fix the problem.