Sha256: 958bb81e2677a2635ff90e5f467f7d711e5cbed5d1bb4bd43b4ff5f324a84591

Contents?: true

Size: 802 Bytes

Versions: 13

Compression:

Stored size: 802 Bytes

Contents

# frozen_string_literal: true

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------

# Set default locale from Settings
# defer setting the locale until all I18n locales have been initialized
#------------------------------------------------------------------------------

# Turn off until https://github.com/rails/rails/issues/13164 is fixed
I18n.config.enforce_available_locales = false
Rails.application.config.i18n.fallbacks = true

FatFreeCRM.application.config.after_initialize do
  I18n.default_locale = Setting.locale
  I18n.fallbacks[:en] = [:"en-US"]
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 config/initializers/locale.rb
fat_free_crm-0.22.0 config/initializers/locale.rb
fat_free_crm-0.21.0 config/initializers/locale.rb
fat_free_crm-0.20.1 config/initializers/locale.rb
fat_free_crm-0.20.0 config/initializers/locale.rb
fat_free_crm-0.19.2 config/initializers/locale.rb
fat_free_crm-0.19.0 config/initializers/locale.rb
fat_free_crm-0.18.2 config/initializers/locale.rb
fat_free_crm-0.17.3 config/initializers/locale.rb
fat_free_crm-0.18.1 config/initializers/locale.rb
fat_free_crm-0.18.0 config/initializers/locale.rb
fat_free_crm-0.17.2 config/initializers/locale.rb
fat_free_crm-0.17.1 config/initializers/locale.rb