Created
October 19, 2022 10:34
-
-
Save el3um4s/2e5f8936104fc19620813f0d9b0f7232 to your computer and use it in GitHub Desktop.
MEDIUM - Implementing Multi Language Without Any Library in Svelte - 06
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lang = { | |
subscribe: languageStore.subscribe, | |
set: (language: LangSupported) => { | |
languageStore.set(language); | |
setLang(language); | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment