e2tmk / langfy
This is my package langfy
Fund package maintenance!
langfy
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- livewire/livewire: ^3.6
- nwidart/laravel-modules: ^12.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.8
- prism-php/prism: ^0.78.0
- rector/rector: ^2.1
This package is auto-updated.
Last update: 2025-06-27 18:37:21 UTC
README
Langfy
A powerful Laravel package that automates the discovery, organization, and translation of internationalization strings using Artificial Intelligence.
Langfy simplifies the internationalization process for your Laravel projects by automatically finding translatable strings in your code, organizing them into JSON files, and translating them to multiple languages using modern AI. With a fluent and intuitive API, Langfy makes translation management a simple and efficient task.
Installation
You can install the package via Composer:
composer require e2tmk/langfy --dev
Features
- π Smart String Discovery: Automatically finds translatable strings in your Laravel application and modules
- π§ AI-Powered Translation: Uses modern AI models to translate strings with context awareness
- π Organized Output: Saves translations in structured JSON files for easy management
- π Fluent API: Chainable methods for clean and readable code
- π― Multiple Contexts: Support for application-wide and module-specific translations
- β‘ Progress Tracking: Built-in progress callbacks for long-running operations
- ποΈ Flexible Configuration: Customizable paths, patterns, and AI provider settings
- οΏ½ Batch Processing: Efficient chunk-based translation with retry mechanisms
Documentation
License
The project is licensed under the MIT License.