pt-BR numeriFormat not working

Tags: #<Tag:0x00007f0b0327eec0>

Hi, I’m working on a business project with Angular 8, and using HandsOnTable/Angular v7.0.0 ang HandsOnTable v8.3.2, both with numbro v.2.1.2. When i pass my data format it not works only work the default en-US format. Any suggestions how can I handle with it?
image

Hi @dartajunior3

Do you also load the language file? You can find it here https://handsontable.com/docs/8.3.2/components/numbro/dist/languages.min.js

Then your numericFormat.pattern should use just a $ (as in the demo below).

Example https://jsfiddle.net/Lq8megpy/
image

1 Like

No I didn’t load this language file. So do I import it in the component tha I use the handson? or should I import it in the project root?
Thanks for helping

Pretty similar like as in this example https://handsontable.com/docs/angular-setting-up-a-locale/ you use the numbro’s languages file and register the language

image
app.component.ts

1 Like

I will try this way here, thanksss very much

I`ve tried to reference numbro this way but I’m having some erros with registerLanguage.

image

Sorry for that! My screenshot did not include Handsontable and the was a typo in the declaration of Numbro import. It should be

image

Please check if it works for you.

1 Like

Thanks it works fine

1 Like