Skip to content

Commit

Permalink
Merge pull request #1065 from culturecreates/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sahalali authored Apr 12, 2024
2 parents dcabbe2 + d8da5ec commit b4ad6d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pages/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ function Dashboard() {
}
}, [reloadStatus, dispatch]);

useEffect(() => {
if (!user?.interfaceLanguage || user?.interfaceLanguage !== Cookies.get('interfaceLanguage')) {
dispatch(setUser({ ...user, interfaceLanguage: Cookies.get('interfaceLanguage') ?? 'en' }));
}
dispatch(setInterfaceLanguage(user?.interfaceLanguage?.toLowerCase()));
i18n.changeLanguage(user?.interfaceLanguage?.toLowerCase());
}, [user?.interfaceLanguage]);

const findActiveCalendar = () => {
const currentCalendar = allCalendarsData?.data?.filter((item) => {
if (item.id === calendarId) {
Expand Down

0 comments on commit b4ad6d0

Please sign in to comment.