library php-nano-translation
The php-nano-translation class gives you the correct translation from the requested JSON file.
azettl/php-nano-translation
The php-nano-translation class gives you the correct translation from the requested JSON file.
- Tuesday, September 12, 2017
- by azettl
- Repository
- 1 Watchers
- 0 Stars
- 7 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
php-nano-translation - Translation Engine
, (*1)
The php-nano-translation class gives you the correct translation from the requested JSON file., (*2)
Installation
composer require azettl/php-nano-translation
Usage
require __DIR__ . '/vendor/autoload.php';
$oTranslation = new com\azettl\nano\translation();
$oTranslation->setBasePath('vendor/azettl/php-nano-translation/tests/translations/');
$oTranslation->setFileNamePattern('test.%s.json');
echo $oTranslation->translate('MY_KEY_WITH_VARS', 'en', ['variable' => 'test']);
Translation Key Value: "My {variable} Value" Returns: "My test Value", (*3)
dev-master
9999999-dev
The php-nano-translation class gives you the correct translation from the requested JSON file.
Sources
Download
MIT
The Requires
The Development Requires
by
Andreas Zettl
translation
engine
0.0.1
0.0.1.0
The php-nano-translation class gives you the correct translation from the requested JSON file.
Sources
Download
MIT
The Requires
by
Andreas Zettl
translation
engine