```ruby
# frozen_string_literal: true

module Api
  module Internal
    class ApplicationController < ActionController::Base
      include ControllerCommon
      include Analyzable

      private

      def load_work
        @work = Work.published.find(params[:work_id])
      end

      def load_episode
        @episode = @work.episodes.find(params[:episode_id])
      end
    end
  end
end
```

Fix a bug which some text has not changed into correct language.
user
```ruby
# frozen_string_literal: true

module Api
  module Internal
    class ApplicationController < ActionController::Base
      include ControllerCommon
      include Analyzable

      before_action :switch_languages

      private

      def load_work
        @work = Work.published.find(params[:work_id])
      end

      def load_episode
        @episode = @work.episodes.find(params[:episode_id])
      end
    end
  end
end
```
assistant