```ruby
Spree::Admin::BaseController.class_eval do
  # removed link to /products
  helper_method :locale_suffix

  def locale_suffix(locale)
    locale ||= I18n.locale
    I18n.locale == locale.to_sym ? "".to_sym : "_"+ locale
  end

  private

  def set_user_language
    I18n.locale = Spree::Config[:default_locale].to_sym
  end

end
```

Remove ancient default_locale preference and depend on Rails.applicat… …ion.config.i18n.default_locale instead
user
```ruby
Spree::Admin::BaseController.class_eval do
  # removed link to /products
  helper_method :locale_suffix

  def locale_suffix(locale)
    locale ||= I18n.locale
    I18n.locale == locale.to_sym ? "".to_sym : "_"+ locale
  end

  private

  def set_user_language
    I18n.locale = Rails.application.config.i18n.default_locale.to_sym
  end

end
```
assistant