agentleFS
aymericzipaymericzip/intlayer/.claude/skills/intlayer-usage/SKILL.md

intlayer-usage

Skill863 starsChanged 13 days agoApache-2.0View on GitHub

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.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 19
  2. Distinctive:

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

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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
    • React Intlayer Exports

    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.

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

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

References

  • Get Started
  • How Intlayer Works
  • Why Intlayer
  • Per-locale File
  • Website
  • Doc

Packages

  • intlayer comparePaths
  • intlayer getCanonicalPath
  • intlayer getConfiguration
  • intlayer getDictionary
  • intlayer getDictionaryAsync
  • intlayer getEnumeration
  • intlayer getHTMLTextDir
  • intlayer getIntlayer
  • intlayer getIntlayerAsync
  • intlayer getLocale
  • intlayer getLocaleLang
  • intlayer getLocaleName
  • intlayer getLocalizedPath
  • intlayer getLocalizedUrl
  • intlayer getMultilingualUrls
  • intlayer getPathWithoutLocale
  • intlayer getPrefix
  • intlayer getTranslation
  • intlayer validatePrefix
  • vite-intlayer Exports
  • vite-intlayer intlayer
  • vite-intlayer intlayerCompiler
  • vite-intlayer intlayerMinify
  • vite-intlayer intlayerProxy
  • vite-intlayer intlayerPrune

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.