Feat/install process refinement (#3982)
This commit is contained in:
parent
1d432728ac
commit
c5e2659771
26 changed files with 871 additions and 840 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue