feat: add export_languages support in the config file#985
Merged
andrii-bodnar merged 2 commits intomainfrom Feb 18, 2026
Merged
feat: add export_languages support in the config file#985andrii-bodnar merged 2 commits intomainfrom
andrii-bodnar merged 2 commits intomainfrom
Conversation
Codecov Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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_languagesconfig key and maps it ontoPropertiesWithFiles. - Updates
DownloadActionto compute target languages using CLI args,export_languages, and excluded languages. - Adds a
DownloadActionTestcovering theexport_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.
src/test/java/com/crowdin/cli/properties/NewPropertiesWithFilesUtilBuilder.java
Show resolved
Hide resolved
src/test/java/com/crowdin/cli/commands/actions/DownloadActionTest.java
Outdated
Show resolved
Hide resolved
andrii-bodnar
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.