Skip to content

Commit 471ffc3

Browse files
- Switched the default Translatable strings to use Markdown
1 parent ed8dc41 commit 471ffc3

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ should change the heading of the (upcoming) version to include a major version b
2929

3030
## Dev / docs / playground
3131

32-
- Updated the `Validator` dropdown to add `AJV8 (discriminator)` which sets the AJV validator [discriminator](https://ajv.js.org/json-schema.html#discriminator) option to `true` to support testing schemas with it in them
32+
- Updated the `Validator` dropdown to add `AJV8 (discriminator)` which sets the AJV validator [discriminator](https://ajv.js.org/json-schema.html#discriminator) option to `true` to support testing schemas with that option in them
3333

3434
# 5.19.3
3535

packages/utils/src/enums.ts

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,25 @@ export enum TranslatableString {
5555
/** Key label, where %1 will be replaced by the label as provided by WrapIfAdditionalTemplate */
5656
KeyLabel = '%1 Key',
5757
// Strings with replaceable parameters AND/OR that support markdown and html
58-
/** Invalid object field configuration as provided by the ObjectField */
59-
InvalidObjectField = 'Invalid "%1" object field configuration: <em>%2</em>.',
58+
/** Invalid object field configuration as provided by the ObjectField.
59+
* NOTE: Use markdown notation rather than html tags.
60+
*/
61+
InvalidObjectField = 'Invalid "%1" object field configuration: _%2_.',
6062
/** Unsupported field schema, used by UnsupportedField */
6163
UnsupportedField = 'Unsupported field schema.',
62-
/** Unsupported field schema, where %1 will be replaced by the idSchema.$id as provided by UnsupportedField */
63-
UnsupportedFieldWithId = 'Unsupported field schema for field <code>%1</code>.',
64-
/** Unsupported field schema, where %1 will be replaced by the reason string as provided by UnsupportedField */
65-
UnsupportedFieldWithReason = 'Unsupported field schema: <em>%1</em>.',
64+
/** Unsupported field schema, where %1 will be replaced by the idSchema.$id as provided by UnsupportedField.
65+
* NOTE: Use markdown notation rather than html tags.
66+
*/
67+
UnsupportedFieldWithId = 'Unsupported field schema for field `%1`.',
68+
/** Unsupported field schema, where %1 will be replaced by the reason string as provided by UnsupportedField.
69+
* NOTE: Use markdown notation rather than html tags.
70+
*/
71+
UnsupportedFieldWithReason = 'Unsupported field schema: _%1_.',
6672
/** Unsupported field schema, where %1 and %2 will be replaced by the idSchema.$id and reason strings, respectively,
67-
* as provided by UnsupportedField
73+
* as provided by UnsupportedField.
74+
* NOTE: Use markdown notation rather than html tags.
6875
*/
69-
UnsupportedFieldWithIdAndReason = 'Unsupported field schema for field <code>%1</code>: <em>%2</em>.',
76+
UnsupportedFieldWithIdAndReason = 'Unsupported field schema for field `%1`: _%2_.',
7077
/** File name, type and size info, where %1, %2 and %3 will be replaced by the file name, file type and file size as
7178
* provided by FileWidget
7279
*/

0 commit comments

Comments
 (0)