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


  1. Add gem 'rails-i18n' in your Gemfile.
  2. In your terminal, execute bundle install
  3. Store your translations in config/locales directory. Translations for different languages are stored in separate files, and each file is named after this language.

  1. To perform a simple translation, utilize the translate method t. Also, notice I created an unordered list for the link of the languages.

Github repo: https://github.com/jsafe00/rails-crud-mvc/tree/multiple-languages