-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Sanitize i18n keys using i18n-tasks gem issue: #3978 #4437
Sanitize i18n keys using i18n-tasks gem issue: #3978 #4437
Conversation
i18n-tasks gem helps in managing translations. For now we don't use the tasks in our test pipeline. Added config and test for `api/` and `core/`. Signed-off-by: Shubham Pandey <[email protected]>
83b5dab
to
56b2d73
Compare
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.
Nice!
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.
Approved with a suggestion!
|
||
require 'i18n/tasks' | ||
|
||
RSpec.describe I18n do |
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.
Just a nit, but do you think it would make sense to turn this into a set of shared examples?
Bonus: would it make sense to add this to solidus_dev_support?
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.
Just a nit, but do you think it would make sense to turn this into a set of shared examples?
As it is code automatically generated by the i18n-tasks
gem, I think it's better to leave things as they're now. For instance, they could add a new task to update that code, which could not work in our case if we changed it.
Bonus: would it make sense to add this to solidus_dev_support?
Yeah, that's an excellent point for the extensions.
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.
Hey @aldesantis, are you ok with that? 🙂
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.
@aldesantis ping, so we can merge this one!
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.
Merging, we can always extract it as a follow-up work 🙂
i18n-tasks gem helps in managing translations. For now we don't use the
tasks in our test pipeline. Added config and test for
api/
andcore/
.Taking over #4187
Closes #3978