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

adds missing :spree to i18n scopes #4385

Merged

Conversation

chaserx
Copy link
Contributor

@chaserx chaserx commented Oct 19, 2019

What? Why?

Closes #4304

This attempts to fix issue #4304 where translations for shipping and payment states were displayed as the default none. The solution here is to ensure that we're scoping the translation in the yaml file correctly in the t() helper.

For more, see the following in the rails guides on i18n.
https://guides.rubyonrails.org/i18n.html#how-to-store-your-custom-translations

What should we test?

  1. Go to /orders?q[s]=completed_at+desc
  2. Ship an order if none is shipped yet
  3. Go to the edit order page

Ensure that states are reflected properly.

Release notes

Fixes missing translations

Changelog Category: Fixed

How is this related to the Spree upgrade?

Possibly related since the translations are under the spree heading

Discourse thread

None or Unknown

Dependencies

None.

Documentation updates

None.

Screenshots

Before
Screen Shot 2019-10-19 at 1 26 31 PM
After
Screen Shot 2019-10-19 at 1 56 49 PM

Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

hello Chase!
that's it, thanks a lot for the PR!
Welcome to the community, join us on slack!

@RachL RachL self-assigned this Oct 24, 2019
@RachL RachL added the pr-staged-uk staging.openfoodnetwork.org.uk label Oct 24, 2019
@RachL
Copy link
Contributor

RachL commented Oct 24, 2019

Looking good!

this is ready to go

image

@RachL RachL removed the pr-staged-uk staging.openfoodnetwork.org.uk label Oct 24, 2019
@luisramos0 luisramos0 merged commit 1fa6e4b into openfoodfoundation:master Oct 24, 2019
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.

Missing translation in shipment and payment state
4 participants