A Facade for loading localization data from JSONs within a lang folder
composer require elaborate-code/php-json-tongue
Set the file structure.
Then use the facade.
use ElaborateCode\JsonTongue\TongueFacade;
$tongue = new TongueFacade('/lang');
$localization = $tongue->transcribe();
$localization
will look like:
$localization = [
"es" => [
"programmer" => "programador",
"interviewer" => "entrevistador",
"Hello" => "Hola",
"Good morning" => "buenos dias",
//...
],
"fr" => [
"Hello" => "Salut",
"Good morning" => "Bonjour",
//...
]
//...
];
vendor/bin/pest
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.