PHPackages                             anavel/translation - 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. anavel/translation

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

anavel/translation
==================

Manage laravel translation files from your admin panel

3371[4 issues](https://github.com/anavel/translation/issues)PHP

Since Jun 17Pushed 10y ago7 watchersCompare

[ Source](https://github.com/anavel/translation)[ Packagist](https://packagist.org/packages/anavel/translation)[ RSS](/packages/anavel-translation/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Anavel translation [![Build Status](https://camo.githubusercontent.com/5d36697e8118876c5a5125ddf1ff6e5d7d018591233214bf4934fd0141ee7666/68747470733a2f2f7472617669732d63692e6f72672f616e6176656c2f7472616e736c6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/anavel/translation) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/c313249696ea2889fb1487ac15c37bba920a5c3d78978159eb9d718ae41d1122/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e6176656c2f7472616e736c6174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/anavel/translation/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/7730bf0f2af3ea8ae5ec1af7f38342e01763a37bb23dc6232d78b83aacbea4a9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e6176656c2f7472616e736c6174696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/anavel/translation/?branch=master) [![StyleCI](https://camo.githubusercontent.com/06e92d482912a892831df9ba0a6a484c15f506b033a4208b5eb5a625ba68d8c8/68747470733a2f2f7374796c6563692e696f2f7265706f732f34373139353937342f736869656c64)](https://styleci.io/repos/47195974)
=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#anavel-translation----)

Manage laravel translation files from your admin panel. This package depends on [Anavel foundation](https://github.com/anavel/foundation)

### Features

[](#features)

- Easily manage app and vendor translation files.
- Automatically reorders translations (alphabetically)
- Easily create new language lines
- Arrays supported

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

[](#installation)

Configuration
-------------

[](#configuration)

Publish translation config file with `php artisan vendor:publish`

Include the files you want to manage within the `files` array, like this:

```
    /*
    |--------------------------------------------------------------------------
    | Files to translate
    |--------------------------------------------------------------------------
    |
    */
    'files' => [
        'user'   => [
            'aFileName',
            'anotherFileName'
        ],
        'vendor' => [
            'vendorname' => 'vendorFileName'
        ]
    ],

```

`user` is an array of filenames (without extension) located in Laravel's default folder (resources/lang/LOCALE\_NAME). `vendor` is an associative array of filenames (without extension), keyed by vendorname, located in Laravel's default folder (resources/lang/vendor/VENDORNAME/LOCALE\_NAME).

This package will read and then write those files, so your app must have write permissions to those folders. You must specify a disc driver for Laravel to use:

config/anavel-translation.php:

```
    /*
    |--------------------------------------------------------------------------
    | File Disc Driver
    |--------------------------------------------------------------------------
    |
    | Disc driver pointing to resources/lang folder
    |
    */
    'filedriver'  => 'YOUR_DRIVER_NAME',

```

config/filesystem.php:

```
    'disks' => [
        [SOME OTHER FILE DRIVERS ],
        'YOUR_DRIVER_NAME' => [
            'driver' => 'local',
            'root'   => base_path('resources/lang'),
        ],
    ]

```

Versioning
----------

[](#versioning)

If you use a versioning system (such as git) you should add the language folder to your gitignore. Otherwise, you might get conflicts if different users update the translations.

How it works
------------

[](#how-it-works)

Translations reads the files that you specify in the config and displays their content in a form, tabbed by locale. The translation key becomes the input label and the translation itself becomes the input value. Locales are taken from the Anavel foundation config.

To make the translation process easier, Translation shows the same language entries in all locales, even if a key is missing in a given locale. In that case, the displayed text will be taken from the fallback locale (as Laravel does).

When saved, translations are written back to the files. If a file doesn't exist in a locale, a new one is created.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

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://avatars.githubusercontent.com/u/644546?v=4)[A navalla suíza](/maintainers/anavallasuiza)[@anavallasuiza](https://github.com/anavallasuiza)

---

Top Contributors

[![ablunier](https://avatars.githubusercontent.com/u/4113587?v=4)](https://github.com/ablunier "ablunier (2 commits)")[![cmoralesweb](https://avatars.githubusercontent.com/u/5377322?v=4)](https://github.com/cmoralesweb "cmoralesweb (1 commits)")

### Embed Badge

![Health badge](/badges/anavel-translation/health.svg)

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

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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