class ApplicationController < ActionController::API
end

class ApplicationController < ActionController::API
  before_action :set_locale

  def set_locale
    I18n.locale = params[:locale] || I18n.default_locale
  end
end

Add support for locale parameter
Add support for locale parameter
