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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?