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
Remove i18n-inflector-rails dependency #8420
Remove i18n-inflector-rails dependency #8420
Conversation
There are no new releases anymore and the current version isn't compatible with ruby 3.x. As this feature wasn't really used a lot (Icelandic didn't even setup inflections properly), it's probably not worth fighting for it, so lets just drop it. Related to diaspora#8369
We run the world 😂 |
9ba4b85
to
a8e3c64
Compare
`deep_merge!` modifies the hash of the default translation, and it looks like `I18n.t` always returns the same instance, so after that, the default stays translated. So lets duplicate the hash first, before modifying it, this also helps because we also add more keys below, which probably also shouldn't be added to the original.
b25fcf9
to
5508401
Compare
OK, as fun as this sounds, it was actually very hard to debug and find out what's going on (especially because whatever I tried, I wasn't able to reproduce it locally). But I finally found the reason ... it turns out that after the locale was set to French once, it modified the English default translations, and after that point English was translated to French in-memory ... so lets just not do that anymore ... I have no idea how exactly that worked before, maybe something with the inflector prevented that from happening? But I already debugged enough today, so I'm just happy it works now. |
Amazing investigative work, @SuperTux88. 🙌 |
There are no new releases anymore and the current version isn't compatible with ruby 3.x, see: siefca/i18n-inflector-rails#10 and siefca/i18n-inflector-rails#11
As this feature wasn't really used a lot (Icelandic didn't even setup inflections properly), it's probably not worth fighting for it, so lets just drop it.
Related to #8369