Communitygithub.com

Anhvu1107/all-agent-skill

Úsalo SIEMPRE cuando la solicitud coincida con Localización I18n: patrones de internacionalización y localización.

¿Qué es all-agent-skill?

Esta habilidad de agente proporciona una guía completa sobre internacionalización (i18n) y localización (L10n) para aplicaciones modernas. Define conceptos clave como configuraciones regionales, RTL y separación de cadenas, e incluye patrones de implementación para frameworks populares como React (react-i18next), Next.js (next-intl) y Python (gettext). También cubre estructura de archivos, mejores prácticas, problemas comunes y soporte RTL con propiedades lógicas de CSS. La habilidad incluye un script (`scripts/i18n_checker.py`) para detectar cadenas codificadas y traducciones faltantes, y una lista de verificación previa al lanzamiento para garantizar la compatibilidad multilingüe. Es compatible con Claude Code, Cursor, Codex y otros agentes de IA que sigan el formato de skill estándar, lo que la hace esencial para desarrolladores que trabajan en aplicaciones web públicas o productos SaaS con audiencias globales.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Anhvu1107/all-agent-skill/tree/HEAD/.agent/skills/i18n-localization

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

i18n y Localización

Regla de Lectura Selectiva

Empieza por:

  • references/senior-master-standard.md
  • references/usage-routing.md
  • references/quality-checklist.md

Luego carga solo los documentos, scripts, activos o ejemplos heredados que coincidan con la tarea real del usuario.

Prácticas recomendadas de internacionalización (i18n) y localización (L10n).


1. Conceptos Clave

TérminoSignificado
i18nInternacionalización - hacer que la aplicación sea traducible
L10nLocalización - traducciones reales
LocaleIdioma + Región (en-US, tr-TR)
RTLIdiomas de derecha a izquierda (árabe, hebreo)

2. Cuándo Usar i18n

Tipo de Proyecto¿i18n Necesario?
Aplicación web pública✅ Sí
Producto SaaS✅ Sí
Herramienta interna⚠️ Quizás
Aplicación de una sola región⚠️ Considerar futuro
Proyecto personal❌ Opcional

3. Patrones de Implementación

React (react-i18next)

import { useTranslation } from 'react-i18next';

function Welcome() {
  const { t } = useTranslation();
  return <h1>{t('welcome.title')}</h1>;
}

Next.js (next-intl)

import { useTranslations } from 'next-intl';

export default function Page() {
  const t = useTranslations('Home');
  return <h1>{t('title')}</h1>;
}

Python (gettext)

from gettext import gettext as _

print(_("Welcome to our app"))

4. Estructura de Archivos

locales/
├── en/
│   ├── common.json
│   ├── auth.json
│   └── errors.json
├── tr/
│   ├── common.json
│   ├── auth.json
│   └── errors.json
└── ar/          # RTL
    └── ...

5. Mejores Prácticas

HACER ✅

  • Usar claves de traducción, no texto sin formato
  • Organizar traducciones por funcionalidad
  • Soportar pluralización
  • Manejar formatos de fecha/número según configuración regional
  • Planificar RTL desde el inicio
  • Usar formato de mensaje ICU para cadenas complejas

NO HACER ❌

  • Codificar cadenas en componentes
  • Concatenar cadenas traducidas
  • Asumir longitud del texto (el alemán es un 30% más largo)
  • Olvidar el diseño RTL
  • Mezclar idiomas en el mismo archivo

6. Problemas Comunes

ProblemaSolución
Traducción faltanteRecurrir al idioma predeterminado
Cadenas codificadasUsar script de linter/verificador
Formato de fechaUsar Intl.DateTimeFormat
Formato de númeroUsar Intl.NumberFormat
PluralizaciónUsar formato de mensaje ICU

7. Soporte RTL

/* Propiedades Lógicas CSS */
.container {
  margin-inline-start: 1rem;  /* No margin-left */
  padding-inline-end: 1rem;   /* No padding-right */
}

[dir="rtl"] .icon {
  transform: scaleX(-1);
}

8. Lista de Verificación

Antes de publicar:

  • Todas las cadenas visibles para el usuario usan claves de traducción
  • Existen archivos de configuración regional para todos los idiomas soportados
  • El formato de fecha/número usa la API Intl
  • Diseño RTL probado (si aplica)
  • Idioma de respaldo configurado
  • No hay cadenas codificadas en los componentes

Script

ScriptPropósitoComando
scripts/i18n_checker.pyDetectar cadenas codificadas y traducciones faltantespython scripts/i18n_checker.py <project_path>

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches 007: Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Agentfolio: Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Animejs Animation: Advanced JavaScript animation library skill for creating complex, high-performance web animations.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Astropy: Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Astro: Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Emotional ARC Designer: One sentence - what this skill does and when to invoke it

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Fixing Motion Performance: Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Interactive Portfolio: Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches JQ: Expert jq usage for JSON querying, filtering, transformation, and pipeline integration.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Landing Page Generator: Generates high-converting Next.js/React landing pages with Tailwind CSS.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches LEX: Centralized ''Truth Engine'' for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Magic Animator: AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Makepad Animation: CRITICAL: Use for Makepad animation system.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Nextjs APP Router Patterns: Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Anhvu1107/all-agent-skill

ALWAYS use this when the user mentions Nextjs Best Practices, asks to build, debug, review, document, automate, test, configure, migrate, or make decisions in this domain, or the task clearly depends on Nextjs Best Practices; scope: Next.js App Router principles. Apply the bundled workflow, references, scripts, Senior Master standard, and Codex strict review gate before final output.

Anhvu1107/all-agent-skill

description: ALWAYS use this when the work is specifically about modern Next.js or React architecture, data flow, rendering strategy, routing, or performance-sensitive frontend behavior.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Nextjs Supabase Auth: Expert integration of Supabase Auth with Next.js App Router

Anhvu1107/all-agent-skill

ALWAYS use this when the task involves reading, extracting, splitting, merging, rotating, creating, validating, OCR-ing, form-filling, or otherwise producing or modifying PDF files.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches React Nextjs Development: React and Next.js 14+ application development with App Router, Server Components, TypeScript, Tailwind CSS, and modern frontend patterns.

Anhvu1107/all-agent-skill

ALWAYS use this when working with Remotion code, video compositions, rendering logic, timing, media assets, or React-based motion workflows.

Skills relacionados