1

I wanna get the translation with fallback. My method is not suitable:

1) Change locale(I18n.locale = :de)

2) Get translations(Place.find(:id))

3) ...

4) Not profit!

UPDATE: I find solution!

  before_filter :set_locale

  def set_locale
    locale = params[:locale]
    if locale.present?
      I18n.locale = locale
    end
  end
xdsemx
  • 1,159
  • 1
  • 8
  • 14

0 Answers0