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
posts_es GET /es/posts(/page/:page(/items/:items))(.:format) posts#index {:locale=>"es"}
posts_en GET /posts(/page/:page(/items/:items))(.:format) posts#index {:locale=>"en"}
root_es GET /es posts#index {:locale=>"es"}
root_en GET / posts#index {:locale=>"en"}
The text was updated successfully, but these errors were encountered:
Steps to reproduce*
config/initializers/i18n.rb
routes.rb
app/controllers/posts_controller.rb
app/views/posts/index.html.erb - taken from https://github.com/enriclluelles/route_translator/wiki/Generating-translated-URLs
Expected behavior*
If you load /posts/page/2 the link to the
es
translated URL should be /es/posts/page/2Actual behavior*
If you load /posts/page/2 the link to the
es
translated URL will be /es/postsSystem configuration*
Rails version: Rails 7.0.3.1
Ruby version: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [aarch64-linux]
Route Translator version: route_translator (12.1.0)
I18n configuration*
Route Translator initializier
Did not create one.
Source code of routes.rb*
Source of:
config/routes.rb
Output of
rails routes
*Result of
bundle exec rails routes
:The text was updated successfully, but these errors were encountered: