Skip to content

Instantly share code, notes, and snippets.

@el3um4s
Created October 19, 2022 10:35
Show Gist options
  • Save el3um4s/310626c7f17a443bdef3f7fc5114b6de to your computer and use it in GitHub Desktop.
Save el3um4s/310626c7f17a443bdef3f7fc5114b6de to your computer and use it in GitHub Desktop.
MEDIUM - Implementing Multi Language Without Any Library in Svelte - 07
import { onMount } from "svelte";
import lang from "./Components/UI/Languages/Lang";
import { getLang } from "./Components/UI/Languages/IndexDB";
onMount(async () => {
const langDB = await getLang();
lang.set(langDB);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment