ruby on rails - Unique locale yml path for /new and /edit when using partial -
I use partial _form for both new
and edit
Action / scene
I have this form: t (". Change_image")
The missing path path generated by the rail is the following
Translation is unavailable: en.users.form.change_image
but I have to do different text in en.yml
if this new or
edit
, which means "add image" and "change image".
Do i have unique locale path action and partial? Such as
en: user: new: change_image:
< P> The current partially skips the key if the key starts with a period, then you have to use the full path in the
t ()
. E.g., t ("user. {{Params [: verb}}. Change_image")
Comments
Post a Comment