PHPackages                             nicolasbeauvais/lari18n - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. nicolasbeauvais/lari18n

AbandonedArchivedLibrary[Localization &amp; i18n](/categories/localization)

nicolasbeauvais/lari18n
=======================

A live internationalisation edition tool for laravel

213PHP

Since Jan 26Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nicolasbeauvais/lari18n)[ Packagist](https://packagist.org/packages/nicolasbeauvais/lari18n)[ RSS](/packages/nicolasbeauvais-lari18n/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Lari18n (Beta)
==============

[](#lari18n-beta)

> Translation made easy

**Lari18n provide an easy to use graphical interface to interact with each translated text.**

Description
-----------

[](#description)

Did you ever experienced the struggle of translating a website ? Well, maybe not, a PHP array is probably really easy to read for you !

But in most case the translation is made by non technical profile, like a proffessional translator. Unfortunately,a large portion of them do not know PHP array.

Sure, they can learn how it work, or you can generate some po files, but where is the context in that ?

```
return array(
	'previous' => '&laquo; Previous',
	'next'     => 'Next &raquo;',
);
```

What if we can gave them a tool to translate a whole website without touching any PHP file and with a full context of the translation ?

This is the goal of Lari18n

Demo
----

[](#demo)

###### Lari18n Toolbar

[](#lari18n-toolbar)

[![toolbar-demo](https://cloud.githubusercontent.com/assets/2951704/5892985/9524f12c-a4d4-11e4-89ba-d909b1cb0bc1.png)](https://cloud.githubusercontent.com/assets/2951704/5892985/9524f12c-a4d4-11e4-89ba-d909b1cb0bc1.png)

###### Lari18n translation overlay

[](#lari18n-translation-overlay)

[![overlay-demo](https://cloud.githubusercontent.com/assets/2951704/5892986/9527a8a4-a4d4-11e4-9bcc-8b7bbdab4088.png)](https://cloud.githubusercontent.com/assets/2951704/5892986/9527a8a4-a4d4-11e4-9bcc-8b7bbdab4088.png)

Installation
------------

[](#installation)

#### Composer

[](#composer)

To install Lari18n as a Composer package to be used with Laravel 4, simply add this to your composer.json:

```
  "nicolasbeauvais/lari18n": "dev-master"

```

### Publish

[](#publish)

To let your app use the front end ressource of Lari18n you need to publish them to your app using this artisan command for the assets

```
  php artisan asset:publish nicolasbeauvais/lari18n

```

and use this command for the views

```
  php artisan view:publish nicolasbeauvais/lari18n

```

#### Setup

[](#setup)

You should comment (or remove) the laravel translation service provider and use lari18n instead

```
  'providers' => array(
      // ...
      //'Illuminate\Translation\TranslationServiceProvider',
      // ...
      'Nicolasbeauvais\Lari18n\Lari18nServiceProvider'
  ),
```

Using Lari18n
-------------

[](#using-lari18n)

Lari18n help you to archieve a new translation process, for that you must use the native [laravel localization system](http://laravel.com/docs/4.2/localization), and your app base language (falback\_locale) translation files must be up to date.

To activate Lari18n you can use the activate method. For example in a filter for a specific role of your application.

```
\Nicolasbeauvais\Lari18n\Lari18n::activate();
```

Now, every time you use `trans()` or `Lang::get()` lari18n will be able to do some magic work.

\#####But how to choose which translation you want to perform ?

Lari18n use the `app.fallback_locale` as the **reference** language and the `app.locale` as the language to **translate**.

#### New Translation

[](#new-translation)

Lari18n is packed with a artisan command to help you in the translation process. This command create a new locale directory with all the translation files ready to be translated with Lari18n.

```
  php artisan lari18n:new [from_locale] [to_locale]

```

### Translation changes

[](#translation-changes)

You can watch your translations directory using gulp or grunt and apply the update command on file change

```
  php artisan lari18n:update

```

This command will update all other locales files with the additions made on the fallback locale files.

If you also want to remove the entry that doesn't exist in your fallback locale you can use the `remove` option

```
  php artisan lari18n:update --remove

```

License
-------

[](#license)

This Laravel package is open-sourced licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b6066ead65db8768cca2c6c5d2312e5f9af8e564ceb2971bb33e30d58bd280e?d=identicon)[nicolasbeauvais](/maintainers/nicolasbeauvais)

### Embed Badge

![Health badge](/badges/nicolasbeauvais-lari18n/health.svg)

```
[![Health](https://phpackages.com/badges/nicolasbeauvais-lari18n/health.svg)](https://phpackages.com/packages/nicolasbeauvais-lari18n)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
