diff --git a/package.json b/package.json index c8b34d3b7..d5f19bd65 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "scripts": { "build": "vue-cli-service build", "serve": "vue-cli-service serve", - "build": "vue-cli-service build", "build-bundle": "vue-cli-service build --target lib --name flow-builder src/lib.ts", "test:unit": "vue-cli-service test:unit", "lint": "vue-cli-service lint", @@ -44,6 +43,7 @@ "plain-draggable": "^2.5.12", "pointer-event": "^1.0.0", "popper.js": "^1.16.1", + "scanf": "^1.1.2", "vue": "^2.6.11", "vue-class-component": "^7.2.3", "vue-focus": "^2.1.0", diff --git a/src/assets/messages.json b/src/assets/messages.json index ce99ec8d1..5c62e1b47 100644 --- a/src/assets/messages.json +++ b/src/assets/messages.json @@ -1,5 +1,9 @@ { "en.flow-builder": { + "scanf-format-string-invalid": "Format String Invalid. Please refer to the documentation for scanf: https://www.php.net/manual/en/function.sscanf.php", + "edit-variable": "Enter Variable Name", + "format-string": "Format String", + "enter-format-string": "Enter Format String", "flow-name": "Flow name", "flow-label": "Flow label", "flow-importer": "Flow importer", @@ -1539,6 +1543,10 @@ "youre-using-floip-expressions": "It looks like you're using FLOIP expressions, nice!" }, "fr.flow-builder": { + "scanf-format-string-invalid": "Chaîne de format non valide. Veuillez vous référer à la documentation: https://www.php.net/manual/en/function.sscanf.php", + "edit-variable": "Modifier le nom de la variable", + "format-string": "Chaîne de format", + "enter-format-string": "Entrez la chaîne de format", "flow-name": "Nom du flux", "flow-label": "Libélé du flux", "flow-importer": "importateur de flux", diff --git a/src/components/interaction-designer/block-editors/FormatStringEditor.vue b/src/components/interaction-designer/block-editors/FormatStringEditor.vue index c85e72b1c..d873a766b 100644 --- a/src/components/interaction-designer/block-editors/FormatStringEditor.vue +++ b/src/components/interaction-designer/block-editors/FormatStringEditor.vue @@ -2,13 +2,18 @@