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

Normalize API I18n keys #2988

Merged
merged 3 commits into from
Mar 1, 2019

Conversation

aitbw
Copy link
Contributor

@aitbw aitbw commented Dec 5, 2018

Based on the work established by #2963, this PR normalizes the I18n keys for the API.

That said, some issues are pending when running bundle exec i18n-tasks health, as you can see below:

image

We have two (2) options to fix this:

  • Assuming the scope usage is the reason for these issues, remove this option and replace it with I18n.t('spree.api.my_key')

  • Include a i18n-tasks.yml config file under config and consider all spree.api I18n keys used

We need to address this last issue to include an I18n health check to the CI (first mentioned in here) in order to stay consistent within this regard.

@aitbw aitbw force-pushed the nebulab/normalize-api-i18n branch from dd89378 to 479eb21 Compare December 6, 2018 11:42
@kennyadsl
Copy link
Member

@aitbw

Include a i18n-tasks.yml config file under config and consider all spree.api I18n keys used

What do you mean? Which configuration should this file contain in order to make the CI step work?

@aitbw
Copy link
Contributor Author

aitbw commented Jan 25, 2019

@kennyadsl, I meant maybe we could do something like this, but I'm more fond of the first option.

@kennyadsl
Copy link
Member

if it's possible, I'm ok removing scope.

@aitbw aitbw force-pushed the nebulab/normalize-api-i18n branch from d3849fb to f111db3 Compare February 25, 2019 22:00
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks, Angel!

Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

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

Thanks @aitbw 🚀

@jacobherrington
Copy link
Contributor

@aitbw I'm not certain we need it, but can you rebase just to be safe?

aitbw added 2 commits March 1, 2019 14:56
`i18n-tasks` was complaining about unused translations when using
the `scope` option
@aitbw aitbw force-pushed the nebulab/normalize-api-i18n branch from f111db3 to 303b36d Compare March 1, 2019 18:59
Some Core/API I18n keys were placed in the incorrect files, which
caused `i18n-tasks` to complain about unused/missing translations
@aitbw aitbw force-pushed the nebulab/normalize-api-i18n branch from 303b36d to 99bbf5b Compare March 1, 2019 19:28
@aitbw
Copy link
Contributor Author

aitbw commented Mar 1, 2019

Done @jacobherrington!

@jacobherrington jacobherrington merged commit 67e1cdc into solidusio:master Mar 1, 2019
@aitbw aitbw deleted the nebulab/normalize-api-i18n branch March 1, 2019 22:21
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.

4 participants