macpaw / laravel-crowdin-integration
Automate translations uploading/downloading
Installs: 3 688
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 7
Forks: 4
Open Issues: 1
Requires
- php: ^7.1
- elkuku/crowdin-api: ^2.0
- laravel/framework: ^6.0.0
- zanysoft/laravel-zip: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: 2.14.*
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-08 22:22:00 UTC
README
Automate uploading/downloading translations
Installation
Install the package via composer:
composer require macpaw/laravel-crowdin-integration --dev
By default, the package uses the following environment variables
CROWDIN_PROJECT_ID
CROWDIN_API_KEY
Config Files
In order to edit the default configuration for this package you may execute:
php artisan vendor:publish --provider="MacPaw\LaravelCrowdinIntegration\CrowdinServiceProvider"
After that, config/crowdin.php
will be created. Inside this file you will find all the fields that can be edited in this package.
Usage
You can see all the commands in the list of command:
php artisan list
Add File
Add a file from project to Crowdin repository:
php artisan crowdin:add {fileName.ext}
It is work only for adding file, not for updating
Update File
Update exist file from project to Crowdin repository
php artisan crowdin:update {fileName.ext}
It is work only for updating file, not for adding
Upload File
This is command add or update all origin files from a project in Crowdin repository:
php artisan crowdin:upload
No matter file exists or not in Crowdin repository
Build
Build ZIP archive with the latest translations.
php artisan crowdin:build
Download Files
Download translations files from Crowdin repository to your.
php artisan crowdin:download