From fae481895736eab81d52eb93788beb00669fb355 Mon Sep 17 00:00:00 2001 From: sct Date: Sun, 27 Dec 2020 14:47:39 +0000 Subject: [PATCH] fix(frontend): set locale cookie expiration to be much longer --- src/pages/_app.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 7fa512ae7..67c25716a 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -75,7 +75,10 @@ const CoreApp: Omit = ({ useEffect(() => { loadLocaleData(currentLocale).then(setMessages); - setCookie(null, 'locale', currentLocale, { path: '/' }); + setCookie(null, 'locale', currentLocale, { + path: '/', + maxAge: 60 * 60 * 24 * 365 * 10, + }); }, [currentLocale]); if (router.pathname.match(/(login|setup)/)) {