diff --git a/web/src/components/ActivityCalendar/hooks.ts b/web/src/components/ActivityCalendar/hooks.ts index e3d2cfb79..460cdad05 100644 --- a/web/src/components/ActivityCalendar/hooks.ts +++ b/web/src/components/ActivityCalendar/hooks.ts @@ -4,7 +4,18 @@ import { useTranslate } from "@/utils/i18n"; export const useWeekdayLabels = () => { const t = useTranslate(); - return useMemo(() => [t("days.sun"), t("days.mon"), t("days.tue"), t("days.wed"), t("days.thu"), t("days.fri"), t("days.sat")], [t]); + return useMemo( + () => [ + t("common.days.sun"), + t("common.days.mon"), + t("common.days.tue"), + t("common.days.wed"), + t("common.days.thu"), + t("common.days.fri"), + t("common.days.sat"), + ], + [t], + ); }; export const useTodayDate = () => { diff --git a/web/src/components/ChangeMemberPasswordDialog.tsx b/web/src/components/ChangeMemberPasswordDialog.tsx index cd45b844a..c9d9995ff 100644 --- a/web/src/components/ChangeMemberPasswordDialog.tsx +++ b/web/src/components/ChangeMemberPasswordDialog.tsx @@ -75,7 +75,7 @@ function ChangeMemberPasswordDialog({ open, onOpenChange, user, onSuccess }: Pro - {t("setting.account-section.change-password")} ({user.displayName}) + {t("setting.account.change-password")} ({user.displayName})
diff --git a/web/src/components/CreateAccessTokenDialog.tsx b/web/src/components/CreateAccessTokenDialog.tsx index 845df571b..3da482485 100644 --- a/web/src/components/CreateAccessTokenDialog.tsx +++ b/web/src/components/CreateAccessTokenDialog.tsx @@ -38,7 +38,7 @@ function CreateAccessTokenDialog({ open, onOpenChange, onSuccess }: Props) { // Expiration options in days (0 = never expires) const expirationOptions = [ { - label: t("setting.access-token-section.create-dialog.duration-1m"), + label: t("setting.access-token.create-dialog.duration-1m"), value: 30, }, { @@ -46,7 +46,7 @@ function CreateAccessTokenDialog({ open, onOpenChange, onSuccess }: Props) { value: 90, }, { - label: t("setting.access-token-section.create-dialog.duration-never"), + label: t("setting.access-token.create-dialog.duration-never"), value: 0, }, ]; @@ -118,12 +118,12 @@ function CreateAccessTokenDialog({ open, onOpenChange, onSuccess }: Props) { - {t("setting.access-token-section.create-dialog.create-access-token")} + {t("setting.access-token.create-dialog.create-access-token")} {createdToken ? (
- +