diff --git a/CHANGELOG.md b/CHANGELOG.md index bde31ac..04e67aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.13.2 + +This version adds missing translations for the `variableDefinitions` value editor. + ## 0.13.1 This version adds missing translations for the `variableNameValidator` function [#37](https://github.com/nocode-js/sequential-workflow-editor/issues/37). diff --git a/demos/webpack-app/package.json b/demos/webpack-app/package.json index 13950a4..e505e36 100644 --- a/demos/webpack-app/package.json +++ b/demos/webpack-app/package.json @@ -18,8 +18,8 @@ "sequential-workflow-model": "^0.2.0", "sequential-workflow-designer": "^0.21.2", "sequential-workflow-machine": "^0.4.0", - "sequential-workflow-editor-model": "^0.13.1", - "sequential-workflow-editor": "^0.13.1" + "sequential-workflow-editor-model": "^0.13.2", + "sequential-workflow-editor": "^0.13.2" }, "devDependencies": { "ts-loader": "^9.4.2", diff --git a/docs/I18N-KEYS.md b/docs/I18N-KEYS.md index 70a7d86..a95d769 100644 --- a/docs/I18N-KEYS.md +++ b/docs/I18N-KEYS.md @@ -46,6 +46,8 @@ This document lists all the I18N keys used in the Sequential Workflow Editor. "toolbox.defaultGroupName": "Others", "variableDefinitions.delete": "Delete", "variableDefinitions.namePlaceholder": "Variable name", + "variableDefinitions.newVariable": "New variable", + "variableDefinitions.noVariablesDefined": "No variables defined", "variableDefinitions.valueTypeIsNotAllowed": "Value type is not allowed", "variableDefinitions.variableNameIsDuplicated": "Variable name is already used", "variableName.invalidCharacters": "Variable name contains invalid characters", diff --git a/editor/package.json b/editor/package.json index 7e324a3..ed19193 100644 --- a/editor/package.json +++ b/editor/package.json @@ -1,6 +1,6 @@ { "name": "sequential-workflow-editor", - "version": "0.13.1", + "version": "0.13.2", "type": "module", "main": "./lib/esm/index.js", "types": "./lib/index.d.ts", @@ -46,11 +46,11 @@ "prettier:fix": "prettier --write ./src ./css" }, "dependencies": { - "sequential-workflow-editor-model": "^0.13.1", + "sequential-workflow-editor-model": "^0.13.2", "sequential-workflow-model": "^0.2.0" }, "peerDependencies": { - "sequential-workflow-editor-model": "^0.13.1", + "sequential-workflow-editor-model": "^0.13.2", "sequential-workflow-model": "^0.2.0" }, "devDependencies": { diff --git a/editor/src/value-editors/variable-definitions/variable-definitions-value-editor.ts b/editor/src/value-editors/variable-definitions/variable-definitions-value-editor.ts index 6d21541..c3a7126 100644 --- a/editor/src/value-editors/variable-definitions/variable-definitions-value-editor.ts +++ b/editor/src/value-editors/variable-definitions/variable-definitions-value-editor.ts @@ -29,12 +29,12 @@ export function variableDefinitionsValueEditor( item => variableDefinitionItemComponent(item, context), context, { - emptyMessage: 'No variables defined' + emptyMessage: context.i18n('variableDefinitions.noVariablesDefined', 'No variables defined') } ); list.onChanged.subscribe(onChanged); - const addButton = buttonComponent('New variable', { + const addButton = buttonComponent(context.i18n('variableDefinitions.newVariable', 'New variable'), { size: 'small', icon: Icons.add }); diff --git a/model/package.json b/model/package.json index 76afaad..ffd743b 100644 --- a/model/package.json +++ b/model/package.json @@ -1,6 +1,6 @@ { "name": "sequential-workflow-editor-model", - "version": "0.13.1", + "version": "0.13.2", "homepage": "https://nocode-js.com/", "author": { "name": "NoCode JS",