2017 © Pedro Peláez
 

library laravel-common-languages-terms

Provides a set of common language terms for Laravel.

image

axn/laravel-common-languages-terms

Provides a set of common language terms for Laravel.

  • Wednesday, July 25, 2018
  • by axn
  • Repository
  • 2 Watchers
  • 0 Stars
  • 345 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Laravel common languages terms

Provides a set of common language terms for Laravel., (*1)

Installation

Install through composer:, (*2)

composer require axn/laravel-common-languages-terms

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider to the array of providers in config/app.php:, (*3)

// config/app.php

'provider' => [
    //...
    Axn\LaravelCommonLanguagesTerms\ServiceProvider::class,
    //...
];

Usage

You can access to the translations of this package in this way:, (*4)

trans('common::{file}.{key}')

Where "{file}" is the translation file name and where "{key}" is the key in that file., (*5)

Look in the files in the "terms" directory of the package to better understand.., (*6)

For example, for the delete action:, (*7)

trans('common::action.delete')

Or for the title of a button "back to the list":, (*8)

trans('common::back.list')

The Versions

25/07 2018

dev-master

9999999-dev https://github.com/AXN-Informatique/laravel-common-languages-terms

Provides a set of common language terms for Laravel.

  Sources   Download

MIT

The Requires

 

by AXN Informatique