Răsfoiți Sursa

content pages

Benjamin Kornblum 9 luni în urmă
părinte
comite
ae8a67ba42

+ 6 - 1
src/api/page/content-types/page/schema.json

@@ -33,7 +33,12 @@
       }
     },
     "path": {
-      "type": "string"
+      "type": "string",
+      "pluginOptions": {
+        "i18n": {
+          "localized": true
+        }
+      }
     }
   }
 }

+ 6 - 1
types/generated/contentTypes.d.ts

@@ -517,7 +517,12 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
       Schema.Attribute.Private;
     locale: Schema.Attribute.String;
     localizations: Schema.Attribute.Relation<'oneToMany', 'api::page.page'>;
-    path: Schema.Attribute.String;
+    path: Schema.Attribute.String &
+      Schema.Attribute.SetPluginOptions<{
+        i18n: {
+          localized: true;
+        };
+      }>;
     publishedAt: Schema.Attribute.DateTime;
     Title: Schema.Attribute.String &
       Schema.Attribute.SetPluginOptions<{