Intlayer usage

From aymericzip/intlayer · View interactive version

Intlayer usage is an AI agent skill from the GitHub repository aymericzip/intlayer. 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.

How to use this skill

Skill file

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.
  1. Declare Content:

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

  1. Consume Content: Use the provided hooks and functions to access your content.

Common Packages:

Read fields statically (content.title, never content.statuses[status]) so the build can purge and minify dictionaries. See the intlayer-bundle-optimization skill.

  1. CLI Commands:

Useful commands for managing your content:

References

Packages

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.