A package to add support for yaml translation files in Laravel 5
This package uses Symfony/Yaml parser.
Add "devitek/yaml-translation": "1.*" to your composer.json by running :
php composer.phar require devitek/yaml-translation
And select version : 1.*
You have to replace
'Illuminate\Translation\TranslationServiceProvider',
with
'Devitek\Core\Translation\TranslationServiceProvider',
in app/config/app.php.
Just use regular php files or use yml or yaml files instead.
undefinedPHP :
<?php
return [
'hello' => 'Hello :name',
'author' => 'Devitek',
];
Will be equivalent to :
undefinedYAMLundefined
hello: Hello :name
author: Devitek
Enjoy it ! Feel free to fork :) !
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.