Ygg69
Ygg69

Reputation: 261

Symfony warning translation not found

I have an error:

warning translation not found.

So I have try this command:

app/console translation:update

But I have that error :

[RuntimeException]
Not enough arguments (missing: "locale").

In my config.yml I add

parameters:
    locale: fr

But always the same error.

Upvotes: 6

Views: 9137

Answers (1)

Oscar Pérez
Oscar Pérez

Reputation: 4397

You're missing an extra parameter. For example, to update English translation:

 app/console translation:update en --force

"en" parameter is the locale you want to update, and --force could be changed by --dump-messages if you just want to view the translateable strings.

Upvotes: 4

Related Questions