Intlayer usage
Intlayer Skills are a set of specialized instructions and workflows for AI agents to help them interact with Intlayer projects.
npx -y skills add aymericzip/intlayer-skills --skill intlayer-usageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Provides general guidelines for using Intlayer in any project. Use when the user asks to "get started with Intlayer", "declare content files", or understand the "project structure" for internationalization.
SKILL.md
1.7 KB, as published. Nobody here has run it
Intlayer Usage
To use Intlayer effectively:
-
Retrieve Locales: Check
intlayer.config.{ts,js,json,json5,jsonc,cjs,mjs},.intlayerrcto see the configured locales. -
Declare Content: We recommend creating one content declaration file per component, located alongside the component file. This keeps translations close to the code.
-
Consume Content: Use the provided hooks and functions to access your content.
Common Packages:
intlayer: Core package for content declaration and utility functions.react-intlayer: React components and hooks (e.g.,useIntlayer).vite-intlayer: Vite plugin for integration.
-
CLI Commands: Useful commands for managing your content:
npx intlayer build: Build the dictionaries from your content declarations.