With the Translate & Adapt app, you can add translations to your store for products, collections, blog posts, policies, and pages.
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
User | RANK |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023