tuxwebror/app/controllers/application_controller.rb
2018-12-21 19:06:39 +01:00

7 lines
161 B
Ruby

class ApplicationController < ActionController::Base
before_action :set_locale
def set_locale
I18n.locale = params[:locale] || I18n.default_locale
end
end