I'm going to start adding I18n support for the Rails application I'm currently working on. In the past, I set the locale value from the url. I was just wondering how bad the practice of preserving the language is?
So instead:
before_filter :set_locale def set_locale I18n.locale = params[:locale] || I18n.default_locale end
Do something like
before_filter :set_locale def set_locale I18n.locale = current_user.try(:locale) || I18n.default_locale end
It seems that FB preserves the locale, what are the tradeoffs of this scheme? how can this affect SEO stuff?
Thanks!
source share