mirror of
https://github.com/Alvin-Zilverstand/Challenge_15_Magazijn_App_Maken.git
synced 2026-03-06 11:06:34 +01:00
Implement multilingual support with Dutch and English translations across the application
This commit is contained in:
@@ -2,12 +2,24 @@ const mongoose = require('mongoose');
|
||||
|
||||
const itemSchema = new mongoose.Schema({
|
||||
name: {
|
||||
type: String,
|
||||
required: true
|
||||
en: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
nl: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
default: ''
|
||||
en: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
nl: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
location: {
|
||||
type: String,
|
||||
|
||||
Reference in New Issue
Block a user