External links in multilingual site

Hello! I am setting up a multilingual site.

Here is a section of my hugo.yaml file.

defaultContentLanguage: en
    languageName: English
    weight: 1
    languageName: Español
    weight: 2

I have no problem creating md files for each lenguage. But in the main hugo.yaml file I have defined menu items for the top bar of the site. In that section I have links to my socials. The thing is, I have two YouTube channels, one in English and one in Spanish. Is there a way to correctly add a link for each lenguage?

Current hugo.yaml file:

    - name: YouTube
      weight: 5
      url: "https://www.youtube.com/c/channel_english"
        icon: youtube

Could I add something like this in some way?

url: "https://www.youtube.com/c/channel_english"
url_es: "https://www.youtube.com/c/channel_spanish"

Thanks in advance. I’m sorry if this is a dumb question but I am a data engineer and creating websites is not my strength.

TLDR: Multilingual site, I want YouTube logo to redirect the user to the channel in his language.


Define the menus separately for each language.


1 Like

Sorry I became the kind of user I hate. Thanks For the help!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.