Wix Studio Multilingual Issue: How to Align Arabic Text to the Right Only?

Hi everyone,

I need some help with a multilingual website I’m building on Wix Studio (French, English, and Arabic).

My issue is with the Arabic version:

Even though the text is set to RTL (right-to-left), the alignment stays on the left, just like in French and English.

If I try to change the alignment to the right, it also affects the other languages on the site, which I don’t want.

Does anyone know how to align Arabic text to the right only, without changing the alignment for the other languages?

Any guidance or workaround would be greatly appreciated.

Thanks in advance! :folded_hands:

1 Like

In my multi-directional websites, I duplicate the objects that appear differently and hide/collapse them according to the language being used

for example, let’s say all the language-specific objects are hidden/collapsed by default, so the code only needs to show/expand the correct objects

import wixWindow from 'wix-window'

let lang = wixWindow.multilingual.currentLanguage
if (lang === 'ar') {
    $w('#strip_ltr').expand()    // strip objects collapsed by default
    $w('#logo_ltr').show()       // logo objects hidden by default
} else {
    $w('#strip_rtl').expand()
    $w('#logo_rtl').show()
}
1 Like