We have changed our pricing. Flexmonster Software License Agreement was also updated (list of changes)

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

1 answer

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

Please login or Register to Submit Answer