Package Data | |
---|---|
Maintainer Username: | axn |
Maintainer Contact: | developpement@axn.fr (AXN Informatique) |
Package Create Date: | 2016-11-16 |
Package Last Update: | 2023-02-21 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:06:44 |
Package Statistics | |
---|---|
Total Downloads: | 3,314 |
Monthly Downloads: | 11 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Provides a set of common language terms for Laravel.
Install through composer:
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
:
// config/app.php
'provider' => [
//...
Axn\LaravelCommonLanguagesTerms\ServiceProvider::class,
//...
];
You can access to the translations of this package in this way:
trans('common::{file}.{key}')
Where "{file}" is the translation file name and where "{key}" is the key in that file.
Look in the files in the "terms" directory of the package to better understand..
For example, for the delete action:
trans('common::action.delete')
Or for the title of a button "back to the list":
trans('common::back.list')