Add YAML file support to Laravel TranslationServiceProvider, fork of devitek/yaml-translation
This package uses Symfony/Yaml parser, and is forked from Devitek/laravel-yaml-translation
Add Laravel Localization to your
composer install to get the latest version of the package.
It's recommended that you use Composer, however you can download and install from this repository.
You have to replace
Instead of using the regular php files to input your translation, use yml or yaml files instead.
<?php return [ 'hello' => 'Hello :name', 'author' => 'Devitek', ];
Will in YAML be equivalent to:
hello: Hello :name author: Jack + Joe
A more complex example:
title: My Website copyright: | 2015 © team: - name: Foo age: 18 - name: Bar age: 20
When you want to use the
yaml files, be sure to delete the