module TrustyCms::Initializer

def initialize_i18n


Extends the Rails initializer to add locale paths from TRUSTY_CMS_ROOT and from trusty extensions.
def initialize_i18n
  trusty_locale_paths = Dir[File.join(TRUSTY_CMS_ROOT, 'config', 'locales', '*.{rb,yml}')]
  configuration.i18n.load_path = trusty_locale_paths + extension_loader.paths(:locale)
  super
end