Polyflow/guides
  • 🚀Getting started
    • What is Polyflow
    • Quickstart
    • Create your account
    • Install our browser extension
    • Send your project to Polyflow
    • Create language alternatives
    • Add a custom domain
  • 💡Translation flows
    • Polyflow first use
    • Edit in Webflow
    • Edit in Polyflow
  • 🇦🇶Language custom content
    • How to show different contents depending on the language version?
  • 🗣️Language selectors
    • Automatic language selector
    • Language selector as buttons or links
    • Custom language selector
  • 🔄CMS Content
    • How to translate CMS content with Polyflow (step 1)
    • How to prepare the CMS page template for the language selector to work properly? (step 2)
    • How to modify the url of your Webflow collection items (step 3)
  • 💎Attributes
    • How to exclude contents from being sent to Polyflow
  • ⚠️Limitations
    • Styles in plain text
    • Country language subdirectories
    • Options field in forms
    • Multiple nested Collections on the same page
    • Backups
  • ❓FAQS
    • Missing Polyflow extension
    • Missing pages
    • Redirects
Powered by GitBook
On this page
  1. Language custom content

How to show different contents depending on the language version?

PreviousEdit in PolyflowNextAutomatic language selector

Last updated 2 years ago

The "polyflow-only" attribute allows you to show or hide content depending on the language version, so you can customize content for your different audiences.

To show content only in one language, you just need to add the attribute "polyflow-only" to the section and indicate as value the ISO code of the language in which you want to show it, as you can see in the following video:

ISO is a standardized nomenclature used to classify languages, each language is assigned a two or three-letter lowercase abbreviation.

Check out here for a list of ISO codes as you will need to use them to create your language versions:

So for example, if we only want to show a block of content for the English version, we will add "polyflow-only = en" to that block in the custom attributes and publish our project on Webflow.

In the production version we will see that this content is only shown in English and does not appear in the other languages of our website.

🇦🇶
https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes