Forum Discussion
Anonymous
2 years agoNot applicable
Embedded report, localeSettings does not set USERCULTURE()
In a Power BI Embedded report, specifying the locale setting localeSettings: { language: 'nb-NO' } in the config setting in js does not seem to work, USERCULTURE() is still "en-US" var config = {...
- Anonymous2 years ago
Alright, ChatGPT solved the mystery...
After this function is called: powerbi.bootstrap(reportContainer, { type: "report" });Any localeSettings specified after that will be ignored.
Unless one also calls powerbi.reset(reportContainer); immediately after powerbi.bootstrap().
This was really a rather hidden limitation.
Anonymous
2 years agoNot applicable
Alright, ChatGPT solved the mystery...
After this function is called: powerbi.bootstrap(reportContainer, { type: "report" });
Any localeSettings specified after that will be ignored.
Unless one also calls powerbi.reset(reportContainer); immediately after powerbi.bootstrap().
This was really a rather hidden limitation.