Skip to content

hyperlinkgroup/linguist-package

Repository files navigation

Linguist Connector for Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A package to help you download your language files from Linguist — A better way to manage you language files.

linguist-package-header

Installation

You can install the package via composer:

composer require hyperlinkgroup/linguist

You can publish the config file with:

php artisan vendor:publish --tag="linguist-config"

This is the contents of the published config file:

return [
	/*
	 |--------------------------------------------------------------------------
	 | Linguist API URL
	 |--------------------------------------------------------------------------
	 */
	'url' => env('LINGUIST_URL', 'https://api.linguist.eu/'),

	/*
	 |--------------------------------------------------------------------------
	 | Linguist Project Slug
	 |--------------------------------------------------------------------------
	 */
	'project' => env('LINGUIST_PROJECT', ''),

	/*
	 |--------------------------------------------------------------------------
	 | Linguist API Token
	 |--------------------------------------------------------------------------
	 */
	'token' => env('LINGUIST_TOKEN', ''),

	/*
	 |--------------------------------------------------------------------------
	 | Temporary Directory for Translations while processing
	 |--------------------------------------------------------------------------
	 */
	'temporary_directory' => 'tmp/translations',
];

Usage

\Hyperlinkgroup\Linguist\Linguist::handle();

Testing

composer test

License

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

About

Linguist Connector for Laravel

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages