You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
en:
my_array:
- "Line 1"
- "Line 2"
- "Line 3 has a %{variable}"
- "Line 4"
I want the output of I18n.t('my_array', :variable => 'variable named variable') to be as follows: ["Line 1", "Line 2", "Line 3 has a variable named variable", "Line 4"]
However, the output is: ["Line 1", "Line 2", "Line 3 has a %{variable}", "Line 4"]
The text was updated successfully, but these errors were encountered:
According to: http://stackoverflow.com/questions/21574900/interpolation-in-i18n-array/25484080#25484080
Say my locale file looks like this:
I want the output of I18n.t('my_array', :variable => 'variable named variable') to be as follows:
["Line 1", "Line 2", "Line 3 has a variable named variable", "Line 4"]
However, the output is:
["Line 1", "Line 2", "Line 3 has a %{variable}", "Line 4"]
The text was updated successfully, but these errors were encountered: