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

Force :en locale inside ErrorsController to avoid missing translations #36

Conversation

everton
Copy link
Contributor

@everton everton commented Mar 3, 2024

Fix #34

When the application is running using a default locale other than :en and not using :en as one of its fallbacks, the time presented inside the errors views will all be showing translation missing messages because the engine is using the custom "datetime.distance_in_words.short" translation set, which doesn't exist on rails-i18n.

When the application is running using a default locale other than :en and not
using :en as one of its fallbacks, the time presented inside the errors views
will all be showing translation missing messages because the engine is using
the custom "datetime.distance_in_words.short" translation set, which doesn't
exist on rails-i18n.
@fractaledmind
Copy link
Owner

Sorry for the delay on reviewing this. Been busy getting married 😊. Looks good, and great find. Thanks.

@fractaledmind fractaledmind merged commit ef02bf2 into fractaledmind:main Mar 28, 2024
1 check passed
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 this pull request may close these issues.

Suggestion: use default "distance_in_words" translations
2 participants