feat: add @polar-sh/sveltekit (#539)

* feat add @polar-sh/sveltekit

* remove all lemonsqueezy text
This commit is contained in:
Rotimi Best
2025-01-09 01:30:01 +01:00
committed by GitHub
parent 4d4b1f12e2
commit 13fb58176f
46 changed files with 12475 additions and 10197 deletions
@@ -63,17 +63,14 @@ loading.subscribe(async ($loading) => {
}
});
export async function handleLocaleChange(newLocale) {
export function handleLocaleChange(newLocale: string) {
if (!newLocale) {
return;
}
locale.set(newLocale);
await fetch('/api/i18n', {
body: JSON.stringify({ locale: newLocale }),
method: 'POST'
});
selectedLocale.set(newLocale);
}
export function lessonFallbackNote(