PHPackages                             codebar-ag/laravel-translations - 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. codebar-ag/laravel-translations

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

codebar-ag/laravel-translations
===============================

Extract and manage Laravel translation keys from application source files.

v13.0(1mo ago)00MITPHPPHP 8.5.\*CI passing

Since Mar 19Pushed 1mo agoCompare

[ Source](https://github.com/codebar-ag/laravel-translations)[ Packagist](https://packagist.org/packages/codebar-ag/laravel-translations)[ Docs](https://github.com/codebarag/laravel-translations)[ RSS](/packages/codebar-ag-laravel-translations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (15)Versions (12)Used By (0)

Laravel Translations
====================

[](#laravel-translations)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cd657f00d416c9689e2cd1911d7a59a73333d6ecb8bca14e6cac7d48af229a33/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656261722d61672f6c61726176656c2d7472616e736c6174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebar-ag/laravel-translations)[![GitHub Tests](https://github.com/codebar-ag/larvel-translations/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/codebar-ag/larvel-translations/actions/workflows/run-tests.yml)[![GitHub Code Style](https://github.com/codebar-ag/larvel-translations/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/codebar-ag/larvel-translations/actions/workflows/fix-php-code-style-issues.yml)[![PHPStan](https://github.com/codebar-ag/larvel-translations/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/codebar-ag/larvel-translations/actions/workflows/phpstan.yml)[![Dependency Review](https://github.com/codebar-ag/larvel-translations/actions/workflows/dependency-review.yml/badge.svg?branch=main)](https://github.com/codebar-ag/larvel-translations/actions/workflows/dependency-review.yml)[![Total Downloads](https://camo.githubusercontent.com/30f883950bde6e780c776acebb57322e2e4d920813bd83a279e65b0cb41676f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656261722d61672f6c61726176656c2d7472616e736c6174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebar-ag/laravel-translations)

`laravel-translations` scans your application source files for `__()` translation keys and creates JSON language files. It also includes a conversion command that can replace path-based keys with their resolved inline text.

Requirements
------------

[](#requirements)

PackagePHPLaravelcurrent8.5.\*13.xInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require codebar-ag/laravel-translations
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-translations-config"
```

This is the contents of the published config file:

```
return [
    'pattern' => '/__\(\s*([\'"])(?(?:\\\\.|(?!\1).)*)\1/',
    'directories' => [
        'app',
        'resources',
    ],
];
```

`translations.directories` controls where the scanner looks for translation keys. Use relative paths from your Laravel project root.

Commands
--------

[](#commands)

```
# Build lang/{locale}.json from __() usage
php artisan translations:fetch de

# Overwrite without confirmation
php artisan translations:fetch de --force

# Convert path-based keys to inline text in configured directories
php artisan translations:convert

# Preview conversion changes only
php artisan translations:convert --dry-run
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Rhys Lees](https://github.com/CodebarAG)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance89

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~0 days

Total

4

Last Release

52d ago

PHP version history (2 changes)v13.0PHP 8.5.\*

v0.1.0PHP 8.4.\*||8.5.\*

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd1bbe54b79d041b513a286058b6fa0c479343f82147da3e63eefdf29c2fa6cb?d=identicon)[codebar](/maintainers/codebar)

---

Top Contributors

[![StanBarrows](https://avatars.githubusercontent.com/u/10268813?v=4)](https://github.com/StanBarrows "StanBarrows (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelpackagesphplaravellocalizationi18ntranslations

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/codebar-ag-laravel-translations/health.svg)

```
[![Health](https://phpackages.com/badges/codebar-ag-laravel-translations/health.svg)](https://phpackages.com/packages/codebar-ag-laravel-translations)
```

###  Alternatives

[outhebox/laravel-translations

Manage your Laravel translations with a beautiful UI. Add, edit, delete, import, and export translations with ease.

80687.6k](/packages/outhebox-laravel-translations)[vemcogroup/laravel-translation

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

135304.0k2](/packages/vemcogroup-laravel-translation)[andrewdwallo/transmatic

Automate and streamline real-time text translations in your Laravel applications

5511.6k](/packages/andrewdwallo-transmatic)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

3812.2k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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