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

I have a issue when integrate the this gem. #152

Open
nexondevs opened this issue Aug 24, 2023 · 2 comments
Open

I have a issue when integrate the this gem. #152

nexondevs opened this issue Aug 24, 2023 · 2 comments

Comments

@nexondevs
Copy link

nexondevs commented Aug 24, 2023

Hello Team,
I am interested in setting up an e-commerce store using Solidus. In this store, I would like to have dynamic and status data that can be translated into different languages such as Arabic, Urdu, and English.

I have attempted to install the solidus_globalize gem. While I was able to install it successfully, I encountered an issue. When I access the admin dashboard and navigated to the product page, I clicked on the translate option and tried to select another locale like:arbfor Arabic. However, the product fields were not visible for translation, unlike the default :en field.

If anyone has experience with integrating this gem, could you please share the GitHub link or any relevant resources? I would greatly appreciate it.

If there are any articles or videos available on this topic, kindly share them with me. Thank you in advance for your assistance.

solidus version: 4

Videos:

Screencast.2023-08-24.11.53.21.mp4
@jarednorman
Copy link
Member

The ISO code for Arabic is "ar", not "arb", though I do not think that is causing your issue as Portuguese wasn't working either.

Are there any errors in the browser console?

@jarednorman
Copy link
Member

I would assume the issue is with one of these calls to replace:

translation_base_path = admin_base_url.path().replace(/taxons/, "translations");
translation_base_path = translation_base_path.replace(/taxonomies/, "taxons");
translation_base_path = translation_base_path.replace(/\d+/, id);

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

No branches or pull requests

2 participants