承接 typidesign/laravel-artisan-translations 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

typidesign/laravel-artisan-translations

最新稳定版本:3.2

Composer 安装命令:

composer require typidesign/laravel-artisan-translations

包简介

An artisan command to update json translation files.

README 文档

README

StyleCI

This package gives you an artisan command to manage translations in Laravel 5.4+ json files.

Installation

You can install the package via composer:

composer require typidesign/laravel-artisan-translations

Now add the service provider in config/app.php file:

'providers' => [
    // ...
    Typidesign\Translations\ArtisanTranslationsServiceProvider::class,
];

Usage

Add translations from a single file

php artisan translations:add vendor/typicms/pages/src/lang/fr.json

Every translations present in this file will be added to /lang/fr.json.

Add translations from a directory

php artisan translations:add vendor/typicms/pages/src/lang

Every translations found in this directory will be added to /lang

Overwrite translations

By default, translation keys will not be overwritten. You can use the --force option to overwrite existing keys:

Remove translations

php artisan translations:remove vendor/typicms/pages/src/lang[/lg.json]

Every translations found in this file/directory will be removed from /lang

php artisan translations:add vendor/typicms/pages/src/lang --force

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email samuel@typidesign.be instead of using the issue tracker.

Credits

About Typi Design

Typi Design is a webdesign agency based in Brussels, Belgium.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 26.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-01