Skip to content

Commit f736b6d

Browse files
updated survey-creator docs [azurepipelines skip]
1 parent 9d2b072 commit f736b6d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/property-grid-customization.md

+14
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ import { Serializer } from "survey-core";
5656
Serializer.getProperty("matrix", "eachRowRequired").defaultValue = true;
5757
```
5858

59+
If you want to override the default value of a localizable property, do it using [localization capabilities](/form-library/documentation/survey-localization#override-individual-translations). In most cases, localizable properties are those that specify UI captions: [`completeText`](/form-library/documentation/api-reference/survey-data-model#completeText), [`pageNextText`](/form-library/documentation/api-reference/survey-data-model#pageNextText), [`pagePrevText`](/form-library/documentation/api-reference/survey-data-model#pagePrevText), etc.
60+
61+
```js
62+
// Get English locale translations
63+
const engLocale = Survey.getLocaleStrings("en");
64+
// In modular applications
65+
import { getLocaleStrings } from "survey-core";
66+
const engLocale = getLocaleStrings("en");
67+
68+
engLocale.pagePrevText = "Back";
69+
engLocale.pageNextText = "Forward";
70+
engLocale.completeText = "Send";
71+
```
72+
5973
## Add Help Texts to Property Editors
6074

6175
Property editors can display hints or tooltips that help survey authors specify correct property values. For example, the following image illustrates a hint for the [`acceptedTypes`](https://surveyjs.io/form-library/documentation/api-reference/file-model#acceptedTypes) property editor in a [File Upload](https://surveyjs.io/form-library/examples/file-upload/) question:

0 commit comments

Comments
 (0)