No Packages Misplaced

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

    2.1.1 • 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,
    }

    Keywords

    none

    Install

    npm i @staccx/next-i18n

    DownloadsWeekly Downloads

    230

    Version

    2.1.1

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • bjarnehelland
    • slem