Skip to content

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

Merged
fractaledmind merged 1 commit intofractaledmind:mainfrom
everton:fix-missing-translations-due-to-custom-i18n-set
Mar 28, 2024
Merged

Force :en locale inside ErrorsController to avoid missing translations#36
fractaledmind merged 1 commit intofractaledmind:mainfrom
everton:fix-missing-translations-due-to-custom-i18n-set

Conversation

@everton
Copy link
Copy Markdown
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
Copy Markdown
Owner

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

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