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
1️⃣ The built-in embed_fallback_translations plugin does not handle fallback configuration available through I18n.fallbacks. It always goes straight to the default locale. Admittedly, it's documented in the readme but still a bit surprising.
2️⃣ A custom plugin has to be registered which is not documented.
Describe the solution
I ended up writing a custom plugin which combines translation data for each locale with all its fallbacks in sequence. I'm not sure whether it should replace the existing plugin, be an official alternative or a separate gem.
Description
1️⃣ The built-in
embed_fallback_translations
plugin does not handle fallback configuration available throughI18n.fallbacks
. It always goes straight to the default locale. Admittedly, it's documented in the readme but still a bit surprising.2️⃣ A custom plugin has to be registered which is not documented.
Describe the solution
I ended up writing a custom plugin which combines translation data for each locale with all its fallbacks in sequence. I'm not sure whether it should replace the existing plugin, be an official alternative or a separate gem.
Custom plugin code
The text was updated successfully, but these errors were encountered: