Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi authored Jan 31, 2024
1 parent cf7f805 commit 5c1d87c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/settings.ts → src/models/locale.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const LocaleKey = 'MIST_LOCALE';
const localeKey = 'MIST_LOCALE';

export function readLocale(): string | undefined {
const data = localStorage.getItem(LocaleKey);
const data = localStorage.getItem(localeKey);
return (data != null ? data : undefined);
}

export function writeLocale(locale: string) {
localStorage.setItem(LocaleKey, locale);
localStorage.setItem(localeKey, locale);
}

0 comments on commit 5c1d87c

Please sign in to comment.