ravloony / transduct
Transform a Laravel language directory into a single JSON array
Installs: 63
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 1
pkg:composer/ravloony/transduct
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 theprovidersarray in/app/config/app.php - Add
'Ravloony\Transduct\Facades\Transduct'to the end of thealiasesarray 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.