From 73a134024c922a91c0cc18f5e9a4bbb302cdea62 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Mon, 11 Nov 2024 15:25:32 +0100 Subject: [PATCH] Fix translations --- language/.en.json | 64 +++++++++++++++++++++++++++ language/de.json | 108 ---------------------------------------------- language/en.json | 54 ----------------------- 3 files changed, 64 insertions(+), 162 deletions(-) create mode 100644 language/.en.json delete mode 100644 language/de.json delete mode 100644 language/en.json diff --git a/language/.en.json b/language/.en.json new file mode 100644 index 0000000..d696e07 --- /dev/null +++ b/language/.en.json @@ -0,0 +1,64 @@ +{ + "semantics": [ + { + "label": "3D Model Viewer Editor/Navigation", + "fields": [ + { + "label": "Models", + "entity": "Model", + "field": { + "fields": [ + { + "label": "3D File", + "description": "3D Model (.glb | .gltf)" + }, + {}, + { + "label": "Model name" + }, + { + "field": { + "fields": [ + { + "label": "Label", + "description": "If left blank no label will be displayed and we'll try to use the title field for screen readers" + }, + { + "label": "Label Settings", + "fields": [ + { + "label": "Label position", + "description": "Choose where the label should appear", + "options": [ + { + "label": "Use behavioral setting" + }, + { + "label": "Right aligned" + }, + { + "label": "Left aligned" + }, + { + "label": "Top aligned" + }, + { + "label": "Bottom aligned" + } + ] + } + ] + }, + {}, + {} + ] + } + } + ] + } + }, + {} + ] + } + ] +} diff --git a/language/de.json b/language/de.json deleted file mode 100644 index 0ddba4a..0000000 --- a/language/de.json +++ /dev/null @@ -1,108 +0,0 @@ -[ - { - "name": "modelViewerWidget", - "label": "3D Model Viewer Editor/Navigation", - "fields": [ - { - "name": "models", - "label": "Models", - "field": { - "name": "model", - "fields": [ - { - "label": "3D File", - "name": "glbModel", - "description": "3D Model (.glb | .gltf)" - }, - { - "name": "modelId", - "type": "number" - }, - { - "name": "modelName", - "type": "text", - "label": "Model name" - }, - { - "name": "interactions", - "type": "list", - "min": 0, - "field": { - "name": "interaction", - "type": "group", - "fields": [ - { - "name": "labelText", - "type": "text", - "label": "Label", - "optional": true, - "description": "If left blank no label will be displayed and we'll try to use the title field for screen readers" - }, - { - "name": "label", - "type": "group", - "label": "Label Settings", - "importance": "low", - "fields": [ - { - "name": "labelPosition", - "type": "select", - "label": "Label position", - "description": "Choose where the label should appear", - "options": [ - { - "value": "inherit", - "label": "Use behavioral setting" - }, - { - "value": "right", - "label": "Right aligned" - }, - { - "value": "left", - "label": "Left aligned" - }, - { - "value": "top", - "label": "Top aligned" - }, - { - "value": "bottom", - "label": "Bottom aligned" - } - ], - "default": "inherit" - } - ] - }, - { - "name": "action", - "type": "library", - "options": [ - "H5P.AdvancedText 1.1", - "H5P.Image 1.1", - "H5P.Audio 1.5", - "H5P.Video 1.6", - "H5P.Questionnaire 1.3", - "H5P.FileForDownload 1.0", - "H5P.GoToScene 0.1" - ] - }, - { - "name": "interactionpos", - "type": "text" - } - ] - } - } - ] - } - }, - { - "name": "startModelId", - "type": "number", - "default": 0 - } - ] - } -] diff --git a/language/en.json b/language/en.json deleted file mode 100644 index 86e538c..0000000 --- a/language/en.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "semantics": [ - { - "label": "3D File", - "description": "3D Model (.glb | .gltf)" - }, - { - "label": "Model Viewer Editor Widget React", - "description": "Edit Hotspots in < model-viewer > React", - "fields": [ - { - "field": { - "fields": [ - { - "label": "Label", - "description": "If left blank no label will be displayed and we'll try to use the title field for screen readers" - }, - { - "label": "Label Settings", - "fields": [ - { - "label": "Label position", - "description": "Choose where the label should appear", - "options": [ - { - "label": "Use behavioral setting" - }, - { - "label": "Right aligned" - }, - { - "label": "Left aligned" - }, - { - "label": "Top aligned" - }, - { - "label": "Bottom aligned" - } - ] - } - ] - } - ] - } - }, - { - "label": "Model Title", - "description": "Used to identify the Model" - } - ] - } - ] -}