below is an example of menu in french, I will also have it in another five more languages:
<a href="/<%= @lang %>/">Jeux</a>
<a href="/<%= @lang %>/get-the-player">Obtenir le lecteur</a>
<a href="/<%= @lang %>/about">À propos</a>
<a href="/<%= @lang %>/faq">FAQ</a>
<a href="/<%= @lang %>/contact">Contact</a>
at the moment the menu are in a relevant pages (.html.erb), by using the code listed below
<%= content_for :menu do %>
<a href="/<%= @lang %>/">Jeux</a>
<a href="/<%= @lang %>/get-the-player">Obtenir le lecteur</a>
<a href="/<%= @lang %>/about">À propos</a>
<a href="/<%= @lang %>/faq">FAQ</a>
<a href="/<%= @lang %>/contact">Contact</a>
<% end %>
once I have done above I have got the reference on the application.html.erb
<%= yield :menu %>
it can be done exactly the same way for other languages, however, is there a way where I could avoid the repetition of the code. perhaps makes the controller to go and find for it and render it in exact place ? Help please,
thanks in advance!
===========================================================================
**CHECK BELOW FOR SOLUTIONS THAT I HAVE PROVIDED**