PHP code example of hexadog / laravel-translation-manager

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

    

hexadog / laravel-translation-manager example snippets




return [
    // Directories to search in.
	'directories' => [
		'app',
		'resources',
	],

	// File Extensions to search for.
	'extensions' => [
		'php',
		'js',
	],

	// Translation function names.
	// If your function name contains $ escape it using \$ .
	'functions' => [
		'__',
		'_t',
		'@lang',
	],

	// Indicates weather you need to sort the translations alphabetically
	// by original strings (keys).
	// It helps navigate a translation file and detect possible duplicates.
	'sort-keys' => true,
];
shell
php artisan vendor:publish --provider="Hexadog\TranslationManager\Providers\PackageServiceProvider"
shell
php artisan translation:unused
shell
php artisan translation:unused --namespace=hexadog
shell
php artisan translation:unused --lang=fr
shell
php artisan translation:unused --filename=buttons
shell
php artisan translation:missing
shell
php artisan translation:missing --namespace=hexadog
shell
php artisan translation:missing --lang=fr