Multilingual not appearing in live website

Hi,
I’ve made a copy of a properly functioning website. In the published version of this site, there’s no language selector, and the following code prints undefined in the language

import wixWindow from 'wix-window'; //for multilanguage

$w.onReady(function () {
 let currentLanguage = wixWindow.multilingual.currentLanguage;
    console.log("currentLanguage = " + currentLanguage);

. Also in the browser console i see an error “TypeError: Cannot read property ‘languageCode’ of null”. But no error appears in the Wix Site Monitor. Multi-language works fine in preview mode, and in the original site I copied this from. The second language is set to be visible.

@Brett Haralson (Wix) can someone have a look at this?
Here’s the site editor: https://editor.wix.com/html/editor/web/renderer/edit/95813640-9671-43f9-9e5a-e2b5d60fbb0d?metaSiteId=9a8bbf78-fba8-4a1a-91e9-e11d88d13199&editorSessionId=eb83251a-b60f-40e2-8052-79e1804acaba&referralInfo=dashboard

There’s also something wrong with page/member permissions in this site. I’m not sure whether the issues are related, so I’ll open another thread for that.

@amit-wix @wixanat @brett-haralson Can someone @wix have a look at this?

Hi @experimentnoxx ,

We can’t reproduce the issue, please provide a bit more details:

  • What browser and OS is using?
  • Is it only happening after clone?
  • Are there any more details you can provide?

Thanks.

@Alexander I already got a reply from Wix support that they did reproduce the issue and it has been forwarded to the dev team. They also mentioned they fixed it for this site. Are you from Wix too?

@experimentnoxx , Yep, from Wix as well.