定制 testmonitor/laravel-vue-i18n-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

testmonitor/laravel-vue-i18n-generator

最新稳定版本:v3.0.0

Composer 安装命令:

composer require testmonitor/laravel-vue-i18n-generator

包简介

This package compiles your Laravel translation files into a Vue i18n compatible JSON file.

README 文档

README

Latest Stable Version CircleCI StyleCI codecov License

This package compiles your Laravel translation files into a Vue i18n compatible Javascript file.

Table of Contents

Installation

Start by installing the package using Composer:

$ composer require testmonitor/laravel-vue-i18n-generator

Optionally publish the package assets:

$ php artisan vendor:publish --provider="TestMonitor\VueI18nGenerator\VueI18nGeneratorServiceProvider" --tag="config"

You're all set up now!

Usage

When installed, use the Artisan command to generate the Vue i18n file:

$ php artisan vue:translations

This compiles your Laravel JSON and PHP language files into a single Javascript file called vue-i18n-locales.js located in /resources/js/i18n.

By default, your Laravel language path is used to determine which files to include. You can override this behavior using the path option:

$ php artisan vue:translations --path=resources/lang

There is also an option to change the output file path:

$ php artisan vue:translations --output=resources/js/i18n.js

Alternatively, you can configure output file path in the configuration file.

Changelog

Refer to CHANGELOG for more information.

Contributing

Refer to CONTRIBUTING for contributing details.

Credits

License

The MIT License (MIT). Refer to the License for more information.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-02