-
Notifications
You must be signed in to change notification settings - Fork 125
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
737 i18n update all missing translations initial PR #763
737 i18n update all missing translations initial PR #763
Conversation
- adds error translation to en.yml - adds the error translation where applies - adds contactsController translation and updated on test(This code is not currently being used on route) - Important: Sets config of i18n to raise errors when missing a translation
@wandergithub I agree with the approach to break it up like that. I also think it would be useful to add the missing translation exception in test and dev environments so we get quick feedback. We'll want to handle it more gracefully in production. |
…/pet-rescue into 737-i18n-update-controllers
@wandergithub is it worth adding that configuration in this 'general' PR? |
I see this test is failing in CI
Does it pass or fail locally for you? Run |
You are referring to I18n (if not clarify please). |
A brief look and it appears it could be a WSL gremlin. Try https://github.com/orgs/community/discussions/52722 |
I just confirmed all test are passing locally. whats next step now? @kasugaijin |
Ah ok good job. Yes you can make a PR to add to the readme to install chromium if that error is encountered. for this PR, you could also resolve the existing errors then add the config to raise an error for missing translations. Or if you want to do that separately we can merge this one. Your call. Then continue on with the other PRs as you outlined above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
🔗 Issue
#737
✍️ Description
These are general changes, now I'm planning to address each resource (Controller-Model-View Packs) individually on separate PRs. (what do you think about this?)
At:
config/enviroments/test.rb
# Raises error for missing translations.
config.i18n.raise_on_missing_translations = true
📷 Screenshots/Demos