A Gui To Manage Laravel Translation Files

Overview

Lingo
Latest Stable Version Total Downloads

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, run php artisan lingo:setup to add

    • package routes to routes/web.php
    • package assets compiling to 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.

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

Features

  • filter by keys.
  • sort table by keys or by values.
  • 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 localStorage to remember opened "tab/vendor/files/copy-format".
  • support up to 3 levels deep on nested keys.
  • support all laravel translation key formats.
  • directly copy translation key along with placeholders through tool-tips
    ex.trans('Vendor::file.key', ['attr'=>'']).
  • copy/paste items from one file to another.
  • merge/destruct multiple items.
  • highlight changed key/value.
  • download vendor/file.
  • show/hide different elements to avoid noise & keep the user focused.
  • shortcuts
operation keyboard
reset search "when focused" esc
hide modal esc

Usage

Demo

  • visit localhost:8000/lingo

Security

If you discover any security-related issues, please email [email protected].

Comments
  • Attribute [setGroupNamespace] does not exist.

    Attribute [setGroupNamespace] does not exist.

    Hi, I am trying to configure the package with Laravel 5.4 following the instructions, but I am running into an issue with the setup.

    After running the command php artisan lingo:setup

    I am getting the following error:

    (1/1) InvalidArgumentException Attribute [setGroupNamespace] does not exist.

    question 
    opened by murtazamalek 19
  • Installation issues

    Installation issues

    It seems that the documentation is a bit outdated. Am I right? Tried to follow instructions on a brand new Laravel project and there is a couple of issues. Seems to be related to the namespacing, as it keeps failing to find/compile some files. I'll try to provide more details later as I don't have time right now.

    Can you confirm if the documentation is up to date though?

    PS: I also have this package installed as I was hoping to make those two work hand in hand together https://github.com/mcamara/laravel-localization#translated-routes

    Not sure if that can be a reason for it to fail though, I don't think it is.

    question 
    opened by DanDvoracek 15
  • After upgrade, the translations are no longer shown

    After upgrade, the translations are no longer shown

    Hello,

    First and foremost, thank you for this great library!

    Everything worked well, until I updated to the latest version (1.4). I can no longer see the translations. It seems that Vue retrieves the translations correctly, because the counter is updated and correct, but nothing is filled in in the table. The following screenshot illustrates the situation: screen shot 2018-07-17 at 11 16 10

    I have updated the js libs using yarn, re-ran the publish step and ran npm run watch I do not see any errors in the console, and I have tried to debug the app a bit but I am not experienced in Vue.js so I am stuck. Do you have any idea what might be the issue?

    Thanks a lot!

    question 
    opened by sten 10
  • Update structure and use webpack

    Update structure and use webpack

    • Update structure (more friendly)
    • Add config file
    • Add webpack: client will use the precompiled version
    • Auth

    user no longer need to add manually, install or add options

    image

    N.B: Not fully tested, please check if Controller need updates

    Inspired by Laravel Horizon

    opened by KABBOUCHI 7
  • Translation keys get deleted

    Translation keys get deleted

    I do not yet know when exactly and why.

    But I had it multiple times that Lingo deleted a translation key. One time it was exactly the translations string that I last edited. But it also (randomly) deletes others.

    opened by TheFehr 4
  • Error while installing

    Error while installing

    i get this error when i run the composer command:

      include(D:\dev\aticis\resources\lang/vendor/Lingo/en/messages.php): failed to open stream: No such file or dir
      ectory
    
    
    Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
    

    i also get this error with npm:

    ERROR in ./resources/assets/js/app.js
    Module not found: Error: Can't resolve '../../vendor/Lingo/js/manager' in 'D:\dev\aticis\resources\assets\js'
     @ ./resources/assets/js/app.js 3:0-40
    
    bug question 
    opened by mokhosh 3
  • changing a key or value under one file, remain visible when selecting another file

    changing a key or value under one file, remain visible when selecting another file

    Let's say I change the first item in the column it for the password.php file . If I then use the dropdown to edit the validation.php > it fields, I can still see the value I just entered for the password.php file in the first cell of validation.php > it . Make sense?

    https://github.com/ctf0/Lingo/issues/4#issuecomment-339696641

    bug help wanted 
    opened by ctf0 3
  • Failed to open stream

    Failed to open stream

    Hi, i think there is problem with this package.

    If i have EN | DE | FR translations and in FR i don't have auth.php i get this error "resources/lang/fr/auth.php): Failed to open stream: No such file or directory"

    Same thing if EN auth.php has [ 'failed' => 'These credentials do not match our records.1', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', ] and some other only [ 'failed' => 'These credentials do not match our records.1', ]

    Error message: "Undefined array key "throttle""

    Thanks, Ivan

    invalid 
    opened by bajki 1
  • Update composer.json

    Update composer.json

    Since Laravel does not follow semver. ^5.1 or ~5.1 would mean that the library supports 5.1 to 5.99.. even though any of these versions could break your app.

    opened by Dylan-DPC-zz 1
  • Enhancement

    Enhancement

    Still

    • auto-download extra locales from https://github.com/caouecs/Laravel-lang https://github.com/andrey-helldar/laravel-lang-publisher
    • duplicate item
    • remove bulma dependency "no css fw"

    Maybe

    • support json
    enhancement help wanted 
    opened by ctf0 0
Releases(v2.4.0)
Owner
Muah
failure by design
Muah
Manage Laravel translation files

Laravel 5 Translation Manager For Laravel 4, please use the 0.1 branch! This is a package to manage Laravel translation files. It does not replace the

Barry vd. Heuvel 1.5k Jan 4, 2023
Weblate translation provider for Symfony Translation.

Weblate Translation Provider This bundle provides a Weblate integration for Symfony Translation. Installation composer require m2mtech/weblate-transla

Martin Mandl 8 Sep 20, 2022
Filament Translations - Manage your translation with DB and cache

Filament Translations Manage your translation with DB and cache, you can scan your languages tags like trans(), __(), and get the string inside and tr

Fady Mondy 32 Nov 28, 2022
Better translation management for Laravel

Better localization management for Laravel Introduction Keeping a project's translations properly updated is cumbersome. Usually translators do not ha

Waavi 354 Dec 18, 2022
Laravel translation made __('simple').

Translation.io client for Laravel 5.5+/6/7/8 Add this package to localize your Laravel application. Use the official Laravel syntax (with PHP or JSON

Translation.io 109 Dec 29, 2022
🎌 Laravel Localization Helper :: Easily add translation variables from Blade templates.

LocalizationHelper Package for convenient work with Laravel's localization features and fast language files generation. Take a look at contributing.md

Awes.io 36 Jul 18, 2022
[virion] Language management library for automatic translation

libtranslator :: library for automatic translation ✔️ Multilingual support for plugin messages ✔️ Translation language is set according to the player

PocketMine-MP projects of PresentKim 5 Jul 29, 2022
Provides support for message translation and localization for dates and numbers.

The I18n library provides a I18n service locator that can be used for setting the current locale, building translation bundles and translating messages. Additionally, it provides the Time and Number classes which can be used to output dates, currencies and any numbers in the right format for the specified locale.

CakePHP 26 Oct 22, 2022
Internationalization tools, particularly message translation.

Aura.Intl The Aura.Intl package provides internationalization (I18N) tools, specifically package-oriented per-locale message translation. Installation

Aura for PHP 86 Dec 18, 2022
The Translation component provides tools to internationalize your application.

Translation Component The Translation component provides tools to internationalize your application. Getting Started $ composer require symfony/transl

Symfony 6.4k Jan 6, 2023
Official PHP library for the DeepL language translation API.

deepl-php Official PHP client library for the DeepL API. The DeepL API is a language translation API that allows other computer programs to send texts

DeepL 78 Dec 23, 2022
French-Traduction-Pterodactyl est la traduction française de pterodactyl French-Traduction-Pterodactyl is the French translation of pterodactyl

French-Traduction-Pterodactyl Star French-Traduction-Pterodactyl est la traduction française de pterodactyl French-Traduction-Pterodactyl is the Frenc

null 5 Sep 26, 2022
Translation (i18n) Manager as a virion

TL Translation (i18n) Manager as a virion Translation use hook-like $t = $tl->useTranslation($player->getLocale()); $player->sendMessage($t("message-k

RedMC Network 3 Oct 28, 2022
Composer package providing translation features for PHP apps

PHP translation This is a composer package providing translation support for PHP applications. It is similar to gettext, in usage, with these differen

Sérgio Carvalho 0 Aug 15, 2022
Package to manage Laravel translations locally

Translation Manager For Laravel Easy to use package that helps you with the translation of your Laravel application locally. Features ✅ Check all loca

null 5 Jan 8, 2022
Language files manager in your artisan console.

Laravel Langman Langman is a language files manager in your artisan console, it helps you search, update, add, and remove translation lines with ease.

Mohamed Said 867 Nov 30, 2022
Brings localization feature to tightenco/jigsaw using JSON files

Jigsaw localization Brings localization feature to tightenco/jigsaw using JSON files. Get started Setup Bring jigsaw-localization to your Jigsaw proje

Elaborate Code 6 Nov 1, 2022
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Cashier and Laravel Nova.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Lang 6.9k Dec 29, 2022
75 languages support for Laravel 5 application based on Laravel-Lang/lang.

Laravel-lang 75 languages support for Laravel 5 application based on Laravel-Lang/lang. Features Laravel 5+ && Lumen support. Translations Publisher.

安正超 1.3k Jan 4, 2023