Looking to hire Laravel developers? Try LaraJobs

laravel-i18n maintained by mordisacks

Description
I18n Wrapper for Laravel 5.
Author
Mordi Sacks
Last update
2020/05/24 23:06 (dev-master)
License
Links
Downloads
25

Comments
comments powered by Disqus

I18n

This package is a Laravel wrapper for I18n

Installation

composer require mordisacks/laravel-i18n

After updating composer, add the service provider to the providers array in config/app.php

MordiSacks\LaravelI18n\I18nServiceProvider::class,

Usage

Set your default locale in app.php config

This package overrides blade @lang

So the following will work

<h1>@lang('Hello :name', 'default', ['name' => 'Mordi'])</h1>

Changelog 2.1.0

  • Updated to laravel 5.4