PHPackages                             vagkaefer/laravel-simplified-translation-manager - 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. vagkaefer/laravel-simplified-translation-manager

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

vagkaefer/laravel-simplified-translation-manager
================================================

A laravel package to manage Laravel translations

12.0(1y ago)2117MITPHPPHP ^8.0CI failing

Since Jun 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vagkaefer/laravel-simplified-translation-manager)[ Packagist](https://packagist.org/packages/vagkaefer/laravel-simplified-translation-manager)[ RSS](/packages/vagkaefer-laravel-simplified-translation-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

Laravel Simplified Translation Manager
======================================

[](#laravel-simplified-translation-manager)

Laravel offers a robust solution for managing multiple languages. However, as the project scales, incorporating numerous languages and developers, managing translations can become intricate, leading to occasional lapses in translations variables across files.

The solution to this issue lies within this package. It mandates that developers add new translation variables solely in English (en) language. Once this is done, the package takes over, processing all languages and making appropriate adjustments to all variables. This streamlines the translation process and ensures consistency across all language files.

In addition, there are also additional settings, such as adding Suffixes or Prefixes to variables without translation, to help identify them.

Working process
===============

[](#working-process)

The package will do this:

- Create a backup of the current lang/ folder
- Get the languages of the system (folders of lang/)
- Sort keys alphabetically of the templates files inside en/ folder
- Merge all keys of English base with anothers languages
    - If the file doesn't exist, the package will create automaticaly
    - If the destiny file contains translated keys, they will not be changed
    - The new keys will receive a prefix or/and suffix (see config)
    - All keys will be sorted alphabetically

Version Control
===============

[](#version-control)

The version of the package is related with the Laravel Version:

**Package Version****Laravel version**v10v10How to Install
==============

[](#how-to-install)

The installation is made via composer in your Laravel project:

```
php composer require vagkaefer/laravel-simplified-translation-manager --dev

```

How to Configure
================

[](#how-to-configure)

You can define the options with the config file or via Environment variables:

The ENV variables are:

```
SIM_TRANS_MANAGER_PREFIX=
SIM_TRANS_MANAGER_SUFFIX=" - NEED TRANSLATION"
SIM_TRANS_MANAGER_ALPHABETIZE_ENGLISH=true
SIM_TRANS_MANAGER_ALPHABETIZE_OUTPUT=true
SIM_TRANS_MANAGER_BACKUP=true

```

To publish the config file using the command:

```
php artisan vendor:publish --provider=VagKaefer\\LaravelSimplifiedTranslationManager\\ManagerServiceProvider

```

The options are:

- **prefix**: (string) When a new translation word is detected, the prefix string is added in the beginning of the translation value
- **suffix**: (string) When a new translation word is detected, the suffix string is added to the end of the translation value
- **alphabetize\_english**: (boolean - default true) This option will sort alphabetically all the keys of the English files
- **alphabetize\_output\_files**: (boolean - default true) This option will sort alphabetically all the keys of the merged files with the languages
- **backup\_original\_files**: (boolean - default true) This option will generate a .zip backup before every run, the zip can be found in the folder /lang/backups/

How to use
==========

[](#how-to-use)

Write all the variables in the English (lang/en) templates, **always include new variables in English**.

Now you just need to run the process command:

```
php artisan sim-trans-manager:process

```

You will see the Output:

```
php artisan sim-trans-manager:process

Creating backup...backup generated in ./lang/backups/1686168359-lang-backup.zip
Sorting alphabetically english files:
	File lang/en/auth.php sorted alphabetically
	File lang/en/global.php sorted alphabetically
	File lang/en/pagination.php sorted alphabetically
	File lang/en/passwords.php sorted alphabetically
	File lang/en/validation.php sorted alphabetically
Mergin with language 'pt_BR'
	File lang/en/auth.php merged with lang/pt_BR/auth.php
	File lang/en/global.php merged with lang/pt_BR/global.php
	File lang/en/pagination.php merged with lang/pt_BR/pagination.php
	File lang/en/passwords.php merged with lang/pt_BR/passwords.php
	File lang/en/validation.php merged with lang/pt_BR/validation.php
Mergin with language 'es'
	File lang/en/auth.php merged with lang/es/auth.php
	File lang/en/global.php merged with lang/es/global.php
	File lang/en/pagination.php merged with lang/es/pagination.php
	File lang/en/passwords.php merged with lang/es/passwords.php
	File lang/en/validation.php merged with lang/es/validation.php

```

Do you like the package?
========================

[](#do-you-like-the-package)

You can help me with a coffee ;D

[ ![Buy Me A Coffee](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/vagkaefer)License
-------

[](#license)

As Laravel framework, this packages is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance45

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~159 days

Total

5

Last Release

432d ago

Major Versions

v9.x-dev → 11.02025-03-07

11.0 → 12.02025-03-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e726db9f91cbc1132a44a79ef44f93d45045fe9b8dc937c94c59467b9ccf204?d=identicon)[vagkaefer](/maintainers/vagkaefer)

---

Top Contributors

[![vagkaefer](https://avatars.githubusercontent.com/u/7691920?v=4)](https://github.com/vagkaefer "vagkaefer (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vagkaefer-laravel-simplified-translation-manager/health.svg)

```
[![Health](https://phpackages.com/badges/vagkaefer-laravel-simplified-translation-manager/health.svg)](https://phpackages.com/packages/vagkaefer-laravel-simplified-translation-manager)
```

###  Alternatives

[mcamara/laravel-localization

Easy localization for Laravel

3.5k9.1M112](/packages/mcamara-laravel-localization)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.3k](/packages/typicms-base)[vemcogroup/laravel-translation

Translation package for Laravel to scan for localisations and up/download to poeditor

135304.0k2](/packages/vemcogroup-laravel-translation)

PHPackages © 2026

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