# Intlayer Usage

> 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: `aymericzip/intlayer-usage` (Agent Skill, multi-file: 8 files)
- Install (CLI): `npx skillmds@latest add aymericzip/intlayer-usage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aymericzip/intlayer-usage/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: aymericzip (https://skillmd.com/u/aymericzip)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/aymericzip/intlayer-usage

---


# Intlayer Usage

To use Intlayer effectively:

1.  **Retrieve Locales**: Check `intlayer.config.{ts,js,json,json5,jsonc,cjs,mjs}`, `.intlayerrc` to see the configured locales.

2.  **Declare Content**:
    We recommend creating one content declaration file per component, located alongside the component file. This keeps translations close to the code.

3.  **Consume Content**: Use the provided hooks and functions to access your content.
    - [Intlayer Exports](references/packages_intlayer_exports.md)
    - [React Intlayer Exports](references/packages_react-intlayer_exports.md)

    **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.

4.  **CLI Commands**:
    Useful commands for managing your content:
    - `npx intlayer build`: Build the dictionaries from your content declarations.

## References

- [Get Started](references/get-started.md)
- [How Intlayer Works](references/concept_how-works-intlayer.md)
- [Why Intlayer](references/why.md)
- [Per-locale File](references/concept_per-locale-file.md)
- [Website](https://intlayer.org)
- [Doc](https://intlayer.org/doc)

