PHPackages                             sdlab/laravel-translation-files-generator - 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. sdlab/laravel-translation-files-generator

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

sdlab/laravel-translation-files-generator
=========================================

Create translation json files containing all project needed translations

1991PHP

Since May 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sebastien-derrey/laravel-translation-generator)[ Packagist](https://packagist.org/packages/sdlab/laravel-translation-files-generator)[ RSS](/packages/sdlab-laravel-translation-files-generator/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel translation files generator
===================================

[](#laravel-translation-files-generator)

Very simple command which generate missing keys in translation files. Parse blade, and laravel files. Compatible with laravel 6.x and 7.x.

*Note*: `grep` command must be available. It is used to search translations in files.

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

[](#installation)

```
composer require --dev sdlab/laravel-translation-files-generator

```

Usage
-----

[](#usage)

```
php artisan translation:generate-files --locale=fr --locale=en --origin=fr

```

The command will parse all the translation function calls from blade and php files, and add the missing one in the specified files transations files.

- locale: each locale specified will create associated translation file
- origin: will fill the value also for the specified language. Useful when the expressions used in code are already translated in one language

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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/1822392?v=4)[sdlab](/maintainers/sdlab)[@sdlab](https://github.com/sdlab)

### Embed Badge

![Health badge](/badges/sdlab-laravel-translation-files-generator/health.svg)

```
[![Health](https://phpackages.com/badges/sdlab-laravel-translation-files-generator/health.svg)](https://phpackages.com/packages/sdlab-laravel-translation-files-generator)
```

###  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.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

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