[PRO] Unknown culture : fr_FR

I want to format numerics.
Works like a charm with language en-US but when I set ‘fr-FR’ i’ve got “Uncaught Error: Unknown culture : fr_FR.”
I’ve try to import directly in my layout

or
window.language = language = require(’…/node_modules/handsontable-pro/dist/numbro/languages/fr-FR.min.js’);
But I’ve still the error Message…

I use Webpack to require handsontable :
window.Handsontable = require(‘handsontable-pro/dist/handsontable.full’);
I think I’m doing something wrong, but I don’t know what ! :blush:

Best Regards,

Hi @ronan.treillet

It has to be “something” with the languages. Here’s a working demo: http://jsfiddle.net/handsoncode/mfq367xw/

Do you get this file with your build https://docs.handsontable.com/pro/1.10.1/bower_components/numbro/dist/languages.min.js ?

I made it work (Not the best way I guess) :

const numbro = require(’…/node_modules/numbro’);
window.fr_FR = fr_FR = require(’…/node_modules/handsontable-pro/dist/numbro/languages/fr-FR.min’);

numbro.culture(‘fr_FR’, fr_FR);
numbro.culture(‘fr_FR’);
var container = document.getElementById(elementId);
var hot = new Handsontable(container, { …

It’s really strange because the numbro language ‘fr_FR’ is present in non-minified mode in my js bundle :open_mouth:

I’m happy to hear that it works :slight_smile:
I guess that we can close this issue now but if you’d have any other questions feel free to open a new ticket.