Add support for the setLanguage function in Numbro.js library

Hey everybody,
1st post in the Community, been using Retool for a few weeks now and loving it!

I can't find an answer to my question, so let's try here.

I am trying to change the default language of the pre-loaded Numbro.js Library (I want to use 'fr-FR').

Searching for help on Google, I found out that there's a method called numbro.setLanguage().

-> So I tried a similar approach to what's I did to configure moment.js for my apps (added the moment.locale() to the preloaded JS in the Settings)

Capture d’écran 2024-02-20 à 17.22.02

But this does not work :confused:
What am I missing?
Do Retool include the languages along the numbro library?
I also found this issue on Github, but I'm not sure this is relevant to what I am experiencing.

Thanks in advance for your help!

Try running numbro.language() in console to see if it's being set to French. If so then it would seem to be a problem with the library rather than Retool's implementation.

Capture d’écran 2024-02-20 à 17.51.39

I think this screenshot is self explanatory — numbro.setLanguage() doesn't seem to be taken into consideration :confused:

Anyone-else managed to change the default language?

For those who might be interested in this in the future, here's the Support answer to this case:

At this time, the setLanguage function does not currently work within Retool. We have a feature request for this issue.