PHPackages                             kinoritech/lost-in-translation - 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. kinoritech/lost-in-translation

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

kinoritech/lost-in-translation
==============================

This scans your laravel project for used locale keys that aren't translated by your locale files.

1.0.1(3y ago)2346MITPHPPHP &gt;=8.0

Since Aug 16Pushed 3y agoCompare

[ Source](https://github.com/KinoriTech/lost-in-translation)[ Packagist](https://packagist.org/packages/kinoritech/lost-in-translation)[ Docs](https://github.com/KinoriTech/lost-in-translation)[ RSS](/packages/kinoritech-lost-in-translation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Translation helpers for Laravel
===============================

[](#translation-helpers-for-laravel)

---

This package provides you with an analysis of the translation keys used in your Laravel application. The analysis helps identify missing and unused keys.

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

[](#installation)

```
composer require kinoritech/lost-in-translation --dev
```

Replace the Laravel Translator
------------------------------

[](#replace-the-laravel-translator)

1. Comment/remove the laravel TranslationServiceProvider
2. Add the one provided by this package.

```
// config/app.php

'providers' => [
	...
	Illuminate\Session\SessionServiceProvider::class,
    //Illuminate\Translation\TranslationServiceProvider::class,
	...
	/*
     * Package Service Providers...
    */
    \KinoriTech\LostInTranslation\Providers\ServiceProvider::class,
    ...
],
```

Usage
-----

[](#usage)

From the command line, run `php artisan locale:scan` to get the result of missing and unused translations.

```
$ php artisan locale:scan
Preparing files
Looking in /git/lost-in-translation-wrapper/app and git/lost-in-translation-wrapper/resources
Searching translationkeys in 51 files
 51/51 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
Found 23 translations.
There are missing translations.
+----------------------------------------------+-------+-----------+---------+
| Key                                          | Group | Namespace | Missing |
+----------------------------------------------+-------+-----------+---------+
| failed                                       | auth  | *         | fr      |
| throttle                                     | auth  | *         | fr      |
| password                                     | auth  | *         | fr      |
| Email                                        | *     | *         | es, fr  |
| Password                                     | *     | *         | es, fr  |
| Confirm Password                             | *     | *         | es, fr  |
| Reset Password                               | *     | *         | es, fr  |
| Name                                         | *     | *         | es, fr  |
| Already registered?                          | *     | *         | es, fr  |
| Register                                     | *     | *         | es      |
| This is a secure area of the application     | *     | *         | es, fr  |
| Confirm                                      | *     | *         | es, fr  |
| Forgot your password? No problem             | *     | *         | es, fr  |
| Email Password Reset Link                    | *     | *         | es, fr  |
| Thanks for signing up! Before getting st ... | *     | *         | es, fr  |
| A new verification link has been sent to ... | *     | *         | es, fr  |
| Resend Verification Email                    | *     | *         | es, fr  |
| Log Out                                      | *     | *         | es, fr  |
| Remember me                                  | *     | *         | es, fr  |
| Forgot your password?                        | *     | *         | es, fr  |
| Log in                                       | *     | *         | es, fr  |
| Whoops! Something went wrong                 | *     | *         | es, fr  |
| Dashboard                                    | *     | *         | es, fr  |
+----------------------------------------------+-------+-----------+---------+
There are unused translations.
*.*.I love programming.
*.auth.invalid
```

The `--table` (`-T`) option can be passed to get the complete list of keys:

```
$ php artisan locale:scan -T
Preparing files
Looking in git/lost-in-translation-wrapper/app and git/lost-in-translation-wrapper/resources
Searching translationkeys in 51 files
 51/51 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
Found 23 translations.
+----------------------------------------------+-------+-----------+----+----+----+------------------------------------------------------------------------------------------------------------+
| Key                                          | Group | Namespace | en | es | fr | File                                                                                                       |
+----------------------------------------------+-------+-----------+----+----+----+------------------------------------------------------------------------------------------------------------+
| failed                                       | auth  | *         | ✔  | ✔  | —  | /Users/horacio/git/lost-in-translation-wrapper/app/Http/Requests/Auth/LoginRequest.php                     |
| throttle                                     | auth  | *         | ✔  | ✔  | —  | /Users/horacio/git/lost-in-translation-wrapper/app/Http/Requests/Auth/LoginRequest.php                     |
| password                                     | auth  | *         | ✔  | ✔  | —  | /Users/horacio/git/lost-in-translation-wrapper/app/Http/Controllers/Auth/ConfirmablePasswordController.php |
| Email                                        | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/login.blade.php                        |
| Password                                     | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/login.blade.php                        |
| Confirm Password                             | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/register.blade.php                     |
| Reset Password                               | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/reset-password.blade.php               |
| Name                                         | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/register.blade.php                     |
| Already registered?                          | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/register.blade.php                     |
| Register                                     | *     | *         | ✔  | —  | ✔  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/register.blade.php                     |
| This is a secure area of the application     | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/confirm-password.blade.php             |
| Confirm                                      | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/confirm-password.blade.php             |
| Forgot your password? No problem             | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/forgot-password.blade.php              |
| Email Password Reset Link                    | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/forgot-password.blade.php              |
| Thanks for signing up! Before getting st ... | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/verify-email.blade.php                 |
| A new verification link has been sent to ... | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/verify-email.blade.php                 |
| Resend Verification Email                    | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/verify-email.blade.php                 |
| Log Out                                      | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/layouts/navigation.blade.php                |
| Remember me                                  | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/login.blade.php                        |
| Forgot your password?                        | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/login.blade.php                        |
| Log in                                       | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/auth/login.blade.php                        |
| Whoops! Something went wrong                 | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/components/auth-validation-errors.blade.php |
| Dashboard                                    | *     | *         | ✔  | —  | —  | /Users/horacio/git/lost-in-translation-wrapper/resources/views/layouts/navigation.blade.php                |
+----------------------------------------------+-------+-----------+----+----+----+------------------------------------------------------------------------------------------------------------+

...
```

CI / Automated builds
---------------------

[](#ci--automated-builds)

The command returns an error exit code (1) if there are missing translations. This can be used in CI or automated builds to stop the build.

Another use would be as a pre-commit or pre-push hook to prevent missing translations to be committed.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.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 ~0 days

Total

2

Last Release

1364d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7fb707167b15d214e668184364f7683162cf86684bab1991913a4c4131cb6be?d=identicon)[h.hoyos](/maintainers/h.hoyos)

---

Top Contributors

[![aXent](https://avatars.githubusercontent.com/u/506956?v=4)](https://github.com/aXent "aXent (5 commits)")[![arcanefoam](https://avatars.githubusercontent.com/u/2157165?v=4)](https://github.com/arcanefoam "arcanefoam (4 commits)")

---

Tags

translationartisanlocalecommandanalyze

### Embed Badge

![Health badge](/badges/kinoritech-lost-in-translation/health.svg)

```
[![Health](https://phpackages.com/badges/kinoritech-lost-in-translation/health.svg)](https://phpackages.com/packages/kinoritech-lost-in-translation)
```

###  Alternatives

[fightbulc/moment

Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js

9693.2M10](/packages/fightbulc-moment)[robinfranssen/analyzelocale

This scans your laravel project for used locale keys that aren't translated by your locale files.

2520.7k](/packages/robinfranssen-analyzelocale)[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[laravel-lang/locales

Basic functionality for working with localizations

134.5M12](/packages/laravel-lang-locales)[skillshare/formatphp

Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

8029.6k](/packages/skillshare-formatphp)

PHPackages © 2026

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