PHP code example of bottelet / translation-checker

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

    

bottelet / translation-checker example snippets


return [
  'test.value' => 'Value',
];

class TestClass
{
    public function getValue()
    {
        return __('translate this string');
    }
}

return [
  'test.value' => 'Value',
  'translate this string' => null,
];
bash 
php artisan translations:check en
bash
php artisan translations:check en