Looking to hire Laravel developers? Try LaraJobs

laravel-i18n-exporter maintained by syntafin

Description
This package provides a command to easily convert the Laravel language files into JSON to be used by your frontend application.
Author
Last update
2026/03/26 19:35 (dev-main)
License
Links
Downloads
1 275

Comments
comments powered by Disqus

Laravel i18n Exporter

A simple Laravel package to export your localization files into a JSON. Useful for translation workflows, localization auditing, or integrating with external translation platforms.


🚀 Features

  • Export your Laravel PHP Translation files into a single JSON
  • Easy to integrate with your current build and CI system
  • Optional: Run with artisan:optimize

📦 Installation

1. Add package via Composer

If you’re using this locally via path repository:

composer require syntafin/laravel-i18n-exporter

⚙️ Configuration

If you want to publish the config (optional):

php artisan vendor:publish --tag=i18n-exporter-config

🛠 Usage

Run the export command via Artisan:

# Generate JSON files
php artisan i18n:export
# Delete all JSON files
php artisan i18n:clear

This will scan your Laravel lang directory and export all translation keys into a singe JSON.

📝 You can customize the output path, file type, and other options via configuration or CLI options (coming soon).


🧪 Testing

TBD — unit tests coming soon.


💡 Credits

Developed by Syntafin 💙 Feel free to contribute, fork, or open an issue!