How to translate with dynamic root url
buithehien1991 opened this issue · 1 comments
buithehien1991 commented
Dear all,
I have root level route like that
root 'posts#index'
get ':id', to: 'posts#show', as: :post
And now I added route translate like
localized do
get '/', to: 'posts#index', as: :posts
get ':id', to: 'posts#show', as: :post
end
And now I access on
http://localhost:3000/ja
Expected is home page with ja locale
How I can fix it? Thank you so much!
buithehien1991 commented
I just move route to end of routes.rb and It's work
Thank you so much!