How to change the price and currencySymbol symbol in local file dynamically

Hi,
I have English local file and below is the set up.

webix.i18n.locales[“en-US”]={
price:"$ {obj}",
currencySymbol :"$",
}

Now this locale file is working perfectly but my requirement here is I need to change the Currency symbol to “€” and price to “{obj} €” based on one of the picklist and load the data in again.

Is it possibe by any means.

Hi,

You can try the following:

webix.i18n.locales["en-US"].price = "{obj} €";
webix.i18n.setLocale("en-US");

Also, you can have two locales, with different currency symbols and switch between them with setLocale API