orchestra/translation

Translation Component for Orchestra Platform

Installs: 24 263

Dependents: 1

Stars: 8

Watchers: 1

Language: PHP

v3.1.2 2015-06-16 09:14 UTC

README

Translation Component extends the functionality of Illuminate\Translation to add support for cascading filesystem replacement for Laravel packages.

Latest Stable Version Total Downloads MIT License Build Status Coverage Status Scrutinizer Quality Score

Table of Content

Version Compatibility

Laravel Translation 4.0.x 2.0.x 4.1.x 2.1.x 4.2.x 2.2.x 5.0.x 3.0.x 5.1.x 3.1.x 5.2.x 3.2.x@dev

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require": {
        "orchestra/translation": "~3.0"
    }
}

Quick Installation

Above installation can also be simplify by using the following command:

composer require "orchestra/translation=~3.0"

Configuration

Next replace Illuminate\Translation\TranslationServiceProvider with the following service provider in config/app.php.

'providers' => [

    // ...

    Orchestra\Translation\TranslationServiceProvider::class,
],

Usage

Translation Component make it easier to have redistribute packages language files, instead of relying on resources/lang/en/package/name/title.php you can now publish it under resources/lang/vendor/name/en/title.php making it easier to create repository (and publish it under Github) for a single packages or extension to handle multiple languages.

Resources