aymericzip/intlayer-skills / skills/intlayer-usage
intlayer-usage
UnverifiedProvides 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.
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 or per section of your application, 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.
References
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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |