Multilingual HOME page menu item

Hello guys,

I have a multilingual website.

In my config.toml there is English Home menu item that looks like

  home = "Home"

that points to localhost:1313
But I also have Russian Home menu item that looks like

  home = "Главная"

that also points to English Home page.
I can’t find a solution for this menu item to point to /ru/ section of the website.

If I try

"home/ru/" = "Главная"

or anything else - the menu item disappears altogether.

Maybe someone can tell me how to point to that page that’s located at localhost:1313/ru/

Thank you in advance!

Hi!

Does this piece of code work for you?

[languages]

  [languages.en]
  weight = 1

    [languages.en.menu]

      [[languages.en.menu.main]]
      name = "Home"
      url = "/"
      weight = 1

  [languages.ru]
  weight = 2

    [languages.ru.menu]

      [[languages.ru.menu.main]]
      name = "Главная"
      url = "/"
      weight = 1

No. The menu works only if there is “home” in the left part of the equasion.

home = "Главная"

If there is anything (!) else - the menu item “Главная” disappears.

I don’t know where the home key comes from.

The code I posted above is working for me.

Do you have a repo you can link to?

I don’t have the repo, but I did grep looking for “home” definition across the whole site and found only these lines relevant:

./env/lib/python3.6/site-packages/setuptools/package_index.py:    """Find rel="homepage" and rel="download" links in `page`, yielding URLs"""
./env/lib/python3.6/site-packages/setuptools/package_index.py:        if 'homepage' in rels or 'download' in rels:
./env/lib/python3.6/site-packages/setuptools/config.py:        'home_page': 'url',
./env/lib/python3.6/site-packages/setuptools/depends.py:    def __init__(self, name, requested_version, module, homepage='',

@bep should know where home is defined.