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)256498.9k↓24.8%24[7 issues](https://github.com/LarsWiegers/laravel-translations-checker/issues)[2 PRs](https://github.com/LarsWiegers/laravel-translations-checker/pulls)2MITPHPPHP ^7.4|^8.0|^8.1|^8.2CI failing

Since Feb 16Pushed 3d 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 3d 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

58

—

FairBetter than 98% of packages

Maintenance73

Regular maintenance activity

Popularity56

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

499d 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://avatars.githubusercontent.com/u/20204608?v=4)[Lars Wiegers](/maintainers/LarsWiegers)[@LarsWiegers](https://github.com/LarsWiegers)

---

Top Contributors

[![LarsWiegers](https://avatars.githubusercontent.com/u/20204608?v=4)](https://github.com/LarsWiegers "LarsWiegers (101 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)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (4 commits)")[![etibarrustam](https://avatars.githubusercontent.com/u/18634851?v=4)](https://github.com/etibarrustam "etibarrustam (4 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)")[![akinozgen](https://avatars.githubusercontent.com/u/9608963?v=4)](https://github.com/akinozgen "akinozgen (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

[illuminate/translation

The Illuminate Translation package.

6938.0M572](/packages/illuminate-translation)[erag/laravel-lang-sync-inertia

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

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

PHPackages © 2026

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