PHPackages                             larswiegers/laravel-translations-checker - 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. larswiegers/laravel-translations-checker

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

larswiegers/laravel-translations-checker
========================================

Make sure your laravel translations are checked and are included in all languages.

v0.9.3(1y ago)256423.2k↑29.6%20[1 issues](https://github.com/LarsWiegers/laravel-translations-checker/issues)[3 PRs](https://github.com/LarsWiegers/laravel-translations-checker/pulls)2MITPHPPHP ^7.4|^8.0|^8.1|^8.2CI failing

Since Feb 16Pushed 11mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (30)Used By (2)

Laravel translations checker
============================

[](#laravel-translations-checker)

[![Latest Version on Packagist](https://camo.githubusercontent.com/13b0e5e250fffb60665bf7aa71cc08316c4ea33329c7e0f45b03bed4c165ecd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c617273776965676572732f6c61726176656c2d7472616e736c6174696f6e732d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larswiegers/laravel-translations-checker)[![Total Downloads](https://camo.githubusercontent.com/048fa32ff3170b6d4108a739a98ab7ff0f1665254fb0ebaeed02bc191f25b30f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c617273776965676572732f6c61726176656c2d7472616e736c6174696f6e732d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larswiegers/laravel-translations-checker)[![GitHub Actions](https://github.com/larswiegers/laravel-translations-checker/actions/workflows/main.yml/badge.svg)](https://github.com/larswiegers/laravel-translations-checker/actions/workflows/main.yml/badge.svg)

[![Laravel translation checker](https://camo.githubusercontent.com/a841db7d8a4c0a5d78e718b21ff2e79ad30729c590abb2ac8b9a6d8962a88024/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532307472616e736c6174696f6e253230636865636b65722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6c617273776965676572732532466c61726176656c2d7472616e736c6174696f6e732d636865636b6572267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d5573652b7468652b6c61726176656c2b7472616e736c6174696f6e2b636865636b65722b616e642b6765742b6469726563742b666565646261636b2b77686572652b616e642b776861742b7472616e736c6174696f6e732b796f752b6172652b6d697373696e67253231266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d676c6f6265)](https://camo.githubusercontent.com/a841db7d8a4c0a5d78e718b21ff2e79ad30729c590abb2ac8b9a6d8962a88024/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532307472616e736c6174696f6e253230636865636b65722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6c617273776965676572732532466c61726176656c2d7472616e736c6174696f6e732d636865636b6572267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d5573652b7468652b6c61726176656c2b7472616e736c6174696f6e2b636865636b65722b616e642b6765742b6469726563742b666565646261636b2b77686572652b616e642b776861742b7472616e736c6174696f6e732b796f752b6172652b6d697373696e67253231266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d676c6f6265)

Ever feel that you are missing translations in some languages you support? Get users emailing you about weird strings on their screen?

Use the laravel translation checker and get direct feedback where and what translations you are missing!

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

[](#installation)

You can install the package via composer:

```
composer require --dev larswiegers/laravel-translations-checker
```

Usage
-----

[](#usage)

Use the command below, it is that easy!

```
php artisan translations:check
```

### Different directory

[](#different-directory)

Are your translations in a weird directory? use the --directory option like this:

```
php artisan translations:check --directory=resources/lang
```

### Exclude directories

[](#exclude-directories)

Some packages have their own language files, it is probably smart to exclude them.

```
php artisan translations:check --excludedDirectories=lang/vendor
```

This option is also available as configuration option 'excluded\_directories'.

For example:

```
    'excluded_directories' => ['lang/vendor'],
```

### Exclude languages

[](#exclude-languages)

This section provides instructions on how to exclude specific languages from being checked.

To exclude languages, follow these steps:

1. Open the project's configuration file.
2. Locate the `translation-checker` file.
3. Add the language codes of the languages you want to exclude to the `exclude_languages` field.

For example:

```
    exclude_languages = ["en", "fr", "es"]
```

### Exclude file types

[](#exclude-file-types)

1. Let's say you only want to run on the php or json files in your project than you can use the --excludedFileExtensions option like this:

```
php artisan translations:check --excludedFileExtensions=php
```

This option is also available as configuration option 'excluded\_file\_extensions'.

### JSON support

[](#json-support)

The package supports both .php files and .json files for the translations.

### Running in github actions?

[](#running-in-github-actions)

```
  translations:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.0'
          extensions: mbstring, intl
          ini-values: post_max_size=256M, max_execution_time=180
          coverage: xdebug
          tools: php-cs-fixer, phpunit
      - name: Install Dependencies
        run: composer install -q --no-interaction --no-scripts
      - name: Run translations check
        run: php artisan translations:check --excludedDirectories=vendor

```

### What does the output look like?

[](#what-does-the-output-look-like)

```
The language nl (resources/lang/nl) is missing the file ( passwords.php )
Missing the translation with key: nl.passwords.reset
Missing the translation with key: nl.passwords.sent
Missing the translation with key: nl.passwords.throttled
Missing the translation with key: nl.passwords.token
Missing the translation with key: nl.passwords.user

```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lars Wiegers](https://github.com/larswiegers)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance47

Moderate activity, may be stable

Popularity55

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 74.6% 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 ~98 days

Total

12

Last Release

452d ago

PHP version history (2 changes)v0.1PHP ^7.4|^8.0

v0.9PHP ^7.4|^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9905a3f80dd1dfb7b5e6d8930ba7fa6986738ff0575ad6f7aa3bc3937512af1f?d=identicon)[LarsWiegers](/maintainers/LarsWiegers)

---

Top Contributors

[![LarsWiegers](https://avatars.githubusercontent.com/u/20204608?v=4)](https://github.com/LarsWiegers "LarsWiegers (100 commits)")[![ordago](https://avatars.githubusercontent.com/u/6376814?v=4)](https://github.com/ordago "ordago (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![etibarrustam](https://avatars.githubusercontent.com/u/18634851?v=4)](https://github.com/etibarrustam "etibarrustam (4 commits)")[![akinozgen](https://avatars.githubusercontent.com/u/9608963?v=4)](https://github.com/akinozgen "akinozgen (2 commits)")[![cappuc](https://avatars.githubusercontent.com/u/4271608?v=4)](https://github.com/cappuc "cappuc (2 commits)")[![clifmo](https://avatars.githubusercontent.com/u/5718458?v=4)](https://github.com/clifmo "clifmo (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![SocolaDaiCa](https://avatars.githubusercontent.com/u/18243451?v=4)](https://github.com/SocolaDaiCa "SocolaDaiCa (1 commits)")[![gelbehexe](https://avatars.githubusercontent.com/u/11911831?v=4)](https://github.com/gelbehexe "gelbehexe (1 commits)")[![gomzyakov](https://avatars.githubusercontent.com/u/1460709?v=4)](https://github.com/gomzyakov "gomzyakov (1 commits)")

---

Tags

hacktoberfestlaravellaravel-packagetranslationslarswiegerslaravel-translations-checker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/larswiegers-laravel-translations-checker/health.svg)

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

###  Alternatives

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

109554.8k3](/packages/vluzrmos-language-detector)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)[highsolutions/laravel-translation-manager

Manage Laravel Translations

1518.8k](/packages/highsolutions-laravel-translation-manager)[amendozaaguiar/laraveles-spanish-for-jetstream

Archivos de traducción al español latinoamericano para Laravel con Jetstream (auth, pagination, passwords, validation + todas las cadenas de Jetstream).

1412.1k](/packages/amendozaaguiar-laraveles-spanish-for-jetstream)

PHPackages © 2026

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