svelte-intl-precompile
svelte-intl-precompile copied to clipboard
svelte-intl-precompile updates html.lang
I found this piece of code
var $locale = writable("");
$locale.subscribe((newLocale) => {
setCurrentLocale(newLocale);
if (typeof window !== "undefined") {
if (newLocale !== "") {
document.documentElement.setAttribute("lang", newLocale);
}
}
});
its updating the lang attr so I wonder is there any way to prevent this ? since I'd like to update the lang in a diff way.