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

Filter on jekyll 2.4 #1

Open
stephane-r opened this issue Nov 4, 2014 · 3 comments
Open

Filter on jekyll 2.4 #1

stephane-r opened this issue Nov 4, 2014 · 3 comments

Comments

@stephane-r
Copy link

Hi,

Do you know if you plugin work with Jekyll 2.4 ? After more testing, i've this message on my console :

[deprecated] I18n.enforce_available_locales will default to true in the future.
If you really want to skip validation of your locale you can set I18n.enforce_av
ailable_locales = false to avoid this message.

Thank you ! :)

@nelsonsar
Copy link
Owner

I think you can try this:

def localize(input, format=nil)
  I18n.config.enforce_available_locales = true
  # or I18n.enforce_available_locales = true
  load_translations
  format = (format =~ /^:(\w+)/) ? $1.to_sym : format
  I18n.l input, :format => format, :locale => LOCALE
end

And the warning should disappear :)

@stephane-r
Copy link
Author

Hi nelson !

I've test your code, but not result. I've same error message.

Maybe I do something wrong ? My github : https://github.com/LeG3nDz/v3.stephane-richin.lan (without the last test).

Do you have test with jekyll 2.4 ?

Thank you :)

@stephane-r
Copy link
Author

Any idea ? :)

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

No branches or pull requests

2 participants