Closed amir1376 closed 1 month ago
Thanks for the request. The export_languages
configuration is for VCS Integrations only. In CLI you can pass languages as command options: crowdin pull -l fr
, crowdin pull -l uk
, etc.
Implementing export_languages
support in the CLI will introduce conflicts with command options for different commands and other edge cases that need to be handled. This will lead to unwanted complexity and potential bugs.
Thanks for the quick response. Then it should to be mentioned in the docs that this key is not processed by the cli tool.
BTW I know about that option. because this configuration file is used by the cli then we expect this behavior! because using -l <lang1> -l <lang2>
each time we want to synchronize the translations is a repetitive task task.
One suggestion is that adding another optional root key in the configuration file which accepts default cli options. (which it doesn't add conflicts to the VCS integrations) for example
# default cli_options
"cli_options":{
"export_languages": [
"ar","fa","fr"
]
}
Imagine some projects does not need all the translations that are available in the crowdin (because they are not ready for some reason). this option could be useful in that case.
Thanks.
Then it should to be mentioned in the docs that this key is not processed by the cli tool.
It is located in the Configuration File for VCS Integrations section of the documentation.
Imagine some projects does not need all the translations that are available in the crowdin (because they are not ready for some reason).
In this case, you could use the export options (e.g. --skip-untranslated-files
or --export-only-approved
).
Describe the bug It seems that Crowdin CLI does not respect the
export_languages
in the configuration fileTo Reproduce Steps to reproduce the behavior:
"export_languages": [ "ar","fa","fr" ]