Git Product home page Git Product logo

Comments (9)

pkatek avatar pkatek commented on June 24, 2024 2

Now it works great! Thanks!

from spree.

pkatek avatar pkatek commented on June 24, 2024 1

Thanks!

from spree.

damianlegawiec avatar damianlegawiec commented on June 24, 2024

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.

pkatek avatar pkatek commented on June 24, 2024

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.

Zrzut ekranu 2024-05-28 o 12 16 38

from spree.

pkatek avatar pkatek commented on June 24, 2024

When I switch to another store that uses only one language (CS), everything is fine.

from spree.

pkatek avatar pkatek commented on June 24, 2024

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.

pkatek avatar pkatek commented on June 24, 2024

from spree.

chuckyuee avatar chuckyuee commented on June 24, 2024

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.

damianlegawiec avatar damianlegawiec commented on June 24, 2024

@pkatek @chuckyuee please upgrade to v4.8.2

from spree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.