enriclluelles/route_translator

How to translate with dynamic root url

buithehien1991 opened this issue · 1 comments

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

Output is
image

Expected is home page with ja locale

How I can fix it? Thank you so much!

I just move route to end of routes.rb and It's work

Thank you so much!