Pairing pages with the multilingual menu

Hello,

I need help to find solutions on how can I pair pages within the multilingual menu?
I activated the multilingual option, but unfortunately it doesn’t translate the Wix FAQ App.
They suggested to create a copy of the page with new content: https://support.wix.com/en/article/request-translating-the-wix-faq-app-in-wix-multilingual

I did that but how do I organize/pair the copy page to the one in the other language together within the language selector menu?

I’m also open to new suggestions as well on how to create translatable collapsing menus/FAQ.

Thank you for helping me!

Anyone with an answer for this?

Hi Sam …

When the page is ready, you can check the current language and redirect visitors to the relevant page.

// ES FAQ page
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';

$w.onReady(() => {
    let language = wixWindow.multilingual.currentLanguage;
    if (language !== 'es') {
        wixLocation.to(`/faq-${language}`);
    }
})

You need to place code in each and every (FAQ) page, and change the red language code accordingly.

Hope this helps~!
Ahamd

Thanks Ahmad! I am a bit of a novice when it comes to adding code. Do I copy this code on top of the existing code or underneath? Thanks in advance