```ruby
class ApplicationController < ActionController::API
end
```

Add support for locale parameter
user
```ruby
class ApplicationController < ActionController::API
  before_action :set_locale

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