Download the PHP package carlin/translation-laravel-sdk without Composer
On this page you can find all versions of the php package carlin/translation-laravel-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download carlin/translation-laravel-sdk
More information about carlin/translation-laravel-sdk
Files in carlin/translation-laravel-sdk
Download carlin/translation-laravel-sdk
More information about carlin/translation-laravel-sdk
Files in carlin/translation-laravel-sdk
Vendor carlin
Package translation-laravel-sdk
Short Description Laravel SDK for translation collection and package sync
License MIT
Package translation-laravel-sdk
Short Description Laravel SDK for translation collection and package sync
License MIT
Please rate this library. Is it a good library?
Informations about the package translation-laravel-sdk
translation-laravel-sdk
Laravel 翻译 SDK,支持以下能力:
- 主动采集:扫描代码中的翻译 key / 文本并批量上报
- 被动采集:运行时 miss 进入缓冲区并按批次 flush
- 翻译包同步:按 locale + cursor 增量拉取并写入本地缓存
安装
- 通过 Composer 引入包
- 发布配置:
命令
php artisan translation-sdk:collect-activephp artisan translation-sdk:flush-missingphp artisan translation-sdk:sync-package
sync-package 默认行为:
- 自动从网关读取目标 locale(
/interact/translation/sync-targets) - 按 locale 持久化 cursor 做增量同步
--full从 cursor0全量拉取--cursor可一次性覆盖起始 cursor(调试用,不写回持久 cursor)
运行时翻译
支持 Laravel 原生入口:
运行时流程:
- 先查 Laravel 本地 lang
- 未命中时查 SDK 同步缓存
- 仍未命中则上报被动采集并返回原始 key(保持 Laravel 行为)
测试
All versions of translation-laravel-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
guzzlehttp/guzzle Version ^7.0
illuminate/cache Version ^12.0
illuminate/console Version ^12.0
illuminate/http Version ^12.0
illuminate/redis Version ^12.0
illuminate/support Version ^12.0
illuminate/translation Version ^12.0
guzzlehttp/guzzle Version ^7.0
illuminate/cache Version ^12.0
illuminate/console Version ^12.0
illuminate/http Version ^12.0
illuminate/redis Version ^12.0
illuminate/support Version ^12.0
illuminate/translation Version ^12.0
The package carlin/translation-laravel-sdk contains the following files
Loading the files please wait ...