Skip to content
forked from ctf0/Lingo

A Gui To Manage Laravel Translation Files

License

Notifications You must be signed in to change notification settings

mmattklaus/Lingo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lingo

Latest Stable Version Total Downloads Donate with Bitcoin

A file based translation manager, which unlike other Lang managers don't need a database connection to handle the translation.


Installation

  • 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, package will auto-add

    • package routes to routes/web.php
    • package assets compiling to webpack.mix.js
  • install dependencies

    yarn add vue axios vue-ls vue-notif vue-clipboard2 vue-tippy@v1 vue-awesome@v2
    # or
    npm install vue axios vue-ls vue-notif vue-clipboard2 vue-tippy@v1 vue-awesome@v2 --save
  • add this one liner to your main js file and run npm run watch to compile your js/css files.

    • if you are having issues Check
    require('../vendor/Lingo/js/manager')
    
    new Vue({
        el: '#app'
    })

Features

  • filter by keys.
  • add/remove "vendor/locale/file/item".
  • show guiding steps while adding new vendor for better UX.
  • validate for "vendor/locale/file" existence on the fly.
  • use localeStorage to remember opened "tab/vendor/files/copy-format".
  • support up to 3 levels deep on nested keys.
  • support all laravel different translation key formats.
  • directly copy translation key by clicking on the tool-tip.
  • show/hide different elements to avoid noise & keep the user focused.
  • copy/paste items.
  • merge multiple items under new key.

Usage

  • visit localhost:8000/lingo

About

A Gui To Manage Laravel Translation Files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 33.9%
  • PHP 25.6%
  • JavaScript 18.2%
  • HTML 17.7%
  • CSS 4.6%