Download the PHP package alaame/laravel-translations without Composer
On this page you can find all versions of the php package alaame/laravel-translations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alaame/laravel-translations
More information about alaame/laravel-translations
Files in alaame/laravel-translations
Download alaame/laravel-translations
More information about alaame/laravel-translations
Files in alaame/laravel-translations
Vendor alaame
Package laravel-translations
Short Description This package tends to add php and json translations to
License MIT
Package laravel-translations
Short Description This package tends to add php and json translations to
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-translations
laravel translations package
A tiny package that enables you to share translations in resources/lang folder with your frontend
Why to use
- Use
.json
translation files which has key,value pairs beside original.php
files. - Share all translations in
.json
and.php
files with frontend.
Requirements
- PHP 7.4 or higher.
Installation
- run
composer require alaame/laravel-translations
- publish config file
php artisan vendor:publish --provider="Alaame\LaravelTranslations\LaravelTranslationsServiceProvider"
usage
- Just add
@translations
directive in blade file where you want your frontend to read translations from, there will be available javascript variablewindow._translations
that you can use anywhere in your js files included AFTER this directive. - package will read any
.json
or.php
withinresources/lang
directory and make it available to frontend through@translations
directive . - If your config
supported-locales
contains a locale that not present or not created, package will create the folder automatically.
All versions of laravel-translations with dependencies
PHP Build Version
Package Version
No informations.
The package alaame/laravel-translations contains the following files
Loading the files please wait ....