PowerBiDevCamp/Multilanguage-Reports

localeSettings

Eirik67 opened this issue · 0 comments

Hi, I noticed that the README file says:

let config = {
type: "report",
id: reportId,
embedUrl: embedUrl,
accessToken: embedToken,
tokenType: models.TokenType.Embed,
localeSettings: { language: "de-DE" }
};

But powerbi.js lib v2.23.1 expects the localeSettings to be a sub element of a settings element, as far as I can see.

Is the source code for the demo report https://multilanguagereportdemo.azurewebsites.net/ available anywhere?

I am currently not able to override the browser's language by using localeSettings in any way. Even not when adding &language=de-DE to the embedUrl direcly. The USERCULTURE() just does not get the overridden value (works fine when the report is opened in Power BI Service, though). Would like to see how it is done in the demo app!