diff --git a/examples/getstarted/api/address/models/Address.settings.json b/examples/getstarted/api/address/models/Address.settings.json index 72190843a0..5fcb223361 100755 --- a/examples/getstarted/api/address/models/Address.settings.json +++ b/examples/getstarted/api/address/models/Address.settings.json @@ -14,9 +14,19 @@ ], "comment": "" }, + "pluginOptions": { + "i18n": { + "localized": true + } + }, "attributes": { "postal_coder": { - "type": "string" + "type": "string", + "pluginOptions": { + "i18n": { + "localized": true + } + } }, "categories": { "collection": "category", @@ -33,7 +43,11 @@ ], "plugin": "upload", "required": false, - "pluginOptions": {} + "pluginOptions": { + "i18n": { + "localized": true + } + } }, "images": { "collection": "file", @@ -43,22 +57,70 @@ ], "plugin": "upload", "required": false, - "pluginOptions": {} + "pluginOptions": { + "i18n": { + "localized": true + } + } }, "city": { "type": "string", "required": true, - "maxLength": 200 + "maxLength": 200, + "pluginOptions": { + "i18n": { + "localized": true + } + } }, "likes": { "collection": "like", "via": "address" }, "json": { - "type": "json" + "type": "json", + "pluginOptions": { + "i18n": { + "localized": true + } + } }, "slug": { "type": "uid" + }, + "notrepeat_req": { + "type": "component", + "repeatable": false, + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "component": "blog.test-como", + "required": true + }, + "repeat_req": { + "type": "component", + "repeatable": true, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "component": "blog.test-como", + "required": true + }, + "repeat_req_min": { + "type": "component", + "repeatable": true, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "component": "blog.test-como", + "required": false, + "min": 2 } } } diff --git a/packages/core/admin/webpack.config.dev.js b/packages/core/admin/webpack.config.dev.js index 84d199aba7..c2756def50 100644 --- a/packages/core/admin/webpack.config.dev.js +++ b/packages/core/admin/webpack.config.dev.js @@ -45,10 +45,10 @@ module.exports = () => { ...config, snapshot: { managedPaths: [ - path.resolve(__dirname, '../core/@strapi/plugin/content-manager'), - path.resolve(__dirname, '../core/@strapi/plugin/content-type-builder'), - path.resolve(__dirname, '../core/@strapi/plugin/upload'), - path.resolve(__dirname, '../core/@strapi/helper-plugin'), + path.resolve(__dirname, '../content-manager'), + path.resolve(__dirname, '../content-type-builder'), + path.resolve(__dirname, '../upload'), + path.resolve(__dirname, '../helper-plugin'), ], buildDependencies: { hash: true,