Download the PHP package vwinck-dev/laravel-translator without Composer
On this page you can find all versions of the php package vwinck-dev/laravel-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vwinck-dev/laravel-translator
More information about vwinck-dev/laravel-translator
Files in vwinck-dev/laravel-translator
Package laravel-translator
Short Description Translation files and localization utilities for Laravel.
License MIT
Informations about the package laravel-translator
Laravel Translator (WORK IN PROGRESS)
Translation files and localization utilities for Laravel - publish, manage and extend your app's translations with a single Artisan command.
Features
- Auto-discovery - zero configuration, works out of the box with Laravel's package system
- Artisan integration - publish and update translations via
lang:update - JSON-based - simple, human-readable translation files
- Multi-locale - grow your supported languages incrementally
- CI/CD ready - version-controlled translations that fit neatly into automated pipelines
Requirements
- PHP 8.1+
- Laravel ^10.x
Installation
The package registers itself automatically via Laravel's auto-discovery. No manual provider or alias registration needed.
Publishing Translations
To publish the translation files to your application's lang/ directory, run:
Alternatively, use the standard Artisan vendor publish command:
Available Locales
| Locale | Language | Status |
|---|---|---|
en |
English | ✅ |
pt_BR |
Portuguese (Brazil) | ✅ |
Want to add a new locale? See Contributing.
Project Structure
Each file is a flat JSON map of the original string to its translation - compatible with Laravel's __() and trans() helpers out of the box.
Usage
Use Laravel's built-in translation helpers anywhere in your application:
The corresponding pt_BR.json entry:
Roadmap
- [ ] Missing translation detection
- [ ] Translation diff command
- [ ] Vendor package translation support
- [ ] Remote synchronization
- [ ] Automatic merge support
- [ ] Per-locale installer commands
Contributing
Contributions, issues, and feature requests are welcome!
- Fork the repository
- Create a feature branch:
git checkout -b feat/your-locale - Commit your changes:
git commit -m 'feat: add fr locale' - Push and open a Pull Request
Please follow the existing file naming conventions and ensure your JSON is valid before submitting.
License
Distributed under the MIT License. © vwinck-dev