npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

next-intlayer

v8.9.5

Published

Simplify internationalization i18n in Next.js with context providers, hooks, locale detection, and multilingual content integration.

Readme

Watch the video

What is Intlayer?

Most i18n libraries are either too complex, too rigid, or not built for modern frameworks.

Intlayer is a modern i18n solution for web and mobile apps.
It’s framework-agnostic, AI-powered, and includes a free CMS & visual editor.

With per-locale content files, TypeScript autocompletion, tree-shakable dictionaries, and CI/CD integration, Intlayer makes internationalization faster, cleaner, and smarter.

Keys benefits of Intlayer:

| Feature | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | Cross-Frameworks SupportIntlayer is compatible with all major frameworks and libraries, including Next.js, React, Vite, Vue.js, Nuxt, Preact, Express, and more. | | | JavaScript-Powered Content ManagementHarness the flexibility of JavaScript to define and manage your content efficiently. - Content declaration | | | Per-Locale Content Declaration FileSpeed up your development by declaring your content once, before auto generation. - Per-Locale Content Declaration File | | | CompilerThe Intlayer Compiler extract automatically the content from the components and generate the dictionary files. - Compiler | | | Type-Safe EnvironmentLeverage TypeScript to ensure your content definitions and code are error-free, while also benefiting from IDE autocompletion. - TypeScript configuration | | | Simplified SetupGet up and running quickly with minimal configuration. Adjust settings for internationalization, routing, AI, build, and content handling with ease. - Explore Next.js integration | | | Simplified Content RetrievalNo need to call your t function for each piece of content. Retrieve all your content directly using a single hook. - React integration | | | Consistent Server Component ImplementationPerfectly suited for Next.js server components, use the same implementation for both client and server components, no need to pass your t function across each server component. - Server Components | | | Organized CodebaseKeep your codebase more organized: 1 component = 1 dictionary in the same folder. Translations close to their respective components, enhance maintainability and clarity. - How Intlayer works | | | Enhanced RoutingFull support of app routing, adapting seamlessly to complex application structures, for Next.js, React, Vite, Vue.js, etc. - Explore Next.js integration | | | Markdown SupportImport and interpret, locale files and remote Markdown for multilingual content like privacy policies, documentation, etc. Interpret and make Markdown metadata accessible in your code. - Content files | | | Free Visual Editor & CMSA free visual editor and CMS are available for content writers, removing the need for a localization platform. Keep your content synchronized using Git, or externalize it totally or partially with the CMS. - Intlayer Editor - Intlayer CMS | | | Tree-shakable ContentTree-shakable content, reducing the size of the final bundle. Loads content per component, excluding any unused content from your bundle. Supports lazy loading to enhance app loading efficiency. - App build optimization | | | Static RenderingDoesn't block Static Rendering. - Next.js integration | | | AI-Powered TranslationTransform your website into 231 languages with just one click using Intlayer's advanced AI-powered translation tools using your own AI provider / API key. - CI/CD integration - Intlayer CLI - Auto fill | | | MCP Server IntegrationProvides an MCP (Model Context Protocol) server for IDE automation, enabling seamless content management and i18n workflows directly within your development environment. - MCP Server | | | VSCode ExtensionIntlayer provides a VSCode extension to help you manage your content and translations, building your dictionaries, translating your content, and more. - VSCode Extension | | | InteroperabilityAllow interoperability with react-i18next, next-i18next, next-intl, react-intl, vue-i18n. - Intlayer and react-intl - Intlayer and next-intl - Intlayer and next-i18next - Intlayer and vue-i18n |


📦 Installation

Start your journey with Intlayer today and experience a smoother, more powerful approach to internationalization.

npm install intlayer react-intlayer

⚡ Quick Start (Next.js)

// intlayer.config.ts
import { Locales, type IntlayerConfig } from "intlayer";

const config: IntlayerConfig = {
  internationalization: {
    locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
    defaultLocale: Locales.ENGLISH,
  },
};

export default config;
// app/home.content.ts
import { t, type Dictionary } from "intlayer";

const content = {
  key: "home",
  content: {
    title: t({
      en: "Home",
      fr: "Accueil",
      es: "Inicio",
    }),
  },
} satisfies Dictionary;

export default content;
// app/page.tsx
import { useIntlayer } from "react-intlayer";

const HomePage = () => {
  const { title } = useIntlayer("home");

  return <h1>{title}</h1>;
};

Get the full guide →

🎥 Live tutorial on YouTube

How to Internationalize your application using Intlayer

Table of Contents

Explore our comprehensive documentation to get started with Intlayer and learn how to integrate it into your projects.

🌐 Readme in other languages

🤝 Community

Intlayer is built with and for the community and we’d love your input!

You can also follow us on :

Contribution

For more detailed guidelines on contributing to this project, please refer to the CONTRIBUTING.md file. It contains essential information on our development process, commit message conventions, and release procedures. Your contributions are valuable to us, and we appreciate your efforts in making this project better!

Contribute on GitHub, GitLab, or Bitbucket.

Thank You for the Support

If you like Intlayer, give us a ⭐ on GitHub. It helps others discover the project! See why GitHub Stars matter.

Star History Chart