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
option as-tree not working in command #54671
Comments
The implementation of Note that TranslationUpdateCommand suffers from the same issue about allowing |
Symfony version(s) affected
6.4.4
Description
Hello,
I configured crowdin to import my translations but the as-tree is not working properly
php bin/console translation:pull crowdin --as-tree
I have to specify the following command to force the tree structure
php bin/console translation:pull loco --force --as-tree 1
How to reproduce
use the following console command
php bin/console translation:pull crowdin --as-tree
--as-tree is not taken in account
Possible Solution
I have to specify the following command to force the tree structure
php bin/console translation:pull loco --force --as-tree 1
Additional Context
in the file Symfony\Component\Translation\Command\TranslationPullCommand
The option is converted to an int
$asTree = (int) $input->getOption('as-tree');
but if the value is not an int it will not be taken in account
The text was updated successfully, but these errors were encountered: