Feat/install process refinement (#3982)

This commit is contained in:
crazywoola 2024-04-29 17:55:52 +08:00 • committed by GitHub
commit c5e2659771
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)