Global expansion, localizing content, and selling in multiple currencies and languages
How can I localize "Buy it now" button in dawn theme?
I want it to show different texts for two versions of my shop: Russian and Hebrew.
And one more question: how to apply RTL direction of the text? In order to change direction in only one of version - in Hevrew version.
Hello @Andrey_tea ,
We are Transcy - a powerful translator and currency converter.
To localize the "Buy it now" button in different languages, it may need some technical skills. However, you can consider to learn about us here . With Transcy, you can skip the complex steps and localize your button in just few simple steps.
And for the question how to apply RTL direction of the text, you can try following these steps:
1. Go to Online store -> Themes -> Click Action -> Choose Edit code
2. Navigate the "assets" folder and open the "theme.scss.liquid" file.
3. Add this code at the bottom of the file
[data-direction="rtl"] {
direction: rtl;
}
4. Save changes and go to the "theme.scss.liquid" file.
5. Go to the "locales" folder and open the language file for the Hebrew language ("he.json").
6. Find the key for the "Buy it now" button text and add a new key-value pair for the direction of the text. Example:
"add_to_cart": {
"text": "לקנייה עכשיו",
"direction": "rtl"
}
7. Save and go to the "sections" folder and open the "product-template.liquid" file.
8. Find the code for the "Buy it now" button and add the "data-direction" attribute to set the direction of the text. For example:
<button type="submit" name="add" id="add-to-cart" class="btn btn--secondary-accent{% if section.settings.enable_payment_button %} btn--payment{% endif %}" data-direction="{{ 'add_to_cart.direction' | t }}">
{% include 'icon-bag' %}
{{ 'add_to_cart.text' | t }}
</button>
9. Save and test.
Hope these informations will help you out. Don't be hesitate to contact us if you need any further support. Please hit the Like Button or mark this as Accepted Solution to let us know is this is useful, it encourage us a lot.
Best regards,
Transcy by OneCommerce.
I couldn't find the way how to localize buy in now button using your App
Hey @Andrey_tea , 'Buy it now' cannot be edited unfortunately, however it should be translated by Shopify for Hebrew and Russian. Are you still having this problem?
RTL is not currently natively supported by Dawn, but it is under consideration.
To learn more visit the Shopify Help Center or the Community Blog.
I am facing the same issue with Bulgarian. Can we file an issue for a translation of the "Buy it now" button? How to do so?
Currently, I am using this workaround.
https://gist.github.com/vvkh/d8ca7657fa85ffd120c3fc5329d8818c
I'm going to look into this and get back to you on that
To learn more visit the Shopify Help Center or the Community Blog.
Could you translate into Ukrainian
I will be looking into it!
To learn more visit the Shopify Help Center or the Community Blog.
Need Latvian as well.
Could you please translate Buy it now to Ukrainian? Very confusing for customers. They have no idea how to check out.
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024