aymericzip/intlayer-skills / skills/intlayer-usage
intlayer-usage
VerifiedProvides 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.
references/packages_intlayer_validatePrefix.md
View on GitHub---
createdAt: 2026-01-21
updatedAt: 2026-09-27
priority: 5
title: validatePrefix Function Documentation | intlayer
description: "Use validatePrefix to check whether a URL segment is a valid locale prefix according to your Intlayer configuration."
keywords:
- validatePrefix
- translation
- Intlayer
- intlayer
- Internationalization
- Documentation
slugs:
- doc
- packages
- intlayer
- validatePrefix
history:
- version: 8.0.0
date: 2026-01-21
changes: "Init doc"
author: aymericzip
---
# validatePrefix Function Documentation
The `validatePrefix` function checks if a given prefix is a valid locale prefix according to the configuration.
## Usage
```ts
import { validatePrefix } from "intlayer";
const isValid = validatePrefix("/fr");
// Output: true
```
## Parameters
| Parameter | Type | Description |
| --------- | -------- | ----------------------- |
| `prefix` | `string` | The prefix to validate. |
## Returns
`true` if the prefix is valid, `false` otherwise.
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: 197k | 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: 194k | 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: 194k | 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: 194k | Updated | Claude CodeCodex | Verified | Install |