1. Go to this page and download the library: Download genl/matice 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/ */
genl / matice example snippets
@translations(['en', 'fr'])
or
@translations('en, fr')
// config/matice.php
return [
// Export only
'only' => [
'fr/', // Take all the 'fr' directory with his children
'es', // Take all the 'es' directory with his children
'en/auth', // With or without the file extension
'en/pagination.php',
'en/validations',
],
// Or... export everything except
'except' => [
'en/passwords',
'en\\validations',
],
];
// resources/lang/en/auth.php
return [
'failed' => 'These credentials do not match our records.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];
use GENL\Matice\Facades\Matice;
// Loads all the translations
$translations = Matice::translations();
// Or loads translations for a specific locale.
$translations = Matice::translations($locale);