Text Element in Arabic (RIGHT TO LEFT)

Dear All,

I have a website in English and Arabic.

On my page I have a table and text elements (TextCount for EN) and (TextCountAR for AR) to get the totalCount of the Table.

A part of my code
//////
let totalCount = $w(“#DatasetCountry”).getTotalCount();

if (wixWindow.multilingual.currentLanguage === “en”) {
$w(“#TextCount”).text = totalCount + " " + (“items found”)}

else if (wixWindow.multilingual.currentLanguage === “ar”) {
$w(“#TextCountAR”).text = (“سلعة موجودة”) + " " + totalCount}
//////

For English version is well rendered

But not for the Arabic version because the string should be RIGHT TO LEFT. The count number remains at the left side even with my code line: $w(“#TextCountAR”).text = (“سلعة موجودة”) + " " + totalCount}

Why?
Can someone please help me?
Thank you for your help.

Best regards,
Domivax

You have to set your element’s text direction on your page in Arabic right to left first: https://support.wix.com/en/article/changing-the-text-direction and then use this line of code:

$w("#TextCountAR").text = totalCount + " " + ("سلعة موجودة")

Of course, I totally forgot this icon. Thank you Yevheniia.