orchestral / translation by crynobone

Translation Component for Orchestra Platform
109,525
8
3
Package Data
Maintainer Username: crynobone
Maintainer Contact: crynobone@gmail.com (Mior Muhammad Zaki)
Package Create Date: 2013-08-25
Package Last Update: 2021-04-17
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-22 03:10:40
Package Statistics
Total Downloads: 109,525
Monthly Downloads: 342
Daily Downloads: 0
Total Stars: 8
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Orchestra Platform Translation Component

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

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Coverage Status

Table of Content

Version Compatibility

Laravel | Translation :----------|:---------- 5.5.x | 3.5.x 5.6.x | 3.6.x 5.7.x | 3.7.x 5.8.x | 3.8.x

Installation

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

{
    "require": {
        "orchestra/translation": "^3.5"
    }
}

Quick Installation

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

composer require "orchestra/translation=^3.5"

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.