diff --git a/.changeset/cyan-glasses-own.md b/.changeset/cyan-glasses-own.md new file mode 100644 index 00000000000..2b843ea751d --- /dev/null +++ b/.changeset/cyan-glasses-own.md @@ -0,0 +1,6 @@ +--- +"@sap-ux/adp-tooling": patch +"@sap-ux/generator-adp": patch +--- + +fix: Translation texts for Add Data Source and SAPUI5 Model title and subtitle diff --git a/packages/adp-tooling/src/translations/adp-tooling.i18n.json b/packages/adp-tooling/src/translations/adp-tooling.i18n.json index f39e52e733f..7e9cf2a15a7 100644 --- a/packages/adp-tooling/src/translations/adp-tooling.i18n.json +++ b/packages/adp-tooling/src/translations/adp-tooling.i18n.json @@ -70,7 +70,7 @@ "missingIconOrTitleOrSubtitle": "At least one of the Title, Subtitle, or Icon fields must have a value.", "fileDoesNotExist": "This file does not exist.", "annotationFileAlreadyExists": "There is already an annotation file with the same name. Please choose another file or rename the file and select it again.", - "errorDuplicatedValueOData": "An OData annotation or service with the same name was already added to the project. Rename and try again.", + "errorDuplicatedValueOData": "A data source and SAPUI5 model with the same name were already added to the project. Rename and try again.", "errorDuplicatedValueSapui5Model": "An SAPUI5 model with the same name was already added to the project. Rename and try again.", "errorDuplicateValueComponentId": "A component usage with the same name was already added to the project. Rename and try again.", "errorDuplicateValueLibrary": "A library with the same name was already added to the project. Rename and try again.", diff --git a/packages/adp-tooling/test/unit/prompts/add-new-model/index.test.ts b/packages/adp-tooling/test/unit/prompts/add-new-model/index.test.ts index 14dc0476ef9..a2ce85471f8 100644 --- a/packages/adp-tooling/test/unit/prompts/add-new-model/index.test.ts +++ b/packages/adp-tooling/test/unit/prompts/add-new-model/index.test.ts @@ -156,7 +156,7 @@ describe('getPrompts', () => { expect(typeof validation).toBe('function'); expect(validation?.('customer.testName')).toBe( - 'An OData annotation or service with the same name was already added to the project. Rename and try again.' + 'A data source and SAPUI5 model with the same name were already added to the project. Rename and try again.' ); }); diff --git a/packages/generator-adp/src/translations/generator-adp.i18n.json b/packages/generator-adp/src/translations/generator-adp.i18n.json index 71cf42a93f8..228667c0f0d 100644 --- a/packages/generator-adp/src/translations/generator-adp.i18n.json +++ b/packages/generator-adp/src/translations/generator-adp.i18n.json @@ -13,8 +13,8 @@ "deployConfigDescr": "Configure deployment settings.", "addComponentUsagesName": "Add SAPUI5 Component Usages", "addComponentUsagesDescr": "Select SAPUI5 component usages.", - "addNewModelName": "Add Datasource and SAPUI5 Model", - "addNewModelDescr": "Select a Datasource and SAPUI5 model.", + "addNewModelName": "Add Data Source and SAPUI5 Model", + "addNewModelDescr": "Select a data source and SAPUI5 model.", "addLocalAnnotationFileName": "Add Local Annotation File", "addLocalAnnotationFileDescr": "Select an OData service and annotation XML file.", "replaceODataServiceName": "Replace OData Service", diff --git a/packages/generator-adp/src/types.ts b/packages/generator-adp/src/types.ts index 441ea628bbc..c97aed621e7 100644 --- a/packages/generator-adp/src/types.ts +++ b/packages/generator-adp/src/types.ts @@ -1,7 +1,7 @@ export enum GeneratorTypes { ADD_ANNOTATIONS_TO_DATA = 'Add Local Annotation File', ADD_COMPONENT_USAGES = 'Add SAPUI5 Component Usages', - ADD_NEW_MODEL = 'Add Datasource and SAPUI5 Model', + ADD_NEW_MODEL = 'Add Data Source and SAPUI5 Model', CHANGE_DATA_SOURCE = 'Replace OData Service' }