Is there a commonly accepted method for translating user input using
I18n ? I would like users to be able to enter the names of books in an
entry form in their own language. The list of books is large but
finite (definitely no more than 500 book titles).
I have .yml files with all the book names as english keys: For
example, in my ‘es.yml’ I have
Lord of the Rings: “El Señor de los Anillos”
If someone enters ‘El Señor de los Anillos’ how do I translate this
back to English? I’ve tried:
I18n.backend.send(:translations).index(“El Señor de los Anillos”)
but that returns nil.