Hi there, I’m wondering how to localize the theme block extension strings that are in the locales folder so that the merchants can change them as needed per locale.
I did notice that Translate & Adapt has app embeds as a category but it’s empty even though I have multiple apps installed, including my own.
Is there an extra step needed from my end to make it appear there?
In this case, the “Translate & Adapt” app will detect the text, allowing the merchant to add translations.
However, if the texts are static (stored in the locale file and not user-editable), the “Translate & Adapt” app won’t intercept them.
If you go with the second approach, you might consider building a custom editor within your embedded admin app.
For example, Swish (formerly Wishlist King) implemented an editor in their app settings, allowing users to modify the code, add snippets, and manage multiple languages.
PS: Just to clarify, I’m not sponsored by Swish, nor have I worked with them in any capacity—just using them as a relevant example!
I tried both, and currently, I have a combination of both for different texts for my app, however, nothing appears in translate & adapt, even for other apps (screenshot below).
@Evonux Have you actually added the app blocks to the theme and defined values for the app block settings you are trying to translate? I don’t believe anything will show up in Translate & Adapt until the app block is actually enabled and has a default setting value.
Thanks everyone. Looks like T&A works ONLY for app blocks with the target set to head and body, and not for section which is far from ideal but will do the job for now.