PHP code example of aeliot-tm / translation-maintain

1. Go to this page and download the library: Download aeliot-tm/translation-maintain 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/ */

    

aeliot-tm / translation-maintain example snippets

shell
   php bin/console aeliot_trans_maintain:lint:yaml base
   
shell
   php bin/console aeliot_trans_maintain:yaml:transform <PATH_TO_FILE_TO_BE_UPDATED>
   
shell
   php bin/console aeliot_trans_maintain:yaml:transform --domain=messages --domain=validators --locale=en --locale=de
   
shell
   find PATH_TO_DIRECTORY -type f \( -iname \*.yml -o -iname \*.yaml \) | sort | xargs  -I {} -t  php  bin/console aeliot_trans_maintain:yaml:transform $1{}
   
shell
   php bin/console aeliot_trans_maintain:yaml:export_missed_translations messages en de