Score:0

using 2 language switchers in the same node

cn flag

So i am not sure if this is doable or not, I am trying to add 2 language switchers block to the same node. I would like to have one language switcher for my content type that will be in charge of translating the content only. the other language switcher would be global in my navbar and will be in charge of translating the whole site.

would this idea be doable or not?

Score:0
cn flag

Drupal supports having one language for the content (controlled by a language switcher block) and a separate language for the site UI.

You can set this up like this:

  • Add a language switcher block for the content.
  • Enable Account administration pages at /admin/config/regional/language/detection. (docs here)

Can you actually have two different language switcher blocks in the UI that do different things? No, not without a lot of custom coding.

khaled alsamman avatar
cn flag
Thank you. I think i found a work-around. Using Paragraphs to create a component that will allow users to write translations within the same en page. then hide/show content based on buttons from the paragraph.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.