Add locale support to extract-strings console
- Remove reliance on available locales setting - Add reliance on translation path setting - Only create a new translation when a single language is provided - Remove debug comments
This commit is contained in:
parent
ce075c80e6
commit
0c3013adeb
2 changed files with 11 additions and 24 deletions
|
|
@ -10,7 +10,7 @@ class ExtractStrings extends BaseRoute
|
|||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\ExtractStrings(
|
||||
$this->container->get('settings')['i18n']['locales'],
|
||||
$this->container->get('settings')['i18n']['path'],
|
||||
$args
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue