Open pusewicz opened 8 years ago
Hi,
it should not be possible at the moment, I don't think this gem supports inflections
Yeah, but having the ability to define the translation per resource would be enough.
@pusewicz I was thinking about the same feature
Labeling as "help wanted", everyone feel free to submit a PR with proper tests.
Please do not +1 here
A good way to do this is to change the default new
to something you can translate.
localized do
resources :categories, path_names: { new: "new_category" }
end
In your translations you can now translate new_category
to new
in english and nueva
in spanish.
Is it possible to translate the
new
part of the path for different resources?In Spanish
new
would translate tonuevo
ornueva
depending on the gender of the resource.