Skip to content

Commit

Permalink
Merge pull request #5068 from Hyperkid123/ddforms-i18n
Browse files Browse the repository at this point in the history
Added i18n form data-driven-forms default validation messages.
  • Loading branch information
himdel authored Dec 11, 2018
2 parents 6565204 + dab8faf commit 4cdb164
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/javascript/forms/data-driven-form.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import React from 'react';
import FormRender from '@data-driven-forms/react-form-renderer';
import FormRender, { Validators } from '@data-driven-forms/react-form-renderer';
import { formFieldsMapper, layoutMapper } from '@data-driven-forms/pf3-component-mapper';

Validators.messages = {
...Validators.messages,
required: __('Required'),
};

const buttonLabels = {
submitLabel: __('Save'),
resetLabel: __('Reset'),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"homepage": "https://github.com/ManageIQ/manageiq#readme",
"dependencies": {
"@data-driven-forms/pf3-component-mapper": "^0.1.3",
"@data-driven-forms/react-form-renderer": "^1.2.1",
"@data-driven-forms/react-form-renderer": "^1.4.2",
"@manageiq/react-ui-components": "~0.10.8",
"@manageiq/ui-components": "~1.2.0",
"@pf3/select": "~1.12.6",
Expand Down

0 comments on commit 4cdb164

Please sign in to comment.