Skip to content

feat: add export_languages support in the config file#985

Merged
andrii-bodnar merged 2 commits intomainfrom
feat/export-lang
Feb 18, 2026
Merged

feat: add export_languages support in the config file#985
andrii-bodnar merged 2 commits intomainfrom
feat/export-lang

Conversation

@katerina20
Copy link
Copy Markdown
Collaborator

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 9, 2026

Codecov Report

❌ Patch coverage is 74.07407% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.32%. Comparing base (079c871) to head (f655e3c).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...om/crowdin/cli/properties/PropertiesWithFiles.java 28.58% 4 Missing and 1 partial ⚠️
...m/crowdin/cli/commands/actions/DownloadAction.java 90.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #985      +/-   ##
============================================
+ Coverage     65.30%   65.32%   +0.03%     
- Complexity     1679     1686       +7     
============================================
  Files           244      244              
  Lines          6881     6897      +16     
  Branches       1046     1051       +5     
============================================
+ Hits           4493     4505      +12     
- Misses         1790     1795       +5     
+ Partials        598      597       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds export_languages support to the CLI configuration so downloads can be restricted to a configured subset of target languages (optionally further filtered by excludeLanguageIds).

Changes:

  • Introduces export_languages config key and maps it onto PropertiesWithFiles.
  • Updates DownloadAction to compute target languages using CLI args, export_languages, and excluded languages.
  • Adds a DownloadActionTest covering the export_languages + exclude-languages interaction and extends the test properties builder API.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/main/java/com/crowdin/cli/properties/PropertiesBuilder.java Adds EXPORT_LANGUAGES config key constant.
src/main/java/com/crowdin/cli/properties/PropertiesWithFiles.java Adds exportLanguages field and populates it from config.
src/main/java/com/crowdin/cli/commands/actions/DownloadAction.java Uses export_languages (when no --language args) to decide build target languages; refactors language resolution into a helper.
src/test/java/com/crowdin/cli/properties/NewPropertiesWithFilesUtilBuilder.java Adds setExportLanguages(...) to simplify test setup.
src/test/java/com/crowdin/cli/commands/actions/DownloadActionTest.java Adds a test case for configured export languages with excluded languages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andrii-bodnar andrii-bodnar merged commit 8234dac into main Feb 18, 2026
9 checks passed
@andrii-bodnar andrii-bodnar deleted the feat/export-lang branch February 18, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants