agentleFS
otavioserraotavioserra/conn2flow-ai-workspace/.claude/skills/c2f-multilingual-system/SKILL.md

c2f-multilingual-system

Skill4 starsChanged 33 days agoMITView on GitHub

LEIA ANTES de adicionar novos idiomas, rotas i18n ou consultas multi-idioma. Se não ler: conteúdo de idiomas diferentes vaza na mesma página ou URLs internacionais quebram com erro 404.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Sistema Híbrido Multilíngue Conn2Flow (CONN2FLOW-MULTILINGUAL-HYBRID-SYSTEM.md)

⚡ Gatilho Obrigatório

  • TRIGGER: Manipular tabelas com coluna language, registrar rotas internacionalizadas (/en/, /pt-br/) ou gerenciar dicionários de idiomas.
  • SKIP APENAS SE: Módulos utilitários globais agnósticos a idioma.
  • CONSEQUÊNCIA DE IGNORAR: Vazamento de registros em inglês na visualização em português (e vice-versa), falha na resolução de slugs traduzidos e desindexação de SEO.

Consulte e aplique as seguintes convenções ao desenvolver para suporte a múltiplos idiomas no Conn2Flow:

1. Estrutura de Idiomas e Resolução

  • Idiomas Suportados: pt-br (padrão), en, es.
  • Código de Idioma Ativo: Acessível via $_GESTOR['linguagem-codigo'].
  • Estrutura FÍSICA de Pastas:
    • Recursos globais: gestor/resources/<idioma>/ (ex: pt-br/pages/, en/pages/).
    • Recursos de módulo: modulos/<modulo>/resources/<idioma>/.

2. Tabelas Relacionais e Chave Natural (language)

  • Tabelas com suporte multilíngue possuem a coluna language VARCHAR(10) NOT NULL DEFAULT 'pt-br'.
  • A chave única natural é geralmente composta por ['id', 'language'] (ou ['language', 'module', 'id']).

3. Ferramentas de Tradução

  • Scripts de automação em ai-workspace/en/scripts/translates/ para geração e sincronização de dicionários e recursos em novos idiomas.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.