定制 skolodyazhnyy/onesky-downloader 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

skolodyazhnyy/onesky-downloader

最新稳定版本:1.0.1

Composer 安装命令:

composer require skolodyazhnyy/onesky-downloader

包简介

Onesky Translations downloader

README 文档

README

A tiny console application that allows you to download dictionaries created with Onesky.

Usage

Set Onesky API key, secret and project ID in environment variables:

export ONESKY_APIKEY=...
export ONESKY_APISECRET=...
export ONESKY_PROJECT=999

Run downloader to get your translation files

onesky download
# will create a file  for every sourcefile-locale combination

Available options

  • -l - locale code to download, can be specified multiple times
  • -s - source file to download
  • -o - output filename pattern, by default: [filename].[locale].[extension]

More use cases

Download a single source file

onesky download -s messages.xliff 
# will create messages.[locale].xliff for every locale

Download a single file for specific locales

onesky download -s messages.xliff -l en -l es
# will create messages.en.xliff and messages.es.xliff

Download a file to specific location

onesky download -s messages.xliff -l en -o app/Resources/translations/messages.en.xlf
# will create app/Resources/translations/messages.en.xlf with english translations

Download multiple locales to specific location

onesky download -s messages.xliff -l en -o app/Resources/translations/messages.[locale].xlf
# will create app/Resources/translations/messages.[locale].xlf for every available locale

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-15