☝️Small business or a startup? See if you qualify for our special offer.
+

Localization changes after invoking updateData method

Answered
sedApta asked on January 29, 2025

Hello,

I would like your support about an issue regarding the localization.

Once a flexmonster grid is started, having a localization file indicated inside the report configuration, everything works fine. But, when the updateData method is manually invoked, the report localization changes from the starting one to English.

This happens with json and api datasources.

I forked your JSFiddle project about the localization and configured it in order to look similar to our starting config, therefore having the Italian localization file indicated in the report. Also added the updateData method invoked by a button.

And as you can see the same "unexpected" behavior happens.

Here is the fiddle:

Flexmonster - Localization - JSFiddle - Code Playground

Is this right? Or could you please let me know which is the best way to not let this happen?

Best regards,

Edinson

4 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster January 30, 2025

Hello Edinson,

Thank you for reporting the issue.

Our team will take a look at the described behavior and provide a fix with our minor release with the ETA February 17th. We will notify you about the release.

As a temporary workaround, we recommend setting localization in the GlobalObject. For example:

const pivot = new Flexmonster({
container: "#pivot-container",
global: {
localization: "loc/it.json",
},
// other properties
})

Feel free to use the following JSFiddle for reference: https://jsfiddle.net/flexmonster/q2b4Ljk3/. Please check our documentation for more details: https://www.flexmonster.com/doc/localizing-component/#set-a-localization.

You are welcome to contact us if other questions arise.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 5 days ago

Hello Edinson,

We are pleased to inform you that the issue with localization being cleared on the updateData() call was fixed.

This fix is provided in the 2.9.97 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-97

You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/

Please tell us if the fix works. Looking forward to hearing your feedback.

Kind regards,
Nadia

Public
sedApta 5 days ago

Hello Nadia,

I tried the fix in my dev environment and I can confirm that it's currently working. Will proceed to assign the matter to the test team.

Thank you!

Best regards,

Edinson

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 4 days ago

Hello Edinson,

Thank you for the feedback!

We are glad to hear that the fix works for you.

Do not hesitate to contact us if other questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer