Import/Export your laravel translations(including the missing ones!) to/from your separate frontend apps.
motia/laravel-translations-port is a Laravel package for import/export your laravel translations(including the missing ones!) to/from your separate frontend apps..
It currently has 0 GitHub stars and 47 downloads on Packagist (latest version 0.2.0).
Install it with composer require motia/laravel-translations-port.
Discover more Laravel packages by motia
or browse all Laravel packages to compare alternatives.
Last updated
This package comes with a translation manager laravel-translation-manager and gives it the ability to import/export and a translation group to json or yaml.
composer require motia/laravel-translations-port
autodiscovery is on) Add the service provider Motia\TranslationsPort\TranslationsPortProviderphp artisan vendor:publish --provider="Motia\TranslationsPort\TranslationsPortProvider"
yaml format run composer install "symfony/yaml" "^4.0"php artisan trans:import
php artisan trans:import
// routes/api.php
<?php
use Motia\TranslationsPort\Controller as TranslationsPortController;
TranslationsPortController::routes([
'prefix' => 'translations-port',
'middleware' => 'cors',
]);
// on your client app
axios.post('/missing', {
key: 'namespaced.key',
locale: 'en',
group: 'client_app' // optional, defaults config('translations-port.groups')[0].
})