2017 © Pedro Peláez
 

library laravel-artisan-translations

An artisan command to update json translation files.

image

typidesign/laravel-artisan-translations

An artisan command to update json translation files.

  • Friday, June 2, 2017
  • by sdebacker@gmail.com
  • Repository
  • 3 Watchers
  • 2 Stars
  • 1,596 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 27 % Grown

The README.md

Manage translations in json files.

StyleCI, (*1)

This package gives you an artisan command to manage translations in Laravel 5.4+ json files., (*2)

Installation

You can install the package via composer:, (*3)

composer require typidesign/laravel-artisan-translations

Now add the service provider in config/app.php file:, (*4)

'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., (*5)

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, (*6)

Overwrite translations

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

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, (*8)

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

Changelog

Please see CHANGELOG for more information what has changed recently., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Security

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

Credits

About Typi Design

Typi Design is a webdesign agency based in Brussels, Belgium., (*12)

License

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

The Versions

02/06 2017

dev-master

9999999-dev https://github.com/typidesign/laravel-artisan-translations

An artisan command to update json translation files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

typidesign laravel-artisan-translations

02/06 2017

1.0.2

1.0.2.0 https://github.com/typidesign/laravel-artisan-translations

An artisan command to update json translation files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

typidesign laravel-artisan-translations

01/06 2017

1.0.1

1.0.1.0 https://github.com/typidesign/laravel-artisan-translations

An artisan command to update json translation files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

typidesign laravel-artisan-translations

01/06 2017

1.0.0

1.0.0.0 https://github.com/typidesign/laravel-artisan-translations

An artisan command to update json translation files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

typidesign laravel-artisan-translations