From 8679a7ecc7ae05f8a737312490d8227b3156434c Mon Sep 17 00:00:00 2001 From: gnezim Date: Mon, 20 Apr 2026 22:07:32 +0300 Subject: [PATCH] i18n WeekTabs aria-labels (was hardcoded English) using existing A11Y-PREV/NEXT-PAGE keys --- src/features/schedule/components/WeekTabs.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/features/schedule/components/WeekTabs.tsx b/src/features/schedule/components/WeekTabs.tsx index a0d0c274..5cb278eb 100644 --- a/src/features/schedule/components/WeekTabs.tsx +++ b/src/features/schedule/components/WeekTabs.tsx @@ -10,6 +10,7 @@ import { type FC, useMemo, useState } from "react"; import { useLocale } from "@/i18n/useLocale.js"; +import { useTranslation } from "@/i18n/provider.js"; import "./WeekTabs.scss"; const PAGE_SIZE = 7; @@ -52,6 +53,7 @@ function ymd(d: Date): string { export const WeekTabs: FC = ({ selectedMonday, onNavigate }) => { const { language } = useLocale(); + const { t } = useTranslation(); // Angular shows month abbreviated ("13 апр - 19 апр"). Build once // per locale; the month part comes through in the locale's natural // short form. @@ -93,14 +95,14 @@ export const WeekTabs: FC = ({ selectedMonday, onNavigate }) => {