syntafin/laravel-i18n-exporter
最新稳定版本:v1.0.4
Composer 安装命令:
composer require syntafin/laravel-i18n-exporter
包简介
This package provides a command to easily convert the Laravel language files into JSON to be used by your frontend application.
README 文档
README
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!
统计信息
- 总下载量: 161
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-22