Skip to content

command translation:extract not found #505

Open
@PaddyLock

Description

@PaddyLock
Q A
Bundle version 1.4.3
Symfony version v4.2.1
PHP version 7.2.10

Expected behavior

Should be able to run extraction with this command

php bin/console translation:extract en --config=app --output-format=xliff --enable-extractor=jms_i18n_routing

Actual behavior

 Command "translation:extract" is not defined.

 Do you want to run "translation:update" instead?  (yes/no) [no]:
 > 

Steps to reproduce

use following config

jms_translation:
    configs:
        app:
            dirs: ["%kernel.root_dir%", "%kernel.root_dir%/../src/"]
            output_dir: "%kernel.root_dir%/../translations/"
            extractors: []

also installed jms/i18n-routing-bundle 3.0.2 with following config

jms_i18n_routing:
    default_locale: en
    locales: "%languages%"
    strategy: prefix_except_default

then run the command above.

Also if I run

php bin/console list

I only see translation:update

could there be a conflict in the namespace?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions