You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The users/sign_in renders the layout. (app/views/devise/sessions/new.html.erb)
1 <%= render layout: "shared/landing_layout" do %>
The layout yields to the contents of new. (app/views/shared/_landing_layout.html.erb)
9 <%= yield %>
Which then has the sign_in link (app/views/devise/sessions/new.html.erb)
5 <%= t(".sign_in") %>
I am not that familiar with how Rails resolves the keys, but it has resolved this key to be en.shared.landing_layout.sign_in as evidenced by the stack trace. Devise generated locale files as well. These were not modified by the above command.
The text was updated successfully, but these errors were encountered:
I think there might be a bug related to relative translations in partials vs the Rails behaviour.
To avoid the issues now you can use the absolute path to the translation.
I am in a Rails 7 app with
i18n-tasks (1.0.11)
in my Gemfile Lock. and I am runningi18n-tasks remove-unused --keep-order
After running this, my app fails with
translation missing: en.shared.landing_layout.sign_in
The key is indeed removed, per git diff:
My Rails app has devise views generated. The stack trace:
The users/sign_in renders the layout. (app/views/devise/sessions/new.html.erb)
The layout yields to the contents of new. (app/views/shared/_landing_layout.html.erb)
Which then has the sign_in link (app/views/devise/sessions/new.html.erb)
I am not that familiar with how Rails resolves the keys, but it has resolved this key to be
en.shared.landing_layout.sign_in
as evidenced by the stack trace. Devise generated locale files as well. These were not modified by the above command.The text was updated successfully, but these errors were encountered: