Answer the question
In order to leave comments, you need to log in
How to output a translation to a page from a file?
My ru.yml file
ru:
hello: "Привет"
<%= t :hello %>
ru:
nav:
hello: "Привет"
<%= t :nav:hello %>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question