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

Translation and proofreading progress for a specific file or directory #585

Closed
andrii-bodnar opened this issue May 24, 2023 · 0 comments · Fixed by #646
Closed

Translation and proofreading progress for a specific file or directory #585

andrii-bodnar opened this issue May 24, 2023 · 0 comments · Fixed by #646
Assignees
Labels
enhancement help wanted new option New option for an existing command

Comments

@andrii-bodnar
Copy link
Member

andrii-bodnar commented May 24, 2023

Currently, we have the crowdin status, crowdin status translation, and crowdin status proofreading commands that allow displaying of translation or proofreading progress for a whole Crowdin project or a specific branch.

Sometimes there is a need to get a progress of a single file or directory.

I am suggesting adding the following options to the commands above:

  • --file - Specify a path to the file in a Crowdin project
  • --directory - Specify a path to the directory in a Crowdin project

In case one of these options is specified, CLI should fetch progress for a file or directory. These options can't be used simultaneously (proper validation and the error message should be foreseen).

Examples:

  • crowdin status --file "src/values/strings.xml"
  • crowdin status proofreading --directory "src/values"

API reference:

Notes:

  • The List Files and List Directories API responses already include the path parameter that represents the full file or directory path. So it should be easy to compare and find the right fileId or directoryId.
  • The -b/--branch parameter should be also considered.
  • The corresponding Unit test cases should be added for new options as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted new option New option for an existing command
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants