aymericzip/intlayer-skills / skills/intlayer-react
intlayer-react
VerifiedIntegrates Intlayer internationalization with React component. Use when the user asks to "setup React i18n", create a new translated component, use the "useIntlayer" hook, or configure providers.
references/packages_react-native-intlayer_exports.md
View on GitHub---
createdAt: 2026-01-21
updatedAt: 2026-06-25
priority: 5
title: react-native-intlayer Package Documentation
description: React Native support for Intlayer, providing providers, hooks, polyfills, and Metro configuration.
keywords:
- react-native-intlayer
- react-native
- internationalization
- i18n
slugs:
- doc
- packages
- react-native-intlayer
- exports
history:
- version: 9.0.0
date: 2026-06-25
changes: "Re-export the full react-intlayer API (hooks, utilities, format/html/markdown subpaths) so a React Native app only depends on react-native-intlayer"
- version: 8.0.0
date: 2026-01-21
changes: "Unified documentation for all exports"
author: aymericzip
---
# react-native-intlayer Package
The `react-native-intlayer` package provides the necessary tools to integrate Intlayer into React Native applications. It re-exports the full `react-intlayer` API (hooks and utilities) with a React Native-ready `IntlayerProvider`, plus the polyfills and Metro configuration required by React Native.
> In a React Native app, import **everything** from `react-native-intlayer`. You do not need to install or import `react-intlayer` directly.
## Installation
```bash
npm install react-native-intlayer
```
## Exports
### Provider
| Component | Description |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------- |
| `IntlayerProvider` | Provider component that wraps your application and provides the Intlayer context. Automatically applies the required polyfills. |
```tsx
import { IntlayerProvider } from "react-native-intlayer";
```
### Hooks and utilities
These are re-exported from `react-intlayer`, so you can import them straight from `react-native-intlayer`:
| Export | Description |
| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| `useIntlayer` | Access localized content for a dictionary key. |
| `useLocale` | Read and change the current locale. |
| `useDictionary`, `useDictionaryAsync`, `useDictionaryDynamic`, `useLoadDynamic` | Load dictionary content in various ways. |
| `useI18n` | i18next-compatible hook. |
| `t` | Inline translation helper. |
| `getIntlayer`, `getDictionary` | Imperative content getters. |
| `localeCookie`, `localeInStorage`, `setLocaleCookie`, `setLocaleInStorage`, `useLocaleCookie`, `useLocaleStorage` | Locale persistence helpers. |
```tsx
import { useIntlayer, useLocale, t } from "react-native-intlayer";
```
### Polyfill
| Function | Description |
| ------------------ | ------------------------------------------------------------------------------- |
| `intlayerPolyfill` | Function that applies necessary polyfills for React Native to support Intlayer. |
```tsx
import { intlayerPolyfill } from "react-native-intlayer";
```
> The polyfill is applied automatically when you import `IntlayerProvider`. Call `intlayerPolyfill` manually only if you need the polyfills before the provider mounts.
### Formatters
Number, date, and other Intl-based formatting hooks are available from the `/format` subpath:
```tsx
import { useNumber, useDate } from "react-native-intlayer/format";
```
### Markdown and HTML rendering
```tsx
import { MarkdownProvider } from "react-native-intlayer/markdown";
import { HTMLProvider } from "react-native-intlayer/html";
```
### Metro Configuration
The `react-native-intlayer` package provides Metro configuration utilities to ensure that Intlayer works correctly with React Native.
| Function | Description |
| ------------------------- | ---------------------------------------------------------------------------------------------- |
| `configMetroIntlayer` | Asynchronous function that prepares Intlayer and merges the Metro configuration. |
| `configMetroIntlayerSync` | Synchronous function that merges the Metro configuration without preparing Intlayer resources. |
| `exclusionList` | Creates a RegExp pattern for Metro's blockList to exclude content files from the bundle. |
```tsx
import { configMetroIntlayer } from "react-native-intlayer/metro";
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |