PHPackages                             jackjoe/yaml-translation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. jackjoe/yaml-translation

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

jackjoe/yaml-translation
========================

Add YAML file support to Laravel TranslationServiceProvider, fork of devitek/yaml-translation

2.1.5(6y ago)127.1k—8.3%2MITPHPPHP ^7.1

Since May 1Pushed 6y ago2 watchersCompare

[ Source](https://github.com/jackjoe/laravel-yaml-translation)[ Packagist](https://packagist.org/packages/jackjoe/yaml-translation)[ RSS](/packages/jackjoe-yaml-translation/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (16)Used By (0)

Yaml Translation
================

[](#yaml-translation)

[![Latest Version](https://camo.githubusercontent.com/04d4ac546c4d16333af20e1cb9049f2410f8fe5bd789e103628069ac77b03905/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a61636b6a6f652f79616d6c2d7472616e736c6174696f6e2e737667)](https://packagist.org/packages/jackjoe/yaml-translation)[![Monthly Downloads](https://camo.githubusercontent.com/412ebe917aed5ab20eecee0510ac8b8776fdc41593daee4260fee13928ae664c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a61636b6a6f652f79616d6c2d7472616e736c6174696f6e2e737667)](https://packagist.org/jackjoe/yaml-translation/image/stats)

Add Yaml file support for Laravel 5 TranslationServiceProvider
--------------------------------------------------------------

[](#add-yaml-file-support-for-laravel-5-translationserviceprovider)

This package uses Symfony/Yaml parser, and is forked from [Devitek/laravel-yaml-translation](https://github.com/Devitek/laravel-yaml-translation)

Installation
------------

[](#installation)

### Composer

[](#composer)

Add Laravel Localization to your `composer.json` file.

```
"jackjoe/yaml-translation": "*"

```

Run `composer install` to get the latest version of the package.

### Manually

[](#manually)

It's recommended that you use Composer, however you can download and install from this repository.

Add support in Laravel
----------------------

[](#add-support-in-laravel)

You have to replace

`'Illuminate\Translation\TranslationServiceProvider',`

with

`'JackJoe\Core\Translation\TranslationServiceProvider',`

in `config/app.php`.

How to use
----------

[](#how-to-use)

Instead of using the regular **php** files to input your translation, use **yml** or **yaml** files instead.

**PHP**:

```
