lib/i18n/weeler.rb in weeler-0.0.4 vs lib/i18n/weeler.rb in weeler-1.0.0
- old
+ new
@@ -1,6 +1,12 @@
require 'i18n'
+
require 'i18n/humanize_missing_translations'
+I18n.exception_handler.extend I18n::HumanizeMissingTranslations
+
require 'i18n/backend/weeler'
+weeler_i18n_backend = I18n::Backend::Weeler.new
+weeler_i18n_backend.i18n_cache = Weeler.i18n_cache
+I18n.backend = I18n::Backend::Chain.new(weeler_i18n_backend, I18n::Backend::Simple.new)
-I18n.exception_handler.extend I18n::HumanizeMissingTranslations
-I18n.backend = I18n::Backend::Chain.new(I18n::Backend::Weeler.new, I18n::Backend::Simple.new)
\ No newline at end of file
+logger = Logger.new(STDOUT)
+logger.info "Weeler i18n backend loaded"