diff --git a/.changeset/funny-planets-teach.md b/.changeset/funny-planets-teach.md new file mode 100644 index 0000000000..2e2da19ab2 --- /dev/null +++ b/.changeset/funny-planets-teach.md @@ -0,0 +1,5 @@ +--- +'@sap-ux/cds-odata-annotation-converter': minor +--- + +Updated UI texts. diff --git a/packages/cds-odata-annotation-converter/src/i18n/i18n.json b/packages/cds-odata-annotation-converter/src/i18n/i18n.json index 154f55ce7f..1871695a4b 100644 --- a/packages/cds-odata-annotation-converter/src/i18n/i18n.json +++ b/packages/cds-odata-annotation-converter/src/i18n/i18n.json @@ -1,8 +1,8 @@ { - "Property_is_not_allowed_here": "Property is not allowed here '{{name}}'", - "The_attribute_value_must_be_a_string_literal": "The attribute value must be a string literal", - "Wrong_element_0_Did_you_mean_1": "Wrong element '{{currentValue}}'. Did you mean '{{proposedValue}}'?", - "Mandatory_property_not_provided_0": "Mandatory property not provided: {{property}}", - "Path_escaping_brackets_should_be_used": "Path escaping brackets ![] should be used", - "Wrong_path_separator_0_Did_you_mean_1": "Wrong path separator '{{currentValue}}'. Did you mean '{{proposedValue}}'?" + "Property_is_not_allowed_here": "The `{{name}}` property is not allowed here.", + "The_attribute_value_must_be_a_string_literal": "The attribute value must be a string literal.", + "Wrong_element_0_Did_you_mean_1": "`{{currentValue}}` is incorrect. Did you mean `{{proposedValue}}`?", + "Mandatory_property_not_provided_0": "The mandatory `{{property}}` property was not provided.", + "Path_escaping_brackets_should_be_used": "Path escaping brackets `![]` must be used.", + "Wrong_path_separator_0_Did_you_mean_1": "`{{currentValue}}` is the wrong path separator. Did you mean `{{proposedValue}}`?" } diff --git a/packages/cds-odata-annotation-converter/test/data/parser/apply/diagnostics.json b/packages/cds-odata-annotation-converter/test/data/parser/apply/diagnostics.json index 44bf0d1d96..3d1ec19e7b 100644 --- a/packages/cds-odata-annotation-converter/test/data/parser/apply/diagnostics.json +++ b/packages/cds-odata-annotation-converter/test/data/parser/apply/diagnostics.json @@ -2,6 +2,6 @@ { "range": "[(37,24)..(37,28)]", "severity": 1, - "message": "The attribute value must be a string literal" + "message": "The attribute value must be a string literal." } ] diff --git a/packages/cds-odata-annotation-converter/test/data/parser/json/diagnostics.json b/packages/cds-odata-annotation-converter/test/data/parser/json/diagnostics.json index 07ab3a2575..e993ecd032 100644 --- a/packages/cds-odata-annotation-converter/test/data/parser/json/diagnostics.json +++ b/packages/cds-odata-annotation-converter/test/data/parser/json/diagnostics.json @@ -1,6 +1,6 @@ [ { - "message": "Wrong element '$edmJS'. Did you mean '$edmJson'?", + "message": "`$edmJS` is incorrect. Did you mean `$edmJson`?", "range": "[(14,8)..(14,16)]", "severity": 1, "data": { diff --git a/packages/cds-odata-annotation-converter/test/data/parser/paths/diagnostics.json b/packages/cds-odata-annotation-converter/test/data/parser/paths/diagnostics.json index b88367fa40..af84ee7b43 100644 --- a/packages/cds-odata-annotation-converter/test/data/parser/paths/diagnostics.json +++ b/packages/cds-odata-annotation-converter/test/data/parser/paths/diagnostics.json @@ -1,7 +1,7 @@ [ { "range": "[(52,39)..(52,40)]", - "message": "Wrong path separator '/'. Did you mean '.'?", + "message": "`/` is the wrong path separator. Did you mean `.`?", "severity": 2, "data": { "caseCheck": { @@ -14,7 +14,7 @@ }, { "rule": "no-odata-path-separator", - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets `![]` must be used.", "range": "[(61,32)..(61,61)]", "severity": 2, "data": { @@ -24,7 +24,7 @@ }, { "rule": "no-odata-path-separator", - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets `![]` must be used.", "range": "[(65,32)..(65,86)]", "severity": 2, "data": { @@ -34,7 +34,7 @@ }, { "rule": "no-odata-path-separator", - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets `![]` must be used.", "range": "[(69,34)..(69,89)]", "severity": 2, "data": { @@ -44,7 +44,7 @@ }, { "rule": "no-odata-path-separator", - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets `![]` must be used.", "range": "[(73,32)..(73,92)]", "severity": 2, "data": { @@ -54,7 +54,7 @@ }, { "rule": "no-odata-path-separator", - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets `![]` must be used.", "range": "[(81,16)..(81,48)]", "severity": 2, "data": { diff --git a/packages/cds-odata-annotation-converter/test/data/parser/property-annotation-value-case-issue/diagnostics.json b/packages/cds-odata-annotation-converter/test/data/parser/property-annotation-value-case-issue/diagnostics.json index f0a34d826b..c8704e0d0e 100644 --- a/packages/cds-odata-annotation-converter/test/data/parser/property-annotation-value-case-issue/diagnostics.json +++ b/packages/cds-odata-annotation-converter/test/data/parser/property-annotation-value-case-issue/diagnostics.json @@ -1,6 +1,6 @@ [ { - "message": "Wrong element '$Value'. Did you mean '$value'?", + "message": "`$Value` is incorrect. Did you mean `$value`?", "range": "[(4,12)..(4,18)]", "severity": 1, "data": { @@ -14,21 +14,21 @@ }, { "range": "[(10,19)..(13,9)]", - "message": "Mandatory property not provided: $value", + "message": "The mandatory `$value` property was not provided.", "severity": 1 }, { - "message": "Property is not allowed here '$alue'", + "message": "The `$alue` property is not allowed here.", "range": "[(12,12)..(12,17)]", "severity": 2 }, { "range": "[(15,15)..(15,25)]", - "message": "Mandatory property not provided: $value", + "message": "The mandatory `$value` property was not provided.", "severity": 1 }, { - "message": "Property is not allowed here 'val'", + "message": "The `val` property is not allowed here.", "range": "[(15,17)..(15,20)]", "severity": 2 } diff --git a/packages/cds-odata-annotation-converter/test/transform/annotation/handler/__snapshots__/path.test.ts.snap b/packages/cds-odata-annotation-converter/test/transform/annotation/handler/__snapshots__/path.test.ts.snap index fadde80d1d..ce78c1c31a 100644 --- a/packages/cds-odata-annotation-converter/test/transform/annotation/handler/__snapshots__/path.test.ts.snap +++ b/packages/cds-odata-annotation-converter/test/transform/annotation/handler/__snapshots__/path.test.ts.snap @@ -16,7 +16,7 @@ Array [ "proposedValue": "@UI.DataPoint#E/Value]", "value": "@UI.DataPoint#E/Value", }, - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets \`![]\` must be used.", "range": Object { "end": Object { "character": 45, @@ -59,7 +59,7 @@ Array [ "proposedValue": "@UI.DataPoint#B/Value]", "value": "@UI.DataPoint#B/Value", }, - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets \`![]\` must be used.", "range": Object { "end": Object { "character": 45, @@ -92,7 +92,7 @@ Array [ "proposedValue": "![@UI.DataPoint#C/Value]", "value": "@UI.DataPoint#C/Value", }, - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets \`![]\` must be used.", "range": Object { "end": Object { "character": 45, @@ -125,7 +125,7 @@ Array [ "proposedValue": "![@UI.DataPoint#D/Value/]", "value": "@UI.DataPoint#D/Value/", }, - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets \`![]\` must be used.", "range": Object { "end": Object { "character": 43, @@ -158,7 +158,7 @@ Array [ "proposedValue": "![@UI.DataPoint/Value]", "value": "@UI.DataPoint/Value", }, - "message": "Path escaping brackets ![] should be used", + "message": "Path escaping brackets \`![]\` must be used.", "range": Object { "end": Object { "character": 40, @@ -204,7 +204,7 @@ Array [ "value": "/", }, }, - "message": "Wrong path separator '/'. Did you mean '.'?", + "message": "\`/\` is the wrong path separator. Did you mean \`.\`?", "range": Object { "end": Object { "character": 21, @@ -238,7 +238,7 @@ Array [ "value": "/", }, }, - "message": "Wrong path separator '/'. Did you mean '.'?", + "message": "\`/\` is the wrong path separator. Did you mean \`.\`?", "range": Object { "end": Object { "character": 13, @@ -273,7 +273,7 @@ Array [ "value": "/", }, }, - "message": "Wrong path separator '/'. Did you mean '.'?", + "message": "\`/\` is the wrong path separator. Did you mean \`.\`?", "range": Object { "end": Object { "character": 13, @@ -295,7 +295,7 @@ Array [ "value": "/", }, }, - "message": "Wrong path separator '/'. Did you mean '.'?", + "message": "\`/\` is the wrong path separator. Did you mean \`.\`?", "range": Object { "end": Object { "character": 21,