Skip to content

feat(i18n): chatbot, mode-switcher, service alt-text translations#22

Open
abdout wants to merge 1 commit into
mainfrom
feat/i18n-chatbot-service
Open

feat(i18n): chatbot, mode-switcher, service alt-text translations#22
abdout wants to merge 1 commit into
mainfrom
feat/i18n-chatbot-service

Conversation

@abdout
Copy link
Copy Markdown
Contributor

@abdout abdout commented Apr 25, 2026

Summary

  • 5 new dict keys (`common.toggleTheme`, `chatbot.sendMessage`, `chatbot.voiceInput`) wired into mode-switcher, chatbot/page, chat-window.
  • Service icon alts now use existing `services.{design,branding,creative,sales}.title` dict keys.
  • Decorative grid images (Design Image 2/3/4, Creative Work 1-4, Branding Example 1-4, Wallet Animation, Gift box icon, overview) → empty `alt=""` per WCAG (skipped by screen readers — correct a11y).

Changes

  • `src/components/internationalization/{en,ar}.json` — +5 keys
  • `src/components/template/site-header/mode-switcher.tsx` — wire `useTranslations`
  • `src/app/[lang]/chatbot/page.tsx` — Send/Mic title attrs
  • `src/components/chatbot/chat-window.tsx` — wire `useTranslations`, Send/Mic title attrs
  • `src/components/marketing/service/{design,creative,branding,sales,layout-card}.tsx` — icon alts to dict, decorative alts emptied

Test plan

  • /ar — theme toggle reads Arabic via VoiceOver/NVDA
  • /ar/chatbot — Send/Mic button titles in Arabic
  • /ar/service — service-icon alts localized (التصميم / الإبداع / الهوية البصرية / المبيعات)
  • Decorative grid images skipped by screen reader
  • `pnpm tsc --noEmit` — no new errors

Closes #21

🤖 Generated with Claude Code

Adds 5 dict keys (common.toggleTheme, chatbot.sendMessage,
chatbot.voiceInput) and wires useTranslations into mode-switcher,
chat-window. Also localizes service icon alt texts (design, creative,
branding, sales) using existing service.title keys, and changes
decorative grid images to empty alt per WCAG.

Closes #21

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marketing Ready Ready Preview, Comment Apr 25, 2026 0:22am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(i18n): chatbot, mode-switcher, service alt-text translations

1 participant