@staccx/next-i18n
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

Package template

i18next-parser.config.js

const { i18n } = require("./next-i18next.config")

module.exports = {
  locales: i18n.locales,
  output: "i18n/$LOCALE/$NAMESPACE.json",
  defaultNamespace: "common",
  lexers: {
    js: ["JsxLexer"],
    ts: ["JsxLexer"],
    jsx: ["JsxLexer"],
    tsx: ["JsxLexer"],
  },
  verbose: true,
}

next-i18next.config.js

const path = require("path")

module.exports = {
  i18n: {
    defaultLocale: "no",
    locales: ["no"],
  },
  localePath: path.resolve("./i18n"),
  returnObjects: true,
}

next.config.js

const { i18n } = require("./next-i18next.config")

module.exports = {
  i18n,
  reactStrictMode: true,
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.3
    0
    • latest

Version History

Package Sidebar

Install

npm i @staccx/next-i18n

Weekly Downloads

3

Version

2.1.3

License

MIT

Unpacked Size

22 kB

Total Files

18

Last publish

Collaborators

  • bjarnehelland
  • slem