skolodyazhnyy/onesky-downloader

Onesky 翻译下载器

1.0.1 2015-03-15 23:03 UTC

This package is auto-updated.

Last update: 2024-09-12 20:16:32 UTC


README

这是一个小型控制台应用程序,允许您下载使用 Onesky 创建的词典。

使用方法

在环境变量中设置 Onesky API 密钥、密钥和项目 ID

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

运行下载器以获取您的翻译文件

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

可用选项

  • -l - 要下载的区域代码,可以指定多次
  • -s - 要下载的源文件
  • -o - 输出文件名模式,默认:[filename].[locale].[extension]

更多用例

下载单个源文件

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

为特定区域下载单个文件

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

将文件下载到特定位置

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

将多个区域下载到特定位置

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