{"repo":"amiranagram/localizator","free":true,"listed":false,"github":"https://github.com/amiranagram/localizator","clone":"git clone https://github.com/amiranagram/localizator.git","description":"Scan your Laravel project and generate language files ready to translate in language(s) of choosing.","language":"PHP","stars":245,"topics":["laravel","php","laravel-package","i18n","locale","locales-translation"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Localizator Localizator is a small tool for Laravel that gives you the ability to extract untranslated string from your project files with one command. Support Compatibility Laravel Localizator --------- ------------- 6.x LTS 0.3-0.12 8.x 9.x ^0.8 10.x ^0.12 11.x ^0.13 12.x ^0.14 Installation You can install the package via composer: This package makes use of Laravels package auto-discovery mechanism, 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. - Add the following class to the providers array in config/app.php : If you want to manually load it only in non-production environments, instead you can add this to your AppServiceProvider with the register() method: 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: This is the contents of the published config file: Usage To extract all the strings, it's as simple as running: This command will create (if don't exist) de.json and fr.json files inside the resources/lang directory. If you have short keys enabled and used in your files (e.g. pagination.next ) the localize command will create folders de and fr inside resources/lang directo","default_branch":null,"files":null,"tree":[],"storefront":"/r/amiranagram","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/amiranagram/localizator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}