Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update package.nls.json #11539

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions packages/fx-core/resource/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -727,27 +727,26 @@
"error.teamsApp.validate.apiFailed": "Teams app package validation failed due to %s",
"error.teamsApp.validate.apiFailed.display": "Teams app pacakge validation failed. Check [Output panel](command:fx-extension.showOutputChannel) for details.",
"error.teamsApp.validate.details": "File path: %s, title: %s",
"error.teamsApp.AppIdNotExistError": "Teams app with ID %s does not exist in Teams Developer Portal.",
"error.teamsApp.AppIdNotExistError": "Teams app with ID %s doesn't exist in Teams Developer Portal.",
"error.teamsApp.InvalidAppIdError": "Teams app ID %s is invalid, must be a GUID.",
"error.teamsApp.createAppPackage.invalidFile": "%s is invalid, it should be in the same directory as manifest.json or a subdirectory of it.",
"driver.botFramework.description": "creates or updates the bot registration on dev.botframework.com",
"driver.botFramework.summary.create": "The bot registration has been created successfully (%s).",
"driver.botFramework.summary.update": "The bot registration has been updated successfully (%s).",
"driver.botFramework.summary.create": "Bot registration created successfully (%s).",
"driver.botFramework.summary.update": "Bot registration updated successfully (%s).",
"driver.botFramework.progressBar.createOrUpdateBot": "Creating or updating bot registration.",
"driver.botFramework.error.InvalidBotId": "Bot ID %s is invalid. It must be a GUID.",
"error.yaml.InvalidYamlSchemaError": "Unable to parse yaml file: %s. Please open the yaml file for detailed errors.",
"error.yaml.InvalidYamlSchemaErrorWithReason": "Unable to parse yaml file: %s. Reason: %s Please review the yaml file or upgrade to the latest Teams Toolkit.",
"error.yaml.InvalidYamlSchemaError": "Unable to parse yaml file: %s. Open the yaml file for detailed errors.",
"error.yaml.InvalidYamlSchemaErrorWithReason": "Unable to parse yaml file: %s. Reason: %s Review the yaml file or upgrade to the latest Teams Toolkit.",
"error.yaml.VersionNotSupported": "version %s is not supported. Supported versions: %s.",
"error.yaml.YamlFieldTypeError": "Field '%s' should have %s type, yaml file: %s",
"error.yaml.YamlFieldMissingError": "Field '%s' is missing, yaml file: %s",
"error.yaml.InvalidYmlActionNameError": "Action '%s' not found, yaml file: %s",
"error.yaml.LifeCycleUndefinedError": "Lifecycle '%s' is undefined, yaml file: %s",
"error.yaml.InvalidActionInputError": "The '%s' action cannot be completed as the following parameter(s): %s, are either missing or have an invalid value in the provided yaml file: %s. Ensure that the required parameters are provided and have valid values and try again.",
"error.common.InstallSoftwareError": "Unable to install %s. You can install it manually and restart Visual Studio Code if you are using the Toolkit in Visual Studio Code.",
"error.common.VersionError": "Unable to find a version satisfying the version range %s.",
"error.common.MissingEnvironmentVariablesError": "The program cannot proceed because the following environment variables are missing: '%s' for file: %s. Please set them by editing the .env file '%s' or '%s', or the system environment variables with the correct names and values. For new Teams Toolkit projects, running provision or debug will register correct values for these environment variables.",
"error.common.InvalidProjectError": "This command only works for project created by Teams Toolkit. 'teamsapp.yml' or 'teamsapp.local.yml' not found",
"error.common.InvalidProjectError.display": "This command only works for project created by Teams Toolkit. Yaml file not found: %s",
"error.yaml.InvalidActionInputError": "The '%s' action can't be completed as the following parameter(s): %s are either missing or have an invalid value in the provided yaml file: %s. Make sure the required parameters are provided and have valid values and try again.",
"error.common.InstallSoftwareError": "Unable to install %s. Install it manually and restart Visual Studio Code if you are using the Toolkit in Visual Studio Code.",
"error.common.VersionError": "Unable to find a suitable version within the version range %s.",
"error.common.MissingEnvironmentVariablesError": "The program can't proceed as the following environment variables are missing: '%s', which are required for file: %s. Make sure the required variables are set either by editing the .env file '%s' with the correct names and values , or by setting the system environment variables with the correct names and values. If you are developing with a new project created with Teams Toolkit, running provision or debug will register correct values for these environment variables.",
"error.common.InvalidProjectError": "This command only works for project created by Teams Toolkit.",
"error.common.FileNotFoundError": "The file or directory is not found: '%s'. Check if it exists and you have permission to access it.",
"error.common.JSONSyntaxError": "JSON syntax error: %s. Check the JSON syntax to ensure it is properly formatted.",
"error.common.ReadFileError": "Unable to read file for reason: %s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ describe("v3 yaml parser", () => {
chai
.expect(errorMsg)
.includes(`Unable to parse yaml file`)
.and.includes(`Please open the yaml file`);
.and.includes(`Open the yaml file for detailed errors`);

result = await parser.parse(
path.resolve(__dirname, "testing_data", "invalid_write_to_environment_file_number.yml"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,6 @@ describe("aadAppCreate", async () => {
expect(result.result._unsafeUnwrapErr())
.is.instanceOf(UserError)
.and.has.property("message")
.and.contains("action cannot be completed as the following parameter(s):");
.and.contains("action can't be completed as the following parameter(s):");
});
});
2 changes: 1 addition & 1 deletion packages/fx-core/tests/core/FxCore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ describe("Core basic APIs", () => {
// Cannot assert the full message because the mocked code can't get correct env file path
assert.include(
res.error.message,
"The program cannot proceed because the following environment variables are missing: 'AAD_APP_OBJECT_ID' for file: fake path. Please set them by editing the .env file"
"The program can't proceed as the following environment variables are missing: 'AAD_APP_OBJECT_ID', which are required for file: fake path. Make sure the required variables are set either by editing the .env file"
);
assert.include(
res.error.message,
Expand Down
Loading