Skills
The skills/ folder explains how to integrate the packages the right way without reading the whole codebase first.
Use it when you want a simple answer to questions like:
- Which package do I start with?
- Do I need React too, or only Next.js?
- How does MDX fit into the setup?
- What is the smallest package combination for my app?
Best reading order
skills/SKILL.mdfor the package mapskills/core/SKILL.mdto start the translator correctlyskills/cli/SKILL.mdif you want the CLI to generate locale files or extractbt-marked stringsskills/react/SKILL.mdif the UI is React or Exposkills/nextjs/SKILL.mdif the app is Next.js App Routerskills/md/SKILL.mdif content lives in.mdor.mdxskills/combined/SKILL.mdif the app mixes routing, server rendering, and client hooks
Quick package chooser
- Plain TypeScript, Node.js, APIs, or shared libraries:
@better-translate/core - React web or Expo:
@better-translate/core+@better-translate/react - Next.js App Router:
@better-translate/core+@better-translate/nextjs - Next.js with client-side hooks: add
@better-translate/react - TanStack Router:
@better-translate/core+@better-translate/tanstack-router, and usually@better-translate/react - Astro:
@better-translate/core+@better-translate/astro - Localized markdown or MDX: add
@better-translate/md - AI-generated locale files or auto-extracted strings: add
@better-translate/cli
Install the skills
You can install the repo-hosted skills directly with npx skills add:
npx skills add https://github.com/jralvarenga/better-translate
npx skills add https://github.com/jralvarenga/better-translate --skill core
npx skills add https://github.com/jralvarenga/better-translate --skill react
npx skills add https://github.com/jralvarenga/better-translate --skill expo
npx skills add https://github.com/jralvarenga/better-translate --skill nextjs
npx skills add https://github.com/jralvarenga/better-translate --skill md
npx skills add https://github.com/jralvarenga/better-translate --skill cli
npx skills add https://github.com/jralvarenga/better-translate --skill combined
npx skills add https://github.com/jralvarenga/better-translate --skill rtl
npx skills add https://github.com/jralvarenga/better-translate --skill examples
npx skills add https://github.com/jralvarenga/better-translate --skill status
npx skills add https://github.com/jralvarenga/better-translate --skill workspace