2017 © Pedro Peláez
 

library translations

Laravel DB translations system

image

tabby/translations

Laravel DB translations system

  • Tuesday, February 21, 2017
  • by aspirin2908
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Translation System

Installation

Install this package through Composer

composer require tabby/translations

Publish migrations and config

php artisan vendor:publish

Migrate tables to db

php artisan migrate

add, (*1)

 Tabby\Translations\TranslationsServiceProvider::class

to config/app.php, at the end of 'providers' array, (*2)

Usage

Package comes with helper function. Show translation, (*3)

t('translation.key')

Show default, (*4)

t('translation.key', 'Default value')

Show translation with dynamic parameters, (*5)

t('translation.key', ['paramName' => 'paramValue'])

License

MIT, (*6)

The Versions

21/02 2017

dev-master

9999999-dev

Laravel DB translations system

  Sources   Download

The Requires

 

The Development Requires

by Aleksey Marchuk