-
-
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
Normalize API I18n keys #2988
Normalize API I18n keys #2988
Conversation
dd89378
to
479eb21
Compare
What do you mean? Which configuration should this file contain in order to make the CI step work? |
@kennyadsl, I meant maybe we could do something like this, but I'm more fond of the first option. |
if it's possible, I'm ok removing scope. |
479eb21
to
d3849fb
Compare
d3849fb
to
f111db3
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.
Thanks, Angel!
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.
Thanks @aitbw 🚀
@aitbw I'm not certain we need it, but can you rebase just to be safe? |
`i18n-tasks` was complaining about unused translations when using the `scope` option
f111db3
to
303b36d
Compare
Some Core/API I18n keys were placed in the incorrect files, which caused `i18n-tasks` to complain about unused/missing translations
303b36d
to
99bbf5b
Compare
Done @jacobherrington! |
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:We have two (2) options to fix this:
Assuming the
scope
usage is the reason for these issues, remove this option and replace it withI18n.t('spree.api.my_key')
Include a
i18n-tasks.yml
config file underconfig
and consider allspree.api
I18n keys usedWe 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.