Comments (9)
Now it works great! Thanks!
from spree.
Thanks!
from spree.
Hey @pkatek
In your spree initializer please set:
Spree::RuntimeConfig.always_use_translations = true
I've missed this one in the upgrade guide if you're upgrading from 4.7, will add it shortly
from spree.
In intializer i have
Spree::RuntimeConfig.always_use_translations = true
And in rails console
3.2.2 :001 > Spree::RuntimeConfig.always_use_translations
=> true
But in spree admin I don't have translations.
from spree.
When I switch to another store that uses only one language (CS), everything is fine.
from spree.
When I enter the values and change the default language, an entry like this is made in Store translations @damianlegawiec.
Pay attention to the locale: "EN", it is written incorrectly. I also have an entry with correctly written: locale: "en",
#<Spree::Store::Translation:0x00007fb1df55ac88 id: 6, name: "a", meta_description: nil, meta_keywords: nil, seo_title: nil, facebook: nil, twitter: nil, instagram: nil, customer_support_email: nil, description: nil, address: nil, contact_phone: nil, new_order_notifications_email: nil, locale: "EN", spree_store_id: 2, created_at: Tue, 27 Feb 2024 12:15:07.499612000 UTC +00:00, updated_at: Tue, 27 Feb 2024 12:15:07.499612000 UTC +00:00, deleted_at: nil>]
from spree.
from spree.
Because Mobility plugin column_fallback default locale content was store main table, other locale store in translation table. If you use default locale :en, only in form to change it. other language can be use translate form to change.
So I use this migration code at core/db/migrate/20230117121303_transfer_taxonomy_data_to_translatable_tables.rb:
Spree::TranslationMigrations.new(Spree::Taxonomy, 'en').revert_translation_data_transfer
If your have other language, must change truncate method to delete only locale=en
from spree.
@pkatek @chuckyuee please upgrade to v4.8.2
from spree.
Related Issues (20)
- Support next.js commerce v2? HOT 2
- Support Rails 7.1
- Create the admin user failed HOT 2
- Spree order checkout state reload issue HOT 2
- Unable to capture payment
- Unable to add it to a fresh new rails app HOT 1
- alias_attribute Rails deprecation warnings HOT 3
- Help to compare Spree with other shopping cart software
- DEPRECATION WARNING: `currency` is deprecated. HOT 2
- Ability to select pre-orderable options without needing variants and pricing per option value
- NameError: undefined local variable or method `try_spree_current_user' HOT 5
- Same Taxonomies in different stores HOT 10
- Facing issue due to vendor association in orders HOT 1
- Issue on docs
- Product listing showing color options
- No such file or directory - bundle
- Edit taxonomy error HOT 1
- Create taxonomy error HOT 1
- Taxon translations permalink not unique
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree.