PHPackages                             bbdo/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. [Localization &amp; i18n](/categories/localization)
4. /
5. bbdo/yaml-translation

ActiveLibrary[Localization &amp; i18n](/categories/localization)

bbdo/yaml-translation
=====================

Add YAML file support to Laravel TranslationServiceProvider

7.0(3y ago)13.6kMITPHPPHP &gt;=7.2

Since May 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/proximitybbdo/laravel-yaml-translation)[ Packagist](https://packagist.org/packages/bbdo/yaml-translation)[ RSS](/packages/bbdo-yaml-translation/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (3)Versions (16)Used By (0)

Add Yaml file support for Laravel 6 - 9 TranslationServiceProvider
==================================================================

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

This package uses Symfony/Yaml parser.

Installing
----------

[](#installing)

Add to your **composer.json** by running :

```
composer require bbdo/yaml-translation

```

Finally, publish all vendor assets to create a `yaml-translation.php`:

`php artisan vendor:publish`

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

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

You have to replace

`'Illuminate\Translation\TranslationServiceProvider',`

with

`'BBDO\Core\Translation\TranslationServiceProvider',`

in **app/config/app.php**.

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

[](#how-to-use)

Just use regular **php** files or use **yml** or **yaml** files instead.

**PHP** :

```
