Helper package for localization of API Clients, to be used in Frontend Servers
Add repository containing this package
"repositories": [{"type": "composer", "url": "http://your.resource.url"}],
(Note: you need to have access to this repository as well as to resources it points to)
Set minimum stability to 'dev':
"minimum-stability": "dev"
"subscribo/apiclientlocalization": "@dev"
and update composer
composer update
add following under 'providers' key in config/app.php file:
'\\Subscribo\\ApiClientLocalization\\Integration\\Laravel\\ApiClientLocalizationServiceProvider',
or (for conditional registration) you can add following to bootstrap/app.php:
if (class_exists('\\Subscribo\\ApiClientLocalization\\Integration\\Laravel\\ApiClientLocalizationServiceProvider')) {
$app->register('\\Subscribo\\ApiClientLocalization\\Integration\\Laravel\\ApiClientLocalizationServiceProvider');
}
1.4 To publish default configuration (possibly also config tagged files from other packages) to application run
php artisan vendor:publish --tag config
or (to force overwrite existing file, and only from this package)
php artisan vendor:publish --tag="config" --provider="\\Subscribo\\DevelopmentSeeder\\Integration\\Laravel\\ApiClientLocalizationServiceProvider" --force
for publishing package views your can run
php artisan vendor:publish --tag view
or (to force overwrite existing files, and only from this package)
php artisan vendor:publish --tag="view" --provider="\\Subscribo\\ApiClientCommon\\Integration\\Laravel\\ApiClientLocalizationServiceProvider" --force
for publishing package translations / general translations for application your can run
php artisan vendor:publish --tag translation
or (to force overwrite existing files, and only from this package)
php artisan vendor:publish --tag="translation" --provider="\\Subscribo\\ApiClientCommon\\Integration\\Laravel\\ApiClientLocalizationServiceProvider" --force
for overwriting your application views with translated ones you can run publishing package translations / general translations for application your can run
php artisan vendor:publish --tag translation
or (to force overwrite existing files, and only from this package)
php artisan vendor:publish --tag="translated_views" --provider="\\Subscribo\\ApiClientCommon\\Integration\\Laravel\\ApiClientLocalizationServiceProvider" --force