Translation keys refer to the strings in your application. Translation key can be a word, a phrase, a sentence or even a paragraph.
We do recommend to keep translation keys concise and break the paragraphs into sentences, unless they must be together.
For example, all of the following elements are translation keys:tr("Name")
tr("Hello World")
tr("Welcome to Translation Exchange")
<%= tr do %>
An entire paragraph can be wrapped into the translate function. Unless you specify that you want to break the paragraph into sentences, all of the sentences will be kept together as a single translation key.
<% end %>
Comments
0 comments
Please sign in to leave a comment.