swiftyper/laravel-fbt-sync

Laravel 的 fbt 框架翻译自动部署扩展

1.0.2 2023-06-15 15:11 UTC

This package is auto-updated.

Last update: 2024-09-25 20:10:54 UTC


README

FBT

Laravel FBT 同步

此库允许您导入原生短语并自动部署已审查的翻译。

开始使用 Swiftyper 翻译

需求

  • FBT 包
  • PHP 7.0 或更高版本
  • Laravel 5.5 或更高版本
  • 安装需要 Composer

📦 安装

$ composer require swiftyper/laravel-fbt-sync

🔧 配置

以下步骤是必需的

  1. Swiftyper Translations 上注册您的 FBT 项目

  2. 发布配置文件

$ php artisan vendor:publish --provider="Swiftyper\fbt\IntlServiceProvider" --tag=swiftyper-config
  1. 在 /config/fbt.php 中设置 api_key 选项。

  2. 初始化项目设置

$ php artisan swiftyper:fbt --init

选项

以下选项可以定义

  • api_key string:项目 API 密钥(必需)
  • routes bool:启用路由:/intl/deploy/intl/upload/intl/sync
  • verify_signature bool:验证响应签名

🚀 Artisan 命令

php artisan swiftyper:fbt

选项

📜 许可证

MIT 许可证(MIT)。有关更多信息,请参阅 LICENSE