aboutsummaryrefslogtreecommitdiff
path: root/config/initializers/locale.rb
blob: a65acccea8f2cb732cab86492aa91029deb81cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

I18n.available_locales = %i[en ca]

I18n.default_locale = if Rails.env.test?
                        :en
                      else
                        ENV.fetch('OPERUM_DEFAULT_LOCALE', :ca).to_sym
                      end

Rails.logger.info "Locale: #{I18n.default_locale}"