Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Change the language dynamically in power bi client javascript

I'm trying to find a way to change the language of my pbi report Dynamically.

Apparently, report.updateSettings is not working for localeSettings.

So I tried to reinstantiate a new report in the place of the current one, I did what's suggested in the docs; meaning to remove all the object dependancies towards the dom using:  this.powerbi.reset(embedContainer);

 but I get the following error in the console:  

 

core.js?09c9:1671 ERROR Error: target window is not provided. You must either provide the target window explicitly as argument to request, or specify default target window when constructing instance of this class.
at HttpPostMessage.send (powerbi.js?7599:5593)
at HttpPostMessage.post (powerbi.js?7599:5551)
at Report.Embed.frontLoadSendConfig (powerbi.js?7599:877)
at HTMLDivElement.eval (powerbi.js?7599:845)
at ZoneDelegate.invokeTask (zone.js?d135:421)
at Object.onInvokeTask (core.js?09c9:3816)
at ZoneDelegate.invokeTask (zone.js?d135:420)
at Zone.runTask (zone.js?d135:188)
at ZoneTask.invokeTask [as invoke] (zone.js?d135:496)
at invokeTask (zone.js?d135:1540)

 

 

any help please ?!

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.