I have a table with columns that contain a string. For simplicity let's say the possible values are 'Apple', 'Pear', 'Banana', stored in the DB in English.
For my different locales I wish to translate this string using i18n.
My guess was to add to my nl.yml
"Apple": "Appel"
"Pear": "Peer"
"Banana": "Banaan"
And then add to my view
<%= t(@fruit.name) %>
But this does not quite work as expected. Any suggestions?