PHP code example of nawrasbukhari / translation-scanner

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

    

nawrasbukhari / translation-scanner example snippets


/**
 * Directories to scan for missing translation keys.
 */
'scan_directories' => [
    app_path(),
    resource_path('views')
],

/**
 * File extensions to scan from.
 */
'file_extensions' => [
    'php',
    'js',
    'vue',
],

/**
 * Translation helper methods to scan
 * for in your application's code.
 */
'translation_methods' => [
    'lang',
    '__',
],

php artisan translation:scan

php artisan vendor:publish --provider="NawrasBukhariTranslationScanner\TranslationScannerServiceProvider"