christiandarnell/translation-manager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

christiandarnell/translation-manager

Composer 安装命令:

composer require christiandarnell/translation-manager

包简介

GUI for scanning and managing your Laravel translations.

README 文档

README

GUI for scanning and managing your Laravel translations.

Preview

Installation

Install this package by running the following commands in your terminal:

composer require christiandarnell/translation-manager
php artisan vendor:publish --tag="tm-assets"

The first command will add the package to your composer's dependency list and automatically register its service provider.

The second one will publish package's frontend assets (CSS, JS and fonts) to the /public/vendor/translation-manager folder.

You can now open the dashboard by visiting your-site.com/translation-manager.

Config

To customize package's configuration, run this command in your terminal:

php artisan vendor:publish --tag="tm-config"

Available Options

[
    'locales' => [
        'en' => 'English',
        // ...
    ],
    'folders' => [
        'app/Http/Controllers',
        'resources/views',
    ],
];

Scanning

Click on the "Scan Files" button in the package's dashboard to scan folders for translation strings.

You may change the list of folders to scan by customizing the config at /config/tm.php.

This process will create or override language files in the /lang directory.

e.g. It will create /lang/fr.json and /lang/es.json if your tm.locales configuration is as follows:

[
    'en' => 'English',
    'fr' => 'Français',
    'es' => 'Español',
];

Locale specified in app.fallback_locale is set as the default language thus its language file is not created.

Changelog

The CHANGELOG file will tell you about all changes to this package.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固