2017 © Pedro Peláez
 

library yaml-translation

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

image

jackjoe/yaml-translation

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

  • Tuesday, February 20, 2018
  • by jeroenbourgois
  • Repository
  • 2 Watchers
  • 1 Stars
  • 9,707 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 15 Versions
  • 13 % Grown

The README.md

Yaml Translation

Latest Version Monthly Downloads, (*1)

Add Yaml file support for Laravel 5 TranslationServiceProvider

This package uses Symfony/Yaml parser, and is forked from Devitek/laravel-yaml-translation, (*2)

Installation

Composer

Add Laravel Localization to your composer.json file., (*3)

"jackjoe/yaml-translation": "*"

Run composer install to get the latest version of the package., (*4)

Manually

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

Add support in Laravel

You have to replace, (*6)

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

with, (*8)

'JackJoe\Core\Translation\TranslationServiceProvider',, (*9)

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

How to use

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

PHP:, (*12)

<?php

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

Will in YAML be equivalent to:, (*13)

hello: Hello :name
author: Jack + Joe

A more complex example:, (*14)

title: My Website
copyright: |
  2015 &copy;

team:
  - name: Foo
    age: 18
  - name: Bar
    age: 20

Important!

When you want to use the yaml files, be sure to delete the php files!, (*15)

License

Copyright © 2019 Jack + Joe. This is free software, and may be redistributed under the terms specified in the LICENSE file., (*16)

The Versions

20/02 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

20/02 2018

2.1.4

2.1.4.0

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

20/02 2018

2.1.3

2.1.3.0

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

20/02 2018

2.1.2

2.1.2.0

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

20/02 2018

2.1.1

2.1.1.0

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

20/02 2018

2.1.0

2.1.0.0

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

19/09 2017

2.0.0

2.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

21/01 2016

1.0.6

1.0.6.0

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

21/01 2016

1.0.5

1.0.5.0

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

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

laravel translations yaml

17/06 2015

1.0.1

1.0.1.0

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

  Sources   Download

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

17/06 2015

1.0.2

1.0.2.0

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

  Sources   Download

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

17/03 2015

v0.2

0.2.0.0

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

  Sources   Download

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

17/03 2015

1.0.0

1.0.0.0

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

  Sources   Download

The Requires

 

by Thomas SIEFFERT
by Jack + Joe

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