zsnakeee/lang-pilot

A powerful and intuitive Laravel package for managing translations and localization. Lang Pilot simplifies the process of extracting, organizing, and managing language keys across your application, offering seamless integration with various translation drivers. Whether you're localizing a small proj

1.0.0 2025-01-10 21:52 UTC

This package is auto-updated.

Last update: 2025-06-10 23:30:42 UTC


README

Lang Pilot

Lang Pilot allows you to translate your app into any language depending on your description using AI.

Installation

Requires PHP 8.0+

Require LangPilot using Composer:

composer require zsnakeee/lang-pilot

Add GEMINI_API_KEY to your .env file:

GEMINI_API_KEY=your-api-key

Config

You can publish the config file with:

php artisan vendor:publish --tag=lang-pilot-config

Usage

Missing translations

Show missing translations for a specific locale:

php artisan lang-pilot:missing {locale}
php artisan lang-pilot:missing ar

Translate missing translations

Translate missing translations for a specific locale:

php artisan lang-pilot:translate {locale}
php artisan lang-pilot:translate ar

Testing

composer test

License

Lang Pilot is open-sourced software licensed under the [MIT license](LICENSE.md).

Support

If you encounter any issues or have questions, feel free to open an issue on GitHub.