Skip to content
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

Merged

Conversation

waiting-for-dev
Copy link
Contributor

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/.

Taking over #4187

Closes #3978

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]>
@waiting-for-dev waiting-for-dev force-pushed the feature/normalise-i18n-keys branch from 83b5dab to 56b2d73 Compare June 23, 2022 04:55
@waiting-for-dev waiting-for-dev requested a review from a team June 23, 2022 07:00
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Member

@aldesantis aldesantis left a 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
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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? 🙂

Copy link
Member

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!

Copy link
Contributor Author

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 🙂

@waiting-for-dev waiting-for-dev merged commit cbc86fd into solidusio:master Aug 16, 2022
@waiting-for-dev waiting-for-dev deleted the feature/normalise-i18n-keys branch August 16, 2022 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Normalize i18n keys
6 participants