31
loading...
This website collects cookies to deliver better user experience
version 1.2.1
of next-export-i18n
, the i18n module for Next.js which is fully compatible with next export
.next-export-i18n
with $ npm i next-export-i18n
or visit next-export-i18n
v1.2.1 from npm.js.translation.json
and populate your translated string with dynamic content on the fly.{
"myTemplate": "{{count}} times",
}
import { useTranslation} from 'next-export-i18n'
const { t } = useTranslation();
const key = 'myTemplate';
let string = t(key, { count: 2 })) // string will be "2 times"
next export
.react-intl
, react-i18next
, lingui
, rosetta
, next-intl
.Next.js
i18n-routing does not supports next export
.next export
. next-export-i18n
provides a simple solution for Internationalization (i18n) when you want to generate a truly static website with next export
.next-export-i18n
for more details.https://github.com/martinkr/next-export-i18n-example
.next-export-i18n
npm module