Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing active-support issues causes uncaught exception #29

Open
glennpratt opened this issue Mar 7, 2016 · 1 comment
Open

Removing active-support issues causes uncaught exception #29

glennpratt opened this issue Mar 7, 2016 · 1 comment

Comments

@glennpratt
Copy link
Contributor

./vendor/bundler/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n.rb:284:in `enforce_available_locales!': :en is not a valid locale (I18n::InvalidLocale)
    from ./vendor/bundler/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n.rb:151:in `translate'
    from ./vendor/bundler/ruby/2.2.0/gems/ruby-duration-3.2.2/lib/duration.rb:247:in `i18n_for'
    from ./vendor/bundler/ruby/2.2.0/gems/ruby-duration-3.2.2/lib/duration.rb:193:in `format'
@glennpratt glennpratt changed the title Locale issues cause uncaught exception Removing active-support issues causes uncaught exception Mar 7, 2016
@glennpratt
Copy link
Contributor Author

As far as I can tell, activesupport isn't providing any translations for time units and we are always providing a default.

I think we should either provide our own basic en translations or disable I18n.enforce_available_locales in our use case. For now, I will open a PR that restores active_support/i18n.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants