Closed manuelvanrijn closed 1 day ago
Ooh, great catch, and great report too! Dankjewel 🙏
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.
Please do! ❤️ That'd be super helpful. I don't think it's worth translating all the strings at this point.
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.