idorgham/gateflow/i18n

Claude Code and agent skill by idorgham/gateflow

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Arabic/English internationalization and RTL layout for GateFlow. Use when adding translations, locale switching, RTL/LTR layout, or MENA market support.

Install

npx vskill@latest install idorgham/gateflow/i18n

SKILL.md

The same SKILL.md was published earlier as idorgham/gateflow/i18n.

GateFlow i18n

Stack

  • Package: @gate-access/i18n
  • Locales: ar (Arabic), en (English)
  • Routing: [locale] segment in app routes (e.g. app/[locale]/dashboard/)
  • RTL: Arabic uses dir="rtl"; English dir="ltr"

Route Structure

app/
[locale]/
layout.tsx # Sets locale, dir, lang
dashboard/
...

Locale comes from URL: /ar/dashboard, /en/dashboard

Translations

typescript
import { useTranslations } from 'next-intl'; // or project i18n hook
function Component() {
const t = useTranslations('namespace');
return <span>{t('key')}</span>;
}
With fallback
typescript
t('key', { defaultValue: 'Fallback text' });
t('scans.exportCsv', { defaultValue: 'Export CSV' });

Locale Switching

  • Use LanguageSwitcher component or link to /[locale]/path
  • Persist preference in cookie or user settings
  • RTL layout: dir={locale === 'ar' ? 'rtl' : 'ltr'} on root

RTL Layout

  • Root layout: dir={locale === 'ar' ? 'rtl' : 'ltr'}
  • Tailwind RTL: Use rtl: variant or logical properties
  • Icons: Flip horizontally for RTL where needed
  • Nav/sidebar: Swap left/right for RTL
tsx
<html lang={locale} dir={locale === 'ar' ? 'rtl' : 'ltr'}>

Locale Files

  • Location: packages/i18n/src/locales/ or app-specific
  • Structure: JSON nested by namespace
  • Keys: scans.exportCsv, settings.billing.exportAll, etc.

Checklist for New UI

  1. Wrap user-facing text in t('namespace.key')
  2. Add key to locale JSON (en + ar)
  3. Use defaultValue for graceful fallback
  4. Verify RTL layout if adding nav/sidebar
  5. Test locale toggle

Browser-Use Verification

"Toggle locale (AR/EN) and verify RTL layout and labels."

Reference: packages/i18n/, docs/APP_DESIGN_DOCS.md, apps/client-dashboard/src/components/language-switcher.tsx

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/idorgham/gateflow/i18n/badge)](https://verified-skill.com/skills/idorgham/gateflow/i18n)

Something wrong with this skill or its page? Tell us.