syntafin/laravel-i18n-exporter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Discord XMPP Email me License

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-22