Skip to content

Commit

Permalink
Merge pull request #716 from PaiJi/fix/storage-locale-setting-in-loca…
Browse files Browse the repository at this point in the history
…lstorage

fix(i18n): quick fix for locale cookie expire when browser close
  • Loading branch information
Siumauricio authored Nov 18, 2024
2 parents a6e7edd + 6af5742 commit 5db5336
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 5db5336

Please sign in to comment.