next-i18next

翻译 NextJs 应用程序的最简单方法。「The easiest way to translate your NextJs apps.」

Github stars Tracking Chart

next-i18next

npm version
CircleCI
dependencies Status
Package Quality

The easiest way to translate your NextJs apps.

If you are using next-i18next in production, please consider sponsoring the package with any amount you think appropriate.

What is this?

next-i18next is a plugin for Next.js projects that allows you to get translations up and running quickly and easily, while fully supporting SSR, multiple namespaces with codesplitting, etc.

While next-i18next uses i18next and react-i18next under the hood, users of next-i18next simply need to include their translation content as JSON files and don't have to worry about much else.

A live demo is available here. Please be aware this is hosted on a free Heroku dyno and therefore may go to sleep during periods of inactivity. This demo app is the simple example - nothing more, nothing less.

Setup

1. Installation

yarn add next-i18next

You need to also have react and next installed.

2. Translation content

By default, next-i18next expects your translations to be organised as such:

.
└── public
    └── static
        └── locales
            ├── en

Main metrics

Overview
Name With Owneri18next/next-i18next
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 3)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2018-11-09 20:23:21
Pushed At2025-04-06 12:26:52
Last Commit At2025-04-06 14:26:49
Release Count192
Last Release Namev15.4.2 (Posted on 2025-02-06 09:15:18)
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count5.9k
Watchers Count31
Fork Count770
Commits Count1.2k
Has Issues Enabled
Issues Count1206
Issue Open Count14
Pull Requests Count683
Pull Requests Open Count1
Pull Requests Close Count245
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private