PHP code example of kalimeraa / grumphp-laravel-translation-checker
1. Go to this page and download the library: Download kalimeraa/grumphp-laravel-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/ */
kalimeraa / grumphp-laravel-translation-checker example snippets
return [
'welcome' => 'Welcome',
'login' => 'Login',
'password' => [
'reset' => 'Reset Password',
'confirm' => 'Confirm Password',
],
];
lang/
├── en/
│ ├── general.php
│ ├── auth.php
│ └── validation.php
├── tr/
│ ├── general.php
│ ├── auth.php
│ └── validation.php
└── de/
├── general.php
├── auth.php
└── validation.php
Translation check failed!
lang/tr/general.php is missing 4 keys: settings, profile, password.reset, password.confirm
lang/de/auth.php is missing 2 keys: throttle, failed
Translation check failed!
lang/en/general.php has duplicate keys: name (2x), email (2x)