app/controllers/i18n_controller.rb
# Changes locale and returns to the previous view
Changes locale and returns to the previous view
Changes locale and returns to the previous view
def change_locale
    @current_user.update_attribute(:locale, params[:locale]) if @current_user
    redirect_to PathHelpers.path_after_locale_change(
                  locale: params[:locale],
                  redirect_uri: params[:redirect_uri]
                )
  end
def change_locale @current_user . update_attribute ( :locale , params [ :locale ] ) if @current_user redirect_to PathHelpers . path_after_locale_change ( locale : params [ :locale ] , redirect_uri : params [ :redirect_uri ] ) end
Changes locale and returns to the previous view
Changes locale and returns to the previous view