christiaan commented on issue #39882:
URL: https://github.com/apache/superset/issues/39882#issuecomment-4601819651
I can confirm that removing the `@has_access` fixes embedded dashboard
translations.
Thanks for posting here @Rattlyy.
I'm curious to know how you implemented different languages for embedded
dashboards.
We've "solved" it with this fun piece of code that runs before every embed.
```js
// Set the language by loading the change language url in an iframe
// This is the same endpoint that is used when you switch languages in
the login UI
const languageIframe = document.createElement('iframe');
languageIframe.src = "{{ superset_embed_url }}/lang/{{ locale }}";
languageIframe.style.display = 'none';
container.appendChild(languageIframe);
languageIframe.onload(function() {
supersetEmbeddedSdk.embedDashboard(...) });
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]