fix(electrobun): remove i18n cycle — move lang/dir sync into setLocale()
This commit is contained in:
parent
805d1e533d
commit
85f55c19a6
2 changed files with 8 additions and 5 deletions
|
|
@ -161,11 +161,7 @@
|
|||
};
|
||||
});
|
||||
|
||||
// ── i18n: keep <html> lang and dir in sync ──────────────────
|
||||
$effect(() => {
|
||||
document.documentElement.lang = getLocale();
|
||||
document.documentElement.dir = getDir();
|
||||
});
|
||||
// ── i18n: lang/dir sync is handled inside setLocale() — no $effect needed ──
|
||||
|
||||
// ── Init ────────────────────────────────────────────────────
|
||||
onMount(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue