i18next backend that loads translation resources from a MongoDB database using the official Node.js MongoDB driver (v3.5+). Version 1.0.3 requires MongoDB driver to be installed separately (no bundling). Renamed from i18next-node-mongo-backend due to NPM account loss. Offers multiple connection methods: URI, host/port, or custom MongoClient instance. Supports custom collection, language, namespace, and data field names. Includes sanitization of special characters. Release cadence is low (last update 2022).
npm install i18next-node-mongodb-backend-nextNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize i18next with MongoDB backend using a pre-existing MongoClient instance.
Run 'npm install mongodb i18next-node-mongodb-backend-next' or 'yarn add mongodb i18next-node-mongodb-backend-next'.
Use this package instead; update references in package.json and imports.
Always provide 'dbName' in backend options.
Use only 'username' (or 'user') in backend options.
Set 'sanitizeFieldNameCharacter: false' if you need literal field names with dots or dollar signs.
Add 'dbName: "yourDatabaseName"' to the backend options when initializing i18next.
Run 'npm install mongodb' or 'yarn add mongodb' in your project.
Start MongoDB or check the URI/host/port and authentication credentials.