diff --git a/packages/fx-core/resource/package.nls.json b/packages/fx-core/resource/package.nls.json index 72d329fb5a..b3726570bb 100644 --- a/packages/fx-core/resource/package.nls.json +++ b/packages/fx-core/resource/package.nls.json @@ -486,6 +486,9 @@ "core.common.NoServerInformation": "No server information is found in the OpenAPI description document.", "core.common.RemoteRefNotSupported": "Remote reference is not supported: %s.", "core.common.MissingOperationId": "Missing operationIds: %s.", + "core.common.UrlProtocolNotSupported": "Server url is incorrect: protocol %s is not supported, use https protocol.", + "core.common.RelativeServerUrlNotSupported": "Server url is incorrect: relative server url is not supported.", + "core.common.ErrorFetchApiSpec": "Your OpenAPI description document should be accessible without authentication. If not, download and use a local copy.", "core.common.NoSupportedApi": "No supported API found in the OpenAPI document.\nFor more information visit: \"https://aka.ms/build-api-based-message-extension\". \nReasons for API incompatibility are listed below:\n%s", "core.common.NoSupportedApiCopilot": "No supported API is found in the OpenAPI description document. \nReasons for API incompatibility are listed below:\n%s", "core.common.invalidReason.AuthTypeIsNotSupported": "authorization type is not supported", @@ -510,25 +513,25 @@ "core.common.ErrorFetchApiSpec": "Your OpenAPI description document should be accessible without authentication, otherwise download and start from a local copy.", "core.common.SendingApiRequest": "Sending API request: %s. Request body: %s", "core.common.ReceiveApiResponse": "Received API response: %s.", - "core.importAddin.label": "Import an Existing Outlook Add-ins", - "core.importAddin.detail": "Upgrade an Add-ins project to the latest app manifest and project structure", - "core.importOfficeAddin.label": "Import an Existing Office Add-ins", - "core.officeContentAddin.label": "Content Add-in", + "core.importAddin.label": "Import Existing Outlook Add-ins", + "core.importAddin.detail": "Upgrade Add-ins project to the latest app manifest and project structure", + "core.importOfficeAddin.label": "Import Existing Office Add-ins", + "core.officeContentAddin.label": "Content Add-ins", "core.officeContentAddin.detail": "Create new objects for Excel or PowerPoint", "core.newTaskpaneAddin.label": "Taskpane", "core.newTaskpaneAddin.detail": "Customize the Ribbon with a button and embed content in the Taskpane", "core.summary.actionDescription": "Action %s%s", "core.summary.lifecycleDescription": "Lifecycle stage: %s(%s step(s) in total). The following actions will be executed: %s", - "core.summary.lifecycleNotExecuted": "%s Lifecycle stage %s was not executed.", - "core.summary.lifecycleSucceeded": "%s Lifecycle stage %s was executed successfully.", - "core.summary.lifecycleFailed": "%s Lifecycle stage %s failed.", - "core.summary.actionNotExecuted": "%s was not executed.", - "core.summary.actionFailed": "%s failed.", - "core.summary.actionSucceeded": "%s was executed successfully.", + "core.summary.lifecycleNotExecuted": "%s Lifecycle stage %s not executed.", + "core.summary.lifecycleSucceeded": "%s Lifecycle stage %s executed successfully.", + "core.summary.lifecycleFailed": "%s Lifecycle stage %s didn't complete successfully.", + "core.summary.actionNotExecuted": "%s wasn't executed.", + "core.summary.actionFailed": "%s didn't complete successfully.", + "core.summary.actionSucceeded": "%s executed successfully.", "core.summary.createdEnvFile": "Environment file was created at", - "core.copilot.addAPI.success": "%s have(has) been successfully added to %s", - "core.copilot.addAPI.InjectAPIKeyActionFailed": "Inject API key action to teamsapp.yaml file unsuccessful, make sure the file contains teamsApp/create action in provision section.", - "core.copilot.addAPI.InjectOAuthActionFailed": "Inject OAuth action to teamsapp.yaml file unsuccessful, make sure the file contains teamsApp/create action in provision section.", + "core.copilot.addAPI.success": "%s successfully added to %s", + "core.copilot.addAPI.InjectAPIKeyActionFailed": "Unable to inject API key action to teamsapp.yaml file. Make sure the file contains teamsApp/create action in provision section.", + "core.copilot.addAPI.InjectOAuthActionFailed": "Unable to inject OAuth action to teamsapp.yaml file. Make sure the file contains teamsApp/create action in provision section.", "ui.select.LoadingOptionsPlaceholder": "Loading options ...", "ui.select.LoadingDefaultPlaceholder": "Loading default value ...", "error.aad.manifest.NameIsMissing": "name is missing\n", @@ -536,8 +539,8 @@ "error.aad.manifest.RequiredResourceAccessIsMissing": "requiredResourceAccess is missing\n", "error.aad.manifest.Oauth2PermissionsIsMissing": "oauth2Permissions is missing\n", "error.aad.manifest.PreAuthorizedApplicationsIsMissing": "preAuthorizedApplications is missing\n", - "error.aad.manifest.ResourceAppIdIsMissing": "Some item(s) in requiredResourceAccess misses resourceAppId property.", - "error.aad.manifest.ResourceAccessIdIsMissing": "Some item(s) in resourceAccess misses id property.", + "error.aad.manifest.ResourceAppIdIsMissing": "Some requiredResourceAccess item(s) are missing the resourceAppId property.", + "error.aad.manifest.ResourceAccessIdIsMissing": "Some resourceAccess item(s) are missing id property.", "error.aad.manifest.ResourceAccessShouldBeArray": "resourceAccess should be an array.", "error.aad.manifest.RequiredResourceAccessShouldBeArray": "requiredResourceAccess should be an array.", "error.aad.manifest.AccessTokenAcceptedVersionIs1": "accessTokenAcceptedVersion is 1\n", diff --git a/packages/fx-core/tests/component/driver/aad/aadAppClient.test.ts b/packages/fx-core/tests/component/driver/aad/aadAppClient.test.ts index 9cde0568c3..df2c299d49 100644 --- a/packages/fx-core/tests/component/driver/aad/aadAppClient.test.ts +++ b/packages/fx-core/tests/component/driver/aad/aadAppClient.test.ts @@ -519,7 +519,7 @@ describe("AadAppClient", async () => { expect(err.source).equals("AadAppClient"); expect(err.name).equals("HostNameNotOnVerifiedDomain"); expect(err.message).equals( - "Unable to set identifierUri because the value is not on verified domain: Mocked error message" + "Unable to set identifierUri as the value is not on verified domain: Mocked error message" ); expect(err.helpLink).equals("https://aka.ms/teamsfx-multi-tenant"); } diff --git a/packages/fx-core/tests/component/driver/aad/aadManifestHelper.test.ts b/packages/fx-core/tests/component/driver/aad/aadManifestHelper.test.ts index 239754fea9..a6991bf19c 100644 --- a/packages/fx-core/tests/component/driver/aad/aadManifestHelper.test.ts +++ b/packages/fx-core/tests/component/driver/aad/aadManifestHelper.test.ts @@ -172,7 +172,7 @@ describe("Microsoft Entra manifest helper Test", () => { .expect(() => { AadManifestHelper.processRequiredResourceAccessInManifest(manifestWithInvalidSting); }) - .to.throw("Some item(s) in requiredResourceAccess misses resourceAppId property."); + .to.throw("Some requiredResourceAccess item(s) are missing the resourceAppId property."); }); it("processRequiredResourceAccessInManifest with no resourceAccess id", async () => { @@ -193,7 +193,7 @@ describe("Microsoft Entra manifest helper Test", () => { .expect(() => { AadManifestHelper.processRequiredResourceAccessInManifest(manifestWithInvalidSting); }) - .to.throw("Some item(s) in resourceAccess misses id property."); + .to.throw("Some resourceAccess item(s) are missing id property."); }); it("processRequiredResourceAccessInManifest with no requiredResourceAccess", async () => {