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

Cldr.Plug.SetLocale from session failed #131

Closed
Ray-Wang opened this issue Oct 18, 2019 · 1 comment
Closed

Cldr.Plug.SetLocale from session failed #131

Ray-Wang opened this issue Oct 18, 2019 · 1 comment

Comments

@Ray-Wang
Copy link

Plug Cldr.Plug.SetLocale, from: :session

An exception was raised
(FunctionClauseError) no function clause matching in Cldr.Plug.SetLocale.return_if_valid_locale/1
(ex_cldr) lib/cldr/plug/plug_set_locale.ex:203: Cldr.Plug.SetLocale.return_if_valid_locale("en")

@kipcole9
Copy link
Collaborator

Thanks for the report and sorry for the inconvenience. Can you show me the code where you set the locale in your session? I understand why the exception is being raised but before I put in a fix I’d like to validate an assumption about how the locale in the session is being set.

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