Linguana
  • 🐣Getting started
    • What is Linguana
    • Quick start
    • How to translate content
    • FAQs
  • ✍️Translating your website
    • Create a new project
    • Adding new languages
    • Remove language
    • Translate manually
    • Translate using AI
    • Translate instances of identical elements
    • Redirections
    • Language switchers
    • Custom domains
    • Automations
    • Fix outdated live website
    • Fix untranslated text
    • Fix missing whitespace between text
    • Add translated links
    • Block indexing for Linguana subdomain
    • Hide content
    • Skip translation for content
    • Import or export translations
  • 🤖AI translations
    • AI credits
    • Purchasing AI credits
  • ⚙️Settings
    • Account settings
    • Change password
    • Notification settings
    • Billing settings
    • Delete your account
Powered by GitBook
On this page
  1. Translating your website

Translate instances of identical elements

PreviousTranslate using AINextRedirections

Last updated 27 days ago

This functionality addresses the challenge of translating multiple instances of identical attributes on a page, such as using the same image in different places.

A common scenario where this issue manifested was when users attempted to set an og:image attribute for a blog page's featured image and then reused that same image elsewhere in the template. In such cases, Linguana's parser was designed to only translate the source for the first instance it encountered—typically the meta tag for the og:image—leaving subsequent instances of the same image untranslatable.

This behavior limited the flexibility needed for comprehensive site translations, especially for users looking to maintain consistent translated content across their web pages.

Solution: data-linguana-force attribute

To overcome this limitation, the data-linguana-force attribute can be used. By applying this attribute to any image element, users can explicitly instruct Linguana's parser to consider that element for translation, effectively overriding the previous one-instance limitation.

How to use: data-linguana-force attribute

To leverage this enhancement:

  1. Add the data-linguana-force attribute to the image element you wish to translate, even if it has been used previously on the same page.

  1. Trigger Sync content for all pages where this change has been made.

  2. Enter translations for all elements with this attribute in each page menu.

Note: this feature can be used on any element type.

✍️
On Webflow, add attributes in the Settings menu for any element