jeudi 22 décembre 2016

Rails internationalization if check not working

I have a rails app and working with two languages.

Interestingly, when I check the following in main.html.erb;

MYLOCAL <%= I18n.locale == "en" %>|<%= I18n.locale %>

outputs;

false|en

Why would that happen ?

Aucun commentaire:

Enregistrer un commentaire