You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running our rails app with the locale nl and I noticed that the date/time helpers are using the I18n translations, but the main part of mission control is "hard-coded" English.
This results in texts like 22 minuten ago where the 22 minuten is 🇳🇱Dutch and ago is 🇺🇸English.
Solutions
1. Quick: Set it to English
I think the easiest way would be to set the I18n.locale to :en on a before_action (or around_action) on the ApplicationController. That way, only the Mission Control controllers will use the en locale.
2. Big: Translate all the strings!
Introduce a fully translated Rails engine :)
I'd love to create a PR for the quick one unless people think it would really benefit to introduce the localized Rails engine variant.
The text was updated successfully, but these errors were encountered:
manuelvanrijn
changed the title
Views contain some localized elements
Views contain semi localized elements
Jul 3, 2024
We are running our rails app with the locale
nl
and I noticed that the date/time helpers are using the I18n translations, but the main part of mission control is "hard-coded" English.This results in texts like
22 minuten ago
where the22 minuten
is 🇳🇱Dutch andago
is 🇺🇸English.Solutions
1. Quick: Set it to English
I think the easiest way would be to set the
I18n.locale
to:en
on a before_action (oraround_action
) on theApplicationController
. That way, only the Mission Control controllers will use theen
locale.2. Big: Translate all the strings!
Introduce a fully translated Rails engine :)
I'd love to create a PR for the quick one unless people think it would really benefit to introduce the localized Rails engine variant.
The text was updated successfully, but these errors were encountered: