Skip to content

Commit ed86ff2

Browse files
committed
fix(cli): do not set data-localize-lang in the simulator iframe html tag
1 parent c675820 commit ed86ff2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/red-cobras-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket/cli': patch
3+
---
4+
5+
Do not set `data-localize-lang` in the simulator iframe html tag

packages/cli/preset/_includes/layout-simulator.njk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
if (urlParts.get('language')) {
3636
document.documentElement.setAttribute('lang', urlParts.get('language'));
3737
document.documentElement.setAttribute('data-lang', urlParts.get('language'));
38-
document.documentElement.setAttribute('data-localize-lang', urlParts.get('language'));
3938
}
4039
if (urlParts.get('story-key')) {
4140
document.documentElement.setAttribute('story-key', urlParts.get('story-key'));
@@ -47,7 +46,7 @@
4746
}
4847
4948
const mod = await import(urlParts.get('story-file'));
50-
render(mod[urlParts.get('story-key')]({shadowRoot: document}), document.body);
49+
render(mod[urlParts.get('story-key')]({ shadowRoot: document }), document.body);
5150
}
5251
5352
window.addEventListener('hashchange', onHashChange, false);

0 commit comments

Comments
 (0)