PHPackages                             motia/laravel-translation-exporter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. motia/laravel-translation-exporter

Abandoned → [motia/laravel-translations-port](/?search=motia%2Flaravel-translations-port)ArchivedLibrary[Localization &amp; i18n](/categories/localization)

motia/laravel-translation-exporter
==================================

Utility package to use your translations in your laravel backend and client app at the same time.

012PHP

Since Dec 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/motia/laravel-transaltions-exporter)[ Packagist](https://packagist.org/packages/motia/laravel-translation-exporter)[ RSS](/packages/motia-laravel-translation-exporter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Translations Exporter
=============================

[](#laravel-translations-exporter)

This package comes with a translation manager [laravel-translation-manager](https://github.com/vsch/laravel-translation-manager) and gives it the ability to import/export and a translation group to `json` or `yaml`.

Setup
-----

[](#setup)

- Install the package.

```
composer require motia/laravel-translation-exporter

```

- (optional if `autodiscovery` is on) Add the service provider `Motia\TransExport\TransExportProvider`
- Publish the config file using the command

```
php artisan vendor:publish --provider="Motia\TransExport\TransExportProvider"

```

- Setup and configure [vsch/laravel-translation-manager](https://github.com/vsch/laravel-translation-manager)
- (optional) if you want to use `yaml` format run `composer install symfony/yaml ^4.0`

Usage
-----

[](#usage)

- Import translations from file to database

```
php artisan trans:import

```

- Export translations from database to file

```
php artisan trans:export

```

- Missing translations This package comes with a controller to add missing translations and a helper function to add it to your routes.

```
// routes/api.php
