Translation management

How do I swap assets on a translated page?

Use Asset Rewrites to replace images, files and other assets on translated pages with language-specific versions, set per target language.

1 min readUpdated

You may have assets that you previously translated and you want to deploy them on your translated website. On Bablic, you can control your assets by target language via the Asset Rewrites feature, which is available on both the browser and Desktop App.

To create an Asset Rewrite rule, go to your Project > Asset Rewrites page and click “Add Asset Rewrite” on the right.

Asset rewrites UI

In the ensuing modal, first select the relevant target language from the dropdown. Then in the Asset URL field, paste in the source URL for the asset you’d like to replace on the translated website. In the Rewrite URL field, paste in the source URL for the asset you’d like to display on the translated website:

asset modal

Note that the Asset Rewrite feature will also accept RegEx patterns, which might be useful when implementing asset swaps in bulk.

Once you save your rule, go to the relevant webpage and select the effected language from the language selector. You should see that the original asset has been replaced on the translated website.

English:

How do I swap assets on a translated page? — screenshot 3

Spanish:

How do I swap assets on a translated page? — screenshot 4