From cd9fdd9ba84353544c45e78ebaed4d43d408982a Mon Sep 17 00:00:00 2001 From: Thomas Jung Date: Wed, 8 Mar 2023 09:35:06 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20localizable=20labels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kirby3-blueprints.schema.json | 10 +++++----- tests/fixtures/blueprints/page.yml | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/kirby3-blueprints.schema.json b/kirby3-blueprints.schema.json index c2c3715..6b4a734 100644 --- a/kirby3-blueprints.schema.json +++ b/kirby3-blueprints.schema.json @@ -253,7 +253,7 @@ ] }, "label": { - "$ref": "#/$defs/nonEmptyString" + "$ref": "#/$defs/field-properties/@label" }, "fieldsets": { "type": "array", @@ -356,7 +356,7 @@ "type": "object", "properties": { "label": { - "$ref": "#/$defs/nonEmptyString" + "$ref": "#/$defs/field-properties/@label" }, "text": { "$ref": "#/$defs/nonEmptyString" @@ -382,7 +382,7 @@ "type": "object", "properties": { "label": { - "$ref": "#/$defs/nonEmptyString" + "$ref": "#/$defs/field-properties/@label" } } }, @@ -439,7 +439,7 @@ "type": "object", "properties": { "label": { - "$ref": "#/$defs/nonEmptyString" + "$ref": "#/$defs/field-properties/@label" }, "icon": { "$ref": "#/$defs/blueprint-properties/@icon" @@ -1191,7 +1191,7 @@ "description": "Optional info text setup" }, "@label": { - "$ref": "#/$defs/nonEmptyString", + "$ref": "#/$defs/stringOrTranslated", "description": "label is the new official replacement for headline" }, "@layout": { diff --git a/tests/fixtures/blueprints/page.yml b/tests/fixtures/blueprints/page.yml index 471fc79..a73566e 100644 --- a/tests/fixtures/blueprints/page.yml +++ b/tests/fixtures/blueprints/page.yml @@ -25,5 +25,8 @@ sections: type: fields fields: text: - label: Tex + label: + en: Localized Text + de: Übersetzter Text + fr: Texte localisé type: text