hyperlinkgroup / linguist
A package to manage your translation files from Linguist
Installs: 11 060
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/hyperlinkgroup/linguist
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.2
- illuminate/contracts: ^10.0|^11.0|^12.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- hyperlinkgroup/pint: ^1.0
- larastan/larastan: ^2.0.1
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.5
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
README
A package to help you download your language files from Linguist — A better way to manage you language files.
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.
