Reply
avatar user
Anonymous
Not applicable

Change language dynamically in Reports

I never got a response in the Desktop section of this forum with this question, maybe because it's more of a development question. 

 

I need to be able to change the language in an embedded report, table/column headers, slicer titles and so on. 

I've seen a couple of ways of doing this but they all require duplication of data and I can't do it like that for this problem. I'm trying to solve this translation issue for an internal web application, which means that we have control over how the reports are built and what components in power BI desktop used. With these prerequisites, isn't it possible to handle the language using javacript ? I've just had a quick look at the DOM and done some simple tests and it seems like it could work. 

 

What I'm thinking of doing is for each component (table, slicer and so on) that we use in our reports I'll create some sort of selecter in javascript which extracts the values, i.e. for a table I'd extract the column headers, and pass them to my own translation service which returns the translated value and replaces the original value.

 

I thought that the same-origin issue would be solved by adding the embed url as a trusted source, but no. So I can't edit anything in the iframe. This was another dead end. 

0 REPLIES 0
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)