Forum Discussion
Custom Visual - Localization
- 5 years ago
Hi Nishantjain,
My two cents: based on my experience with the library, you're using this as intended.
It's not stated in your OP, but is the format as you expect for a core visual for the same measure, but not for the formatting utils? If so, then I would suspect this is a bug in the formatting utils and you should probably raise an issue for it. Of note, I see there's currently an open issue specifically with this locale, so it might be worth reviewing/weighing-in on that.
Regards,
Daniel
Hi Nishantjain,
I checked the documents but not found they mention the compatibility about combine using two features.
In my opinion, I'd like to suggest you test with a single feature first to confirm they work on your side if you not mixed two features.
Regards,
Xiaoxin Sheng
Anonymous Not sure which 2 features you are referring to. I am only trying to get the localization working.
Just need an example of how to make it work.
- Anonymous5 years agoNot applicable
HI Nishantjain,
The two features mean the formatting and localization of custom visuals. I'd like to suggest test two features alone to confirm the both of the two features work in your environment and the resulting style if they sensitive to the parameter orders.
import { valueFormatter } from "powerbi-visuals-utils-formattingutils"; let iValueFormatter = valueFormatter.create({ value: 1e6, cultureSelector: "de-DE" }); iValueFormatter.format(1234567890);Regards,
Xiaoxin Sheng
- Nishantjain5 years agoContinued Contributor
Anonymous Thanks for the suggestion.
I have tried changing the parameter order but no luck.
- dm-p5 years agoSuper User
Hi Nishantjain,
My two cents: based on my experience with the library, you're using this as intended.
It's not stated in your OP, but is the format as you expect for a core visual for the same measure, but not for the formatting utils? If so, then I would suspect this is a bug in the formatting utils and you should probably raise an issue for it. Of note, I see there's currently an open issue specifically with this locale, so it might be worth reviewing/weighing-in on that.
Regards,
Daniel