mongoose-locale

1.0.4 • Public • Published

mongoose-locale

You can use this plugin when you need to use field for multiple languages.

Example

Next schema will be converted

{
	name: { type: String, trim: true, locale: true }
}

into this schema

{
	name: [{
		lg    : { type: String },
		value : { type: String, trim: true }
	}]
}

Readme

Keywords

Package Sidebar

Install

npm i mongoose-locale

Weekly Downloads

1

Version

1.0.4

License

none

Last publish

Collaborators

  • zlatkofedor