ravloony / transduct
Transform a Laravel language directory into a single JSON array
v5.2
2019-09-30 14:34 UTC
Requires
- php: >=5.3.0
- illuminate/support: ^4|^5
README
Simple package for laravel 4 to export lang folders to JSON.
##Setup & Usage
Installation
- Add
'Ravloony\Transduct\TransductServiceProvider',
to the end of theproviders
array in/app/config/app.php
- Add
'Ravloony\Transduct\Facades\Transduct'
to the end of thealiases
array in/app/config.php
Usage
There is only one method:
Transduct::get('folder')
, where folder
is a fully qualified folder or subfolder in /app/lang/<locale>/
Transduct is locale aware and will output the current language.