ajaaleixo / laravel-phraseapp
Laravel PhraseApp Package
Installs: 16 276
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 1
Open Issues: 2
Requires
- php: >=5.6.4
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- codacy/coverage: dev-master
- mockery/mockery: 0.9.*
- orchestra/testbench: ~3.4
- phpunit/php-code-coverage: ^4.0.3
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2024-11-11 20:36:37 UTC
README
Laravel PhraseApp Package
Supports L5.4
This package offers you a way of downloading translated keys from https://phraseapp.com. This translation tool supports tagging which is used to separate your key set.
Commands / Features
Download
Fetched the configured list of Locales per Tag from your PhraseApp.com and creates one file per Tag under you resources/lang/locale/ directory.
+PhraseApp - Suggestion of usage+
When importing/inserting new keys, I suggest to use tags as API accept it as filter option.
Install
Add Service provider
Open your config/app.php and insert the following in providers key:
Ajaaleixo\PhraseApp\PhraseAppServiceProvider::class,
Add a Storage Disk
Open your config/filesystems.php and insert the following code:
'disks' => [
(...)
'lang' => [
'driver' => 'local',
'root' => resource_path('lang'),
],
]
Run Publish command
php artisan vendor:publish --provider="Ajaaleixo\PhraseApp\PhraseAppServiceProvider"
Edit your settings
Open config/laravel-phraseapp.php
and create each .env
key and edit the following:
- project_id
- api.key
- identification
Roadmap
- Phraseapp:Upload Push existing translations to PhraseApp
- Phraseapp:Get:Locales Displays a Table with Available Locales in your Account