承接 bernhardh/nova-translation-editor 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bernhardh/nova-translation-editor

最新稳定版本:v2.0.4

Composer 安装命令:

composer require bernhardh/nova-translation-editor

包简介

Laravel Nova translation editor

README 文档

README

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

screenshot

Nova Versions

  • For Nova 3.X use version 1.x of this package
  • For Nova 4.X use version 2.x of this package

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.

统计信息

  • 总下载量: 83.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 13
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 2
  • Forks: 12
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-04