nivandres/intl-t/intl-t-usage
Claude Code and agent skill by nivandres/intl-t
- community
Checking that the SKILL.md file is still in the repository.
Use intl-t for setup, createTranslation, locale JSON syntax, node logic, TypeScript declarations, React, Next.js App Router, intl-t/utils, examples, and public docs-aligned usage questions.
Install
npx vskill@latest install nivandres/intl-t/intl-t-usageSKILL.md
Intl-T Usage
Canonical Docs
- Public docs: https://intl-t.dev/docs
- Full text guide for AI and deep lookup: https://intl-t.dev/llms-full.txt
- Single-page AI fetches: use https://intl-t.dev/docs/<slug>.mdx to fetch the LLM-friendly text version of a specific doc page.
- Quick start: https://intl-t.dev/docs/quick-start
- Node guide: https://intl-t.dev/docs/node
- React guide: https://intl-t.dev/docs/react
- Next.js guide: https://intl-t.dev/docs/next
- Utils guide: https://intl-t.dev/docs/utils
- TypeScript guide: https://intl-t.dev/docs/typescript
- Examples guide: https://intl-t.dev/docs/examples
When to Use
- General intl-t setup or usage questions
- Choosing between
intl-t,intl-t/react,intl-t/next, andintl-t/utils - Explaining the typed factory pattern behind
createTranslation()andcreateNavigation() - Designing locale JSON structure and explaining
base,values, arrays, fallbacks, and variable inheritance - Explaining node runtime behavior, including callable nodes, path traversal, and string-like rendering
- Wiring TypeScript declarations and editor autocomplete
- Integrating intl-t with React or Next.js App Router
- Using utilities like
inject,format,match,negotiator,resolveHref,resolvePath, andresolveLocale - Looking up examples or updating docs to match current public imports and package names
- Public usage questions that need both conceptual guidance and package-level direction
Topic Routing
- Core API pattern:
Treat createTranslation() and createNavigation() as typed factories that return the main API surface. Prefer destructuring helpers directly from the returned object instead of rebuilding wrappers around it.
- Setup and first use:
Start with https://intl-t.dev/docs/quick-start, then adapt to the target framework.
- Locale JSON syntax and structure:
Use https://intl-t.dev/docs/node and https://intl-t.dev/docs/examples.
- Node runtime behavior:
Use https://intl-t.dev/docs/node and explain the node as function, object, and string-like value.
- TypeScript and declarations:
Use https://intl-t.dev/docs/typescript and the declarations package surface.
- React integration:
Use https://intl-t.dev/docs/react and the intl-t/react package surface.
- Next.js App Router and server behavior:
Use https://intl-t.dev/docs/next, https://intl-t.dev/docs/migration, and the intl-t/next and intl-t/navigation package surfaces.
- Utilities and routing resolvers:
Use https://intl-t.dev/docs/utils and the intl-t/utils package surface.
- Pattern lookup and examples:
Use https://intl-t.dev/docs/examples.
- Public docs alignment:
Keep explanations aligned with https://intl-t.dev/docs and current package names.
Procedure
- Classify the request before proposing code.
- Plain runtime setup
- Locale tree design
- Node logic explanation
- TypeScript declarations
- React integration
- Next.js App Router integration
- Utils or resolvers
- Examples or documentation
- Start with the public docs for the canonical behavior.
- Use https://intl-t.dev/docs for the public structure.
- Use https://intl-t.dev/llms-full.txt when broad retrieval or full-text grounding is more efficient.
- Use https://intl-t.dev/docs/<slug>.mdx when you want the AI-friendly text version of one specific page.
- Ground the answer in public package surfaces.
- Prefer current package names and documented imports over older names from memory.
- Choose the right runtime surface.
- Plain TypeScript or Node:
intl-t - React app:
intl-t/react - Next.js App Router with RSC:
intl-t/nextplusintl-t/navigation - Standalone helpers:
intl-t/utils
- Explain the core intl-t API pattern correctly.
createTranslation()returns a typed callable translation surface, not just a plain function.- Prefer patterns like
const { Translation, useTranslation, getTranslation } = createTranslation(...)when showing usage. - If the whole result is kept as
const t = createTranslation(...), explain thattitself still carries the same typed surface. - Explain
t,translation,Translation,Tr,Trans,useTranslation,getTranslation,useTranslations,getTranslations,useLocale,global, andgas related facets or aliases of the same translation surface. - Translation nodes follow the same model: they can be called, traversed by properties, rendered as text, and keep their derived helpers and locale-aware access fully typed.
createNavigation()follows the same idea: prefer destructuringLink,redirect,permanentRedirect,useRouter,useLocale,usePathname,middleware,withMiddleware,withProxy,resolveHref,resolvePath, andresolveLocalefrom the returned object.- Do not present intl-t as a bag of unrelated utilities. Present it as a typed API surface derived from configuration.
- Model locale JSON correctly.
- Keep all locale files structurally identical.
- Use plain strings for simple leaves.
- Use
basewhen a node needs text plus children. - Use
valuesto declare or override default variables. - Use arrays only when the branch is genuinely list-shaped.
- Check reserved keys before proposing node names:
base,values,children,parent,node,path,settings,key,default,catch,then.
- Explain node behavior accurately when runtime logic matters.
- Intl-t nodes are not plain strings.
- They can behave like function, object, or string-like value depending on use.
- Explain property access, path access, bound variables, locale-prefixed access, fallbacks, and parent variable inheritance with a concrete example.
- When a user asks for
tr,Translation,global,g,useTranslation, orgetTranslation, explain them as parts of the same typed translation surface. - Call out when
t.base,t.toString(), or direct rendering behavior matters in JSX or function arguments.
- Add framework-specific integration only when needed.
- React: export
TranslationanduseTranslation, wrap the relevant tree, useuseLocalewhen locale state matters, and use the React patch only when build behavior actually requires it. - Next.js: decide
paramversusrequeststrategy first, createi18n/translation.ts, createi18n/navigation.ts, export middleware, usesetRequestLocale()for the static[locale]flow, useawait getTranslation()for dynamic server reads, and explainpathPrefix,pathBase, andstrategytogether when routing is involved.
- Add TypeScript declaration support when autocomplete or JSON literal typing matters.
- Prefer
generateDeclarations()or the declarations CLI. - Verify
allowArbitraryExtensions: trueintsconfig.json. - Explain that declarations improve DX and do not change runtime behavior.
- Use helpers and examples intentionally.
- Prefer
createNavigation()for app routing before dropping to standalone resolvers. - Prefer destructuring from
createTranslation()andcreateNavigation()before inventing extra wrapper modules. - Use
inject,format,match,negotiator,resolveHref,resolvePath, andresolveLocaleonly when the user actually needs the lower-level helper. - Prefer documented patterns over inventing new abstractions when the public guides already cover the pattern.
- For documentation work, keep examples aligned with public APIs and current package names.
- Validate the outcome.
- Imports use current public paths.
- Locale files share the same structure.
- The example uses the returned typed surface from
createTranslation()orcreateNavigation()instead of manually retyping it. - At least one concrete translation path, variable interpolation, and locale resolution path behave as expected.
- Documentation examples match current public APIs and package names.
Response Rules
- Start from the smallest real integration surface that answers the user’s request.
- Prefer current public API names and current package names.
- Prefer destructuring helpers from the object returned by
createTranslation()orcreateNavigation()when showing usage. - Explain aliases like
Translation,Tr,Trans,useTranslation,getTranslation,global, andgas parts of one typed translation surface, not as disconnected APIs. - Prefer
intl-t/utilsover outdatedtoolsnaming. - Do not flatten locale trees unless the user explicitly wants flat keys.
- Do not describe translation nodes as plain strings.
- Do not mix Pages Router advice into Next.js App Router answers.
- Prefer public documented patterns over synthetic examples when they already cover the pattern.
- When documentation is involved, do not document APIs that are not part of the public surface.
Primary Sources
- Public docs: https://intl-t.dev/docs
- Full text guide: https://intl-t.dev/llms-full.txt
- Single-page AI fetch pattern: https://intl-t.dev/docs/<slug>.mdx
- Quick start: https://intl-t.dev/docs/quick-start
- Node guide: https://intl-t.dev/docs/node
- React guide: https://intl-t.dev/docs/react
- Next.js guide: https://intl-t.dev/docs/next
- Migration guide: https://intl-t.dev/docs/migration
- TypeScript guide: https://intl-t.dev/docs/typescript
- Utils guide: https://intl-t.dev/docs/utils
- Examples guide: https://intl-t.dev/docs/examples
- Packages:
intl-t,intl-t/react,intl-t/next,intl-t/navigation,intl-t/utils
API Shape Notes
- Prefer
const { Translation, useTranslation, getTranslation } = createTranslation(...)when showing the translation API surface. - Prefer
const { Link, useRouter, useLocale, middleware, withProxy } = createNavigation(...)when showing the navigation API surface. - If a user keeps the whole result as
const t = createTranslation(...), explain thattitself is still the typed translation surface and can expose the same family of aliases and helpers. - If you need to name the pattern, use terms like typed callable surface, typed facade, or derived API surface.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/intl-t-usage/SKILL.md
Popularity
- Repository stars
- 296
- Repository forks
- 6
- Repository npm downloads, 7 days
- 160
- 7-day trend score
- 44
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 30 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- 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
[](https://verified-skill.com/skills/nivandres/intl-t/intl-t-usage)