Global expansion, localizing content, and selling in multiple currencies and languages
Hello,
Shopify themes are great, but sometimes we need some additional adjustments.
We have added manually text in several places of our theme, but this text is not visible to the Shopify translator, since it wasn't written in one of the theme's fields.
Could you advise what kind of code should be added in order to make manually added text visible for translation applications?
Best Regards,
Dmitrii
Solved! Go to the solution
This is an accepted solution.
Hello,
1. I have checked the linked provided by @Localize_Alex
https://www.shopify.com/partners/blog/translation-keys
2. Have updated my footer.liquid:
<!-- Manually added code START -->
<p>
<br>
<font size="2">
{{ 'layout.newsletter_agreement' | t }}
<u><a href="https://puulab.com/pages/privacy-notice">{{ 'layout.privacy_policy' | t }}</a></u>.
</font>
</p>
<!-- Manually added code END -->
3. Updated en.default.json
4. Translate and Adapt now able to see this text:
Thanks both you for the help!
Best Regards,
Dmitrii
@Dmitrii_Dzh Ask to app support theme they will provide best solution for that.
Hi @Dmitrii_Dzh! I’m Alex, a designer on the Translate & Adapt team. Could you DM me an example of a piece of text you modified that’s not showing up in the app? I’d love to help.
To learn more visit the Shopify Help Center or the Community Blog.
Hello @Dmitrii_Dzh ,
You can use the {{ 'text here' | translate }} filter to mark the text for translation.
Example:
{{ 'Welcome to our store!' | translate }}
To ensure that the translation app recognizes the manually added text, make sure to include it in a template file that the app can scan. For example, you can add the translated text in a Liquid template file or a language file.
Hope this will work.
Transcy team.
This is an accepted solution.
Hello,
1. I have checked the linked provided by @Localize_Alex
https://www.shopify.com/partners/blog/translation-keys
2. Have updated my footer.liquid:
<!-- Manually added code START -->
<p>
<br>
<font size="2">
{{ 'layout.newsletter_agreement' | t }}
<u><a href="https://puulab.com/pages/privacy-notice">{{ 'layout.privacy_policy' | t }}</a></u>.
</font>
</p>
<!-- Manually added code END -->
3. Updated en.default.json
4. Translate and Adapt now able to see this text:
Thanks both you for the help!
Best Regards,
Dmitrii
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024