georgii-web/crowdin-api

PHP实现的Crowdin API

3.0.1 2021-05-07 14:13 UTC

This package is auto-updated.

Last update: 2024-09-07 21:53:35 UTC


README

构建状态 Scrutinizer 代码质量 代码覆盖率 报告 SensioLabsInsight 最新稳定版本 WTFPL

https://github.com/akeneo/php-crowdin-api启发

安装

composer require georgii-web/crowdin-api

使用

use ElKuKu\Crowdin\Crowdin;
use ElKuKu\Crowdin\Languagefile;

$crowdin = new Crowdin('{project-id}', '{api-key}');

// Add new translation file
$crowdin->file->add(new Languagefile('{local path}', '{crowdin path}'));

// Export a translated file
$crowdin->file->export('{crowdin path}', '{language}', '{local path}');

// Delete a translation file
$crowdin->file->delete('{crowdin path}');

// Export (build) translation files on Crowdin
$crowdin->translation->export();

// Download a zip file containing all language files
$crowdin->translation->download('all.zip', '/local/path/to/package.zip');

注意: 包含流畅的自动完成和许多来自官方API文档的doc块。

... 以便在您的IDE中使用,使生活变得简单 😉

Auto complete

Documentation

方法

API 文档

项目

目录

文件

翻译

语言

内存

术语库

hF

=;)