-
Notifications
You must be signed in to change notification settings - Fork 46
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
Wrong usage of I18n & missing translations #814
Comments
Actually, when I pass the |
@tangopium thanks for the bug report but I'm having trouble following, and the teams edit view is working as expected for me. Can you please provide reproduction details and a full stack trace of whatever error you're seeing? It's hard to figure out what you're talking about with just links to various lines of code but without any larger context as to how you're getting there. |
Added a second language to When i add missing translations to both languages, the personal account settings show two buttons. But the teams settings fail with Will investigate more later today. Added locales to make the missing translations errors go away:
|
changing it to this (like in
or even this, as i don't know what the locale.default is about
|
There is currently an issue in the teams edit view (that might actually affect other parts of the system too):
First of all, there is a translation missing (which is just a minor issue): In this line I currently (v1.7.2) get the error
Translation missing: de.teams.fields.locale.options
and there are actually nooptions
here.The second, more severe issue is the usage of the hash returned from
I18n.t
here and here (where you try to modify the hash).This throws the error
can't modify frozen Hash
. The issue is known and described in detail here. In summary I18n returns a frozen hash since 3.0. The solution should be passingt("locale.locales").clone(freeze: false)
.I didn't review the test coverage of BulletTrain, but shouldn't those kind of issue pop up automatically?
The text was updated successfully, but these errors were encountered: