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 selectors

Language selector as buttons or links

PreviousAutomatic language selectorNextCustom language selector

Last updated 2 years ago

To add a language selector as buttons or links, you must to select the "disabled" option in the language selector in the Polyflow app, then, you must create each button or link and add the following custom attribute to it: "polyflow-link" = "[LANG ISO CODE]"

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

For example, if you want to link the English version you must add the following custom attribute to the link element: "polyflow-link" = "en" Also, if you want to hide that button in the corresponding language, you will have to add a custom Polyflow attribute, "polyflow-only" = [ISO CODE], to show the button only in the correct language version.

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

Find more information about our attributes, to show or hide content depending on language version.

🗣️
https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
here