mordisacks/laravel-i18n

I18n Wrapper for Laravel 5.
25 3
Install
composer require mordisacks/laravel-i18n
Latest Version:2.1.0
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:May 24, 2020
Links: GitHub  ·  Packagist
Maintainer: MordiSacks

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

Related Packages

blok/i18n

A i18n opiniated package for Laravel

1,831 0
empuxa/laravel-locale-via-api

Easily provide your lang files via API.

9,355 0
cosninix/sin

Simple internationalization for Laravel

2,851 0
illuminate3/kotoba

Baseline language files for Laravel 5

719 0
illuminate3/lingos

Baseline language files for Laravel4

150 5

Version History

Version Released PHP Laravel License
2.1.0 >=5.4.0 5.4.* MIT
2.0.0 >=5.4.0 5.2.* MIT
1.1.0 >=5.4.0 5.0.x|5.1.x|5.2.x MIT
1.0.4 >=5.4.0 5.0.x|5.1.x|5.2.x MIT
1.0.3 >=5.4.0 5.0.x|5.1.x|5.2.x MIT