Multi-lingual menu

Hello again Tal,
I was wondering if it could be possible to link the preference language to the user’s language setting in its browser instead of using the last language chosen by the site visitor . it’s important as my shop online application translates automatically in the language setting in the browser.
I saw there is a function Locale in the module Wix-window but I don’t know how to integrate it in the code you gave above.

If you can help me, thank you very much in advance

Cat