2.1.3 • Published 7 months ago

@staccx/next-i18n v2.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

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,
}
2.1.3

7 months ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

2 years ago

1.2.2

2 years ago

2.0.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago