lib/test_server/main.rb in test_server-0.1.0 vs lib/test_server/main.rb in test_server-0.1.1
- old
+ new
@@ -21,10 +21,11 @@
def configure_i18n
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
I18n.load_path = Dir[::File.join(TestServer.root_path, 'lib', 'test_server', 'locales', '*.yml')]
I18n.backend.load_translations
- I18n.enforce_available_locales = true
+ I18n.available_locales = [:en]
+ I18n.enforce_available_locales = false
end
end
end
TestServer.configure_i18n