izzle / translation
Izzle Translation Library and Classes
0.3.1
2021-05-06 09:50 UTC
Requires
- php: >=7.1
- hassankhan/config: ^2.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.17
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-06 17:13:07 UTC
README
Simple Translation Lib
Installation
Using npm:
$ composer require izzle/translation
Usage
use Izzle\Translation\Services\Translation; // Init and load translation file $translation = new Translation('paht_to_file.json'); // Translate // Ex. { "global": { "hello": "Hello {0}" } }" echo $translation->translate('global.hello', ['World']);
Output
Hello World
License
Copyright (c) 2020-present Izzle