gettext/json
最新稳定版本:v1.0.1
Composer 安装命令:
composer require gettext/json
包简介
Json format for gettext
README 文档
README
Created by Oscar Otero http://oscarotero.com oom@oscarotero.com (MIT License)
Json loader and generator to use with gettext/gettext
Installation
composer require gettext/json
Usage example
use Gettext\Loader\PoLoader; use Gettext\Loader\JsonLoader; use Gettext\Generator\JsonGenerator; use Gettext\Translations; //Load a .po file and export to .json $translations = (new PoLoader())->loadFile('locales/translations.po'); (new JsonGenerator())->generateFile($translations, 'locales/translations.json'); //You can load the json file with JsonLoader $loadedTranslations = (new JsonLoader())->loadFile('locales/translations.json');
Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.
统计信息
- 总下载量: 151.65k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-02