racklin/json-translator

Using laravel 5.4 compatible json localization files for laravel 5.1+

dev-master 2017-05-04 12:21 UTC

This package is auto-updated.

Last update: 2024-11-04 11:47:55 UTC


README

This package make your old laravel project using laravel 5.4+ JSON localization.

Install

  1. Use composer to add the package into your project using composer require racklin/json-translator:dev-master

Add Service Provider

Add service provider into your providers array in config/app.php

Racklin\JsonTranslator\JsonTranslationServiceProvider::class,

Retrieving Translation Strings

You may retrieve lines from language files using the __ helper function.

Laravel version

Current package version works for Laravel 5.1+.

License

MIT: https://racklin.mit-license.org/