Skip to content

Commit

Permalink
Update language-selector.tsx
Browse files Browse the repository at this point in the history
Fixes issue #1907
  • Loading branch information
alexe0336 authored and nicotsx committed Feb 18, 2025
1 parent 0132d4d commit f11968f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const LanguageSelector = (props: IProps) => {
const onChange = (newLocale: Locale) => {
const locale = getLocaleFromString(newLocale);
setLocale(newLocale);
Cookies.set('tipi-locale', locale);
Cookies.set('tipi-locale', locale, { expires: 365 });
i18next.changeLanguage(locale);
};

Expand Down

0 comments on commit f11968f

Please sign in to comment.