I think you need to update your version of discourse. ensure_all_loaded! was recently added.
Here’s the main method that the plugin is overriding from application_controller.rb
def set_locale
I18n.locale = current_user.try(:effective_locale) || SiteSetting.default_locale
I18n.ensure_all_loaded!
end