Giter VIP home page Giter VIP logo

nova-translation-editor's Introduction

Nova Translation Editor

This is a laravel nova package to manage/edit your translations. It depends on spatie/laravel-translation-loader.

screenshot

Features

  • Decide which translation group/file you want to make editable (auth, validation, etc.)
  • Add new keys to the translation group
  • Save all changes at once or only from current tab
  • Multiple languages support
  • Respects you own theme colors
  • Filter the table by key or translation

Installation

Install dependencies

First, make sure that you have installed and configured spatie/laravel-translation-loader.

Installation

Install this package with composer and publish the config

composer require bernhardh/nova-translation-editor
php artisan vendor:publish --provider="Bernhardh\NovaTranslationEditor\ToolServiceProvider"

Add this nova tool to your NovaServiceProvider (app/Providers/NovaServiceProvider.php):

public function tools()
{
    return [
        ...
        new \Bernhardh\NovaTranslationEditor\NovaTranslationEditor()
    ];
}

Configuration

Currently there are two configuration options:

return [
    'groups' => [],
    'languages' => [
        'en'
    ]
];
groups

Here you can set which groups you want to show in the editor. You can add as many groups you want, for example auth, validation or even your own translation group.

languages

Here you set, which languages you use. Default is en, but you can set other languages like de for german or es for spanish, etc.

Filter

You can filter each tab by key AND any string in (any) translation:

screenshot

Changelog

Please see CHANGELOG for more information what has changed recently.

nova-translation-editor's People

Contributors

bernhardh avatar deinte avatar ibrunotome avatar canvural avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.