Skip to content

Commit

Permalink
fix(i18n): quick fix for locale cookie expire when browser close
Browse files Browse the repository at this point in the history
  • Loading branch information
PaiJi committed Nov 17, 2024
1 parent f7fa8e7 commit 6af5742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dokploy/utils/hooks/use-locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function useLocale() {
const currentLocale = (Cookies.get("DOKPLOY_LOCALE") ?? "en") as Locale;

const setLocale = (locale: Locale) => {
Cookies.set("DOKPLOY_LOCALE", locale);
Cookies.set("DOKPLOY_LOCALE", locale, { expires: 365 });
window.location.reload();
};

Expand Down

0 comments on commit 6af5742

Please sign in to comment.