Feat/install process refinement (#3982)

This commit is contained in:
crazywoola
2024-04-29 17:55:52 +08:00
committed by GitHub
parent 1d432728ac
commit c5e2659771
26 changed files with 871 additions and 840 deletions

View File

@@ -11,10 +11,6 @@ export const i18n = {
export type Locale = typeof i18n['locales'][number]
export const getLocaleOnClient = (): Locale => {
return Cookies.get(LOCALE_COOKIE_NAME) as Locale || i18n.defaultLocale
}
export const setLocaleOnClient = (locale: Locale, reloadPage = true) => {
Cookies.set(LOCALE_COOKIE_NAME, locale)
changeLanguage(locale)