ravloony / transduct by ravloony

Transform a Laravel language directory into a single JSON array
62
2
4
Package Data
Maintainer Username: ravloony
Maintainer Contact: tm@thomas-macdonald.com (Thomas Macdonald)
Package Create Date: 2014-10-28
Package Last Update: 2019-10-03
Home Page:
Language: PHP
License: GPL-2.0+
Last Refreshed: 2024-11-21 03:01:50
Package Statistics
Total Downloads: 62
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 2
Total Watchers: 4
Total Forks: 1
Total Open Issues: 1

transduct

Simple package for laravel 4 to export lang folders to JSON.

##Setup & Usage

Installation

  • Add 'Ravloony\Transduct\TransductServiceProvider', to the end of the providers array in /app/config/app.php
  • Add 'Ravloony\Transduct\Facades\Transduct' to the end of the aliases 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.