next-i18next

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

Github星跟踪图

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

主要指标

概览
名称与所有者i18next/next-i18next
主编程语言TypeScript
编程语言JavaScript (语言数: 3)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2018-11-09 20:23:21
推送于2025-04-06 12:26:52
最后一次提交2025-04-06 14:26:49
发布数192
最新版本名称v15.4.2 (发布于 2025-02-06 09:15:18)
第一版名称v0.1.0 (发布于 )
用户参与
星数5.9k
关注者数31
派生数770
提交数1.2k
已启用问题?
问题数1206
打开的问题数14
拉请求数683
打开的拉请求数1
关闭的拉请求数245
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?