Prototype schemas
svobik7 opened this issue · 0 comments
svobik7 commented
Add option to specify prototype schema that will be merger with real schema during build type
{
root: 'account/(.*)',
metaData: [
{ locale: 'cs', data: { section: 'Účet' } },
{ locale: 'en', data: { section: 'Account' } },
{ locale: 'es', data: { section: 'Cuenta' } },
],
isPrototype: true,
},
{
root: 'account/profile',
pages: [
{
locale: 'en',
path: 'account/profile-:token',
},
{
locale: 'cs',
path: 'ucet/profil-:token',
},
{
locale: 'es',
path: 'cuenta/perfil-:token',
},
],
metaData: [
{ locale: '*', data: { background: 'orange' } },
{ locale: 'cs', data: { title: 'Profil' } },
{ locale: 'en', data: { title: 'Profile' } },
{ locale: 'es', data: { title: 'Perfil' } },
],
params: { token: 'b1' },
}
During build time account/profile
will be merged with `account/*.