Locale/Regional settings in multilingual dynamic data-set

Hello humans!

I have a multilingual website, regional settings are set correctly for each language.

I’m using the below code to retrieve data from a dynamic data-set based on selected language.

$w.onReady( function () {
let language = wixWindow…currentLanguage;
let Object = $w(“#dynamicDataset”).getCurrentItem()
let url = Object.url
$w(“#dynamicDataset”).setFilter( wixData.filter().eq(“language”, language).eq(“url”, url) );
} );

The above is working as it’s supposed to, unfortunately the regional settings are not changing according to the selected language and therefore both text and alignment don’t look very good :stuck_out_tongue:

I’ve assigned a text box with the value retrieved from the site’s locale, and clearly it’s not changing. By default, regional settings should change when language is changed as set in settings. Couldn’t find any solution.

Any ideas ?

Thanks!

To understand what can and can’t be translated, click here .

Try doing what it says in the Wix API Reference for it here, although you might still get the same results.
https://www.wix.com/corvid/reference/wix-window.multilingual.html

Filter a dataset based on the site’s current display language

This example assumes you have a site set up to display in both English and Spanish. It also assumes you have a collection that contains data in both languages. The collection has a language field that indicates each item’s language. The following code filters a dataset connected to the collection so it only contains items that correspond to the site’s current language.

import wixWindow from 'wix-window';
import wixData from 'wix-data';

// ...

$w.onReady( function () {
  let language = wixWindow.multilingual.currentLanguage;
  $w("#myDataset").setFilter( wixData.filter().eq("language", language) );
} );

Update is you can’t do it your way, however you can vote for it and see more info on why here.
https://support.wix.com/en/article/request-using-wix-multilingual-with-database-collections

Hi

The above code is working properly, the issue is not with translation. Regional settings are not changing when website language is changed. I believe that it’s a separate issue.

Okay, so then have you simply just tried switching to the required language and editing that page’s text to suit the language.

Also, as you are just wanting Wix Multilingual app to match in the Wix Editor itself and your issue is not actually about code, then you are better suited going through Wix Support themselves as this is an app issue and we can’t change app settings in code.
https://support.wix.com/en/article/contacting-wix-support