cme-pro / mongoose-i18n-extra Goto Github PK
View Code? Open in Web Editor NEWmongoose plugin to manage i18n fields
License: MIT License
mongoose plugin to manage i18n fields
License: MIT License
Get error as below
Error: Cannot find module 'mpath'
Require stack:
Code wise was trying the basic version to work.
const mongooseI18nExtra = require('mongoose-i18n-extra');
some package.json dependencies
"mongodb": "^3.5.9",
"mongoose": "5.8.10",
"mongoose-i18n-extra": "^0.1.5",
Hi,
I'm trying to use with sub docs like schema below :
const schema = new Schema({
name: {type: String},
description: {type: String, i18n: true},
child: {
cname: {type: String, i18n: true},
}
}
While running tests with it, I've got :
Plugin mongooseI18nExtra › Create / update › should be able to update a document with i18n fields
MongoError: The dotted field 'child.cname' in '_i18n.fr.child.cname' is not valid for storage.
Plugin mongooseI18nExtra › should set default value if not default value is empty
key child.cname must not contain '.'
Is there any workaround ? =)
Thanks,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.