A file based translation manager, which unlike other Lang managers don't need a database connection to handle the translation.
composer require ctf0/lingo
(Laravel < 5.5) add the service provider
'providers' => [
ctf0\Lingo\LingoServiceProvider::class,
]
publish the package assets with
php artisan vendor:publish --provider="ctf0\Lingo\LingoServiceProvider"
after installation, run php artisan lingo:setup
to add
routes/web.php
webpack.mix.js
install dependencies
yarn add vue vue-ls vue-notif vue-clipboard2 vue-tippy@v2 vue-awesome@v2 axios fuse.js
add this one liner to your main js file and run npm run watch
to compile your js/css
files.
// app.js
window.Vue = require('vue')
require('../vendor/Lingo/js/manager')
new Vue({
el: '#app'
})
trans('Vendor::file.key', ['attr'=>''])
.operation | keyboard |
---|---|
reset search "when focused" | esc |
hide modal | esc |
localhost:8000/lingo
If you discover any security-related issues, please email [email protected].