Did you know?
In ruby, 0 is true. This is different from other languages where empty constructs or 0 frequently evaluate as false. https://learn.co/lessons/truthiness-in-ruby-readme
- Add gem 'rails-i18n' in your Gemfile.
- In your terminal, execute bundle install
- Store your translations in config/locales directory. Translations for different languages are stored in separate files, and each file is named after this language.
- To perform a simple translation, utilize the translate method t. Also, notice I created an unordered list for the link of the languages.