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 today

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 12% 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

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[devaslanphp/auto-translate

Auto generate translation JSON files

6627.3k](/packages/devaslanphp-auto-translate)

PHPackages © 2026

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