项目作者: racklin

项目描述 :
laravel 5.4+ JSON localization for Laravel 5.1+
高级语言: PHP
项目地址: git://github.com/racklin/laravel-json-translator.git
创建时间: 2017-05-04T04:27:43Z
项目社区:https://github.com/racklin/laravel-json-translator

开源协议:MIT License

下载


laravel 5.4+ JSON localization for Laravel 5.1+

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

  1. 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/