PHPackages                             enricobono/localizator - 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. enricobono/localizator

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

enricobono/localizator
======================

Localizator is a small tool for Laravel that gives you the ability to extract untranslated strings from project files. It works using the artisan command line and the provided localize command.

v1.0.0(3y ago)0261MITPHPPHP ^7.2.5|^8.0

Since Nov 7Pushed 3y agoCompare

[ Source](https://github.com/enricobono/localizator)[ Packagist](https://packagist.org/packages/enricobono/localizator)[ Docs](https://github.com/amiranagram/localizator)[ Fund](https://m.do.co/c/f38828dd20f8)[ Fund](https://www.buymeacoffee.com/amirami/)[ RSS](/packages/enricobono-localizator/feed)WikiDiscussions 0.x Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (21)Used By (0)

Localizator
===========

[](#localizator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8e28c715af3be3a1187d0a5f4b6f4b291f13c00ae98fd649d0e2c33607e1549a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d6972616d692f6c6f63616c697a61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amirami/localizator)[![Total Downloads](https://camo.githubusercontent.com/76102fffbc2b5af5baa1773a5c8d5037f98b27e5fbcd032e4ac56b669efea35e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d6972616d692f6c6f63616c697a61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amirami/localizator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a49158b29776e9f91f539b33a6c49efb20a199cf66ba562532a63b8a67fab213/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616d6972616e616772616d2f6c6f63616c697a61746f722f74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/amiranagram/localizator/actions?query=workflow%3Atests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/486a29f149fe9914bb6568b3c39527a2caa0ec98f9e0401ed03f334d68a4097f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616d6972616e616772616d2f6c6f63616c697a61746f722f7068702d63732d66697865722e796d6c3f6c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/amiranagram/localizator/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)

Localizator is a small tool for Laravel that gives you the ability to extract untranslated string from your project files with one command.

Sponsors
--------

[](#sponsors)

[![locale_ad](art/locale_ad.png)](https://uselocale.com?utm_source=localizator&utm_medium=ad1)

Support
-------

[](#support)

[![Buy Me A Coffee](https://camo.githubusercontent.com/9a769e616ce78645bf51d12e4179cfbfd72fb413722b284e0be3ec3c75a86010/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f64656661756c742d6f72616e67652e706e67)](https://www.buymeacoffee.com/amirami)

[![DigitalOcean Referral Badge](https://camo.githubusercontent.com/25b250232449544e61388ce363181a79fe8d637f01a6649d4e25ea8a8a8cfaae/68747470733a2f2f7765622d706c6174666f726d732e73666f322e6469676974616c6f6365616e7370616365732e636f6d2f5757572f4261646765253230332e737667)](https://www.digitalocean.com/?refcode=f38828dd20f8&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)

Compatibility
-------------

[](#compatibility)

LaravelLocalizator6.x LTS^0.38.x\*9.x^0.810.x^0.12Installation
------------

[](#installation)

You can install the package via composer:

```
composer require --dev amirami/localizator
```

This package makes use of [Laravels package auto-discovery mechanism](https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518), which means if you don't install dev dependencies in production, it also won't be loaded.

If for some reason you want manually control this:

- add the package to the `extra.laravel.dont-discover` key in `composer.json`, e.g. ```
    "extra": {
      "laravel": {
        "dont-discover": [
          "amirami/localizator"
        ]
      }
    }
    ```
- Add the following class to the `providers` array in `config/app.php`: ```
    Amirami\Localizator\ServiceProvider::class,
    ```

    If you want to manually load it only in non-production environments, instead you can add this to your `AppServiceProvider` with the `register()` method: ```
    public function register()
    {
        if ($this->app->isLocal()) {
            $this->app->register(\Amirami\Localizator\ServiceProvider::class);
        }
        // ...
    }
    ```

> Note: Avoid caching the configuration in your development environment, it may cause issues after installing this package; respectively clear the cache beforehand via `php artisan cache:clear` if you encounter problems when running the commands

You can publish the config file with:

```
php artisan vendor:publish --provider="Amirami\Localizator\ServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
