Frontend: structured error handling, state fixes, accessibility, i18n
- Enhance fetchWithAuth with auto-401, retry w/ exponential backoff, timeout - Remove ~40 manual 401 checks across 10 feature files - Fix state: brightness cache setter, manual edit flag resets, static import - Add ARIA: role=dialog/tablist, aria-modal, aria-labelledby, aria-selected - Add focus trapping in Modal base class, aria-expanded on hint toggles - Fix WCAG AA color contrast with --primary-text-color variable - Add i18n pluralization (CLDR rules for en/ru), getCurrentLocale export - Replace hardcoded strings in dashboard.js and profiles.js - Add data-i18n-aria-label support, 20 new keys in en.json and ru.json Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -512,5 +512,24 @@
|
||||
"profiles.status.active": "Активен",
|
||||
"profiles.status.inactive": "Неактивен",
|
||||
"profiles.status.disabled": "Отключён",
|
||||
"profiles.last_activated": "Последняя активация"
|
||||
"profiles.last_activated": "Последняя активация",
|
||||
"profiles.logic.and": " И ",
|
||||
"profiles.logic.or": " ИЛИ ",
|
||||
"profiles.logic.all": "ВСЕ",
|
||||
"profiles.logic.any": "ЛЮБОЕ",
|
||||
"profiles.updated": "Профиль обновлён",
|
||||
"profiles.created": "Профиль создан",
|
||||
"profiles.deleted": "Профиль удалён",
|
||||
"profiles.error.name_required": "Введите название",
|
||||
"time.hours_minutes": "{h}ч {m}м",
|
||||
"time.minutes_seconds": "{m}м {s}с",
|
||||
"time.seconds": "{s}с",
|
||||
"dashboard.type.led": "LED",
|
||||
"dashboard.type.kc": "Цвета клавиш",
|
||||
"aria.close": "Закрыть",
|
||||
"aria.save": "Сохранить",
|
||||
"aria.cancel": "Отмена",
|
||||
"aria.previous": "Назад",
|
||||
"aria.next": "Вперёд",
|
||||
"aria.hint": "Показать подсказку"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user