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

locales errors.messages.already_in_use seems broken #463

Closed
ValentinTrinque opened this issue Dec 11, 2015 · 0 comments · Fixed by #466
Closed

locales errors.messages.already_in_use seems broken #463

ValentinTrinque opened this issue Dec 11, 2015 · 0 comments · Fixed by #466

Comments

@ValentinTrinque
Copy link
Contributor

I am using devise_token_auth v.0.1.36 in a RESTful API only server application.

My default i18n locale is :fr.

While testing my application with RSpec, I keep having devise token auth error messages in english while the rest (devise and rails error messages) are correctly displayed in french.

It happens on the already_in_use key, which is defined in errors.messages.already_in_use in the locale file and called here.

By the way, I noticed that devise_token_auth doesn't really follow (which seems to be a convention among rails gems) the schema : errors.messages.<your_key> inside the locale file. I think it would be more consistent to follow this rule. What do you think ?

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

Successfully merging a pull request may close this issue.

1 participant