New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

jackjoe/yaml-translation

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

Larablocks Analysis

jackjoe/yaml-translation works with Laravel 6 (latest release 2.1.5, Sep 24, 2019), which reached end of life on Sep 6, 2022: no more fixes, even for security.

Laravel 4 and 5 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 6, past end of life since Sep 6, 2022
  • No release in the last 12 months (last: Sep 24, 2019)
  • 354 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Sep 24, 2019.
  • No releases in the last 12 months.
  • First released: May 1, 2014.
  • Monthly downloads: 354, up 27% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require jackjoe/yaml-translation
Latest Version:2.1.5
PHP:^7.1
Laravel:6
Older releases:4 · 5
License:MIT
Last Updated:Oct 1, 2019
Links: GitHub  ·  Packagist
Maintainer: jeroenbourgois

Yaml Translation

Latest Version Monthly Downloads

Add Yaml file support for Laravel 5 TranslationServiceProvider

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

Installation

Composer

Add Laravel Localization to your composer.json file.

"jackjoe/yaml-translation": "*"

Run composer install to get the latest version of the package.

Manually

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

Add support in Laravel

You have to replace

'Illuminate\Translation\TranslationServiceProvider',

with

'JackJoe\Core\Translation\TranslationServiceProvider',

in config/app.php.

How to use

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

PHP:

<?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 &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!

License

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

Related Packages

coderscantina/laravel-translations

Database driven translation for your Laravel application.

6,630 0
barryvdh/laravel-translation-manager

Manage Laravel Translations

4,253,312 1,700
pragmarx/yaml

Load your Laravel config files using yaml

2,965,968 114
genl/matice

Use your Laravel translations in JavaScript. Generates a Blade directive exporti...

455,839 101
vsch/laravel-translation-manager

Enhanced Laravel Translation Manager

191,845 181

Version History

Version Released PHP Laravel License
2.1.5 ^7.1 ^6.0 MIT
2.1.4 ^7.1 ^5.1 MIT
2.1.3 >=5.4.0 >=5.1.0 MIT
2.1.2 >=5.4.0 >=5.1.0 MIT
2.1.1 >=5.4.0 >=5.1.0 MIT