Package Data | |
---|---|
Maintainer Username: | happyDemon |
Maintainer Contact: | maxim@happydemon.xyz (Maxim Kerstens) |
Package Create Date: | 2016-11-05 |
Package Last Update: | 2016-12-20 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-04-19 15:06:40 |
Package Statistics | |
---|---|
Total Downloads: | 6 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 4 |
A customizable laravel translation management SPA built with vue.
This was originally planned to be just a fork of barryvdh/laravel-translation-manager, but the amount of changes I made were substantial enough for me to split it off and present it to you like this.
Via Composer
$ composer require dragonfly/translation-manager
Add the service provider in your app
config.
DragonFly\TranslationManager\TranslationManagerServiceProvider::class,
Publish the config file
$ php artisan vendor:publish --tag=config
Run migrations
$ php artisan migrate
Publish the view (optional)
$ php artisan vendor:publish --tag=view
First let's publish the assets to resources/assets/js/dragonfly/translations
:
$ php artisan vendor:publish --tag=assets
Next up we'll need to install a few packages from NPM. Laravel 5.3 comes bundled with Vue 2, Vue-resource 2 and Lodash 4.16, if you don't have them you need to install these as wel.
$ npm install vuex vue-router
Next up you'll need to add this command to your gulpfile.js
:
mix.webpack('dragonfly/translations/app.js', './public/js/dragonfly-translations.js');
Now everything's set to compile, let's run gulp
$ gulp
There a few options you can set after you've exported the translations.php
config file.
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email maxim@happydemon.xyz instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.