Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gbisurgi committed Feb 17, 2022
1 parent e1a0787 commit e253513
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1584,6 +1584,28 @@ By default, all instances of JSON Editor will use the `en` language. To overrid
JSONEditor.defaults.language = "es";
```

You can also override translations per editor in the it's schema options.

````json
"error_const": {
"type": "string",
"title": "error_const",
"const": "test",
"default": "something else",
"options": {
"error_messages": {
"en": {
"error_const": "CUSTOM EN: Value must be the constant value"
},
"es": {
"error_const": "CUSTOM ES: Value must be the constant value"
}
}
}
}
````


Button Customization
-----------------

Expand Down

0 comments on commit e253513

Please sign in to comment.