PHP code example of hricer / sync-translations
1. Go to this page and download the library: Download hricer/sync-translations library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hricer / sync-translations example snippets
// bundles.php
return [
// ...
Hricer\SyncTranslations\SyncTranslationsBundle::class => ['dev' => true],
];
// bin/translation.php
use Symfony\Component\Console\Application;
use Hricer\SyncTranslations\Command\SyncTranslationCommand;
(new Application('translation/sync'))
->add(new SyncTranslationCommand())
->getApplication()
->setDefaultCommand('translation:sync', true)
->run();
$ php bin/console translation:sync en --domain=messages