racklin / laravel-json-translator by racklin

Using laravel 5.4 compatible json localization files for laravel 5.1+
56
0
2
Package Data
Maintainer Username: racklin
Maintainer Contact: racklin@gmail.com (Rack Lin)
Package Create Date: 2017-05-04
Package Last Update: 2017-05-04
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-23 03:21:14
Package Statistics
Total Downloads: 56
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

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

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/