2017 © Pedro Peláez
 

library yaml-translation

Add YAML file support to Laravel TranslationServiceProvider

image

devitek/yaml-translation

Add YAML file support to Laravel TranslationServiceProvider

  • Thursday, September 28, 2017
  • by CaporalDead
  • Repository
  • 4 Watchers
  • 33 Stars
  • 24,215 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 12 Versions
  • 7 % Grown

The README.md

Add Yaml file support for Laravel 5 TranslationServiceProvider

SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This package uses Symfony/Yaml parser., (*2)

Installing

Add "devitek/yaml-translation": "4.*" to your composer.json by running :, (*3)

composer require devitek/yaml-translation

And select version: 4.*, (*4)

Finally, publish all vendor assets to create a yaml-translation.php:, (*5)

php artisan vendor:publish, (*6)

Add support in Laravel

You have to replace, (*7)

'Illuminate\Translation\TranslationServiceProvider',, (*8)

with, (*9)

'Devitek\Core\Translation\TranslationServiceProvider',, (*10)

in app/config/app.php., (*11)

How to use

Just use regular php files or use yml or yaml files instead., (*12)

PHP :, (*13)

<?php

return [
    'hello' => 'Hello :name',
    'author' => 'Devitek',
];

Will be equivalent to :, (*14)

YAML, (*15)

hello: Hello :name
author: Devitek

Enjoy it ! Feel free to fork :) !, (*16)

The Versions

28/09 2017

dev-master

9999999-dev

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

28/09 2017

4.1.0

4.1.0.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

03/09 2017

4.0.0

4.0.0.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

27/02 2017

3.0.0

3.0.0.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

25/01 2017

2.1.1

2.1.1.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

25/01 2017

2.1.0

2.1.0.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

20/08 2016

2.0.1

2.0.1.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

18/03 2016

2.0

2.0.0.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

The Requires

 

by Thomas SIEFFERT

05/11 2015

1.1

1.1.0.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

The Requires

 

by Thomas SIEFFERT

19/03 2015

1.0

1.0.0.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

The Requires

 

by Thomas SIEFFERT

15/07 2014

0.1.2

0.1.2.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

The Requires

 

by Thomas SIEFFERT

01/05 2014

0.1

0.1.0.0

Add YAML file support to Laravel TranslationServiceProvider

  Sources   Download

The Requires

 

by Thomas SIEFFERT