Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 230
Ygg69 Avatar asked Jan 16 '17 11:01

Ygg69


1 Answers

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.

like image 94
Oscar Pérez Avatar answered Nov 15 '22 11:11

Oscar Pérez