Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

[skip ci] fixes #12047 added information when upgrading to 4.8 from 4.5+

Damian Legawiec0743a02f7a94
diff --git a/docs/developer/upgrades/4.x-to-4.8.mdx b/docs/developer/upgrades/4.x-to-4.8.mdx
index a994e43496..4b4b2d51dd 100644
--- a/docs/developer/upgrades/4.x-to-4.8.mdx
+++ b/docs/developer/upgrades/4.x-to-4.8.mdx
@@ -22,7 +22,7 @@ description: This guide covers upgrading a Spree 4 application to Spree 4.8.
```
</Accordion>
- <Accordion title="5. (Optional) Install importmap-rails gem">
+ <Accordion title="3. (Optional) Install importmap-rails gem">
We've switched to using [importmap-rails](https://github.com/rails/importmap-rails) for asset management. If you're using the `spree_backend` or `spree_frontend` gem, you'll need to install the `importmap-rails` gem.
```bash
@@ -41,6 +41,14 @@ description: This guide covers upgrading a Spree 4 application to Spree 4.8.
bundle remove jsbundling-rails
```
</Accordion>
+
+ <Accordion title="3. (Optional) Apply fix when upgrading from 4.5/4.6/4.7">
+ If you're upgrading from 4.5/4.6/4.7, you need to set this configuration in your `config/initializers/spree.rb`:
+
+ ```ruby
+ Spree::RuntimeConfig.always_use_translations = true
+ ```
+ </Accordion>
</AccordionGroup>
## Read the release notes