diff --git a/web/i18n/index.ts b/web/i18n/index.ts index 6a0d82ea36..eb49759097 100644 --- a/web/i18n/index.ts +++ b/web/i18n/index.ts @@ -12,7 +12,7 @@ export const i18n = { export type Locale = typeof i18n['locales'][number] export const setLocaleOnClient = (locale: Locale, reloadPage = true) => { - Cookies.set(LOCALE_COOKIE_NAME, locale) + Cookies.set(LOCALE_COOKIE_NAME, locale, { expires: 365 }) changeLanguage(locale) reloadPage && location.reload() }