bambamboole/laravel-translation-dumper 问题修复 & 功能扩展

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

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

bambamboole/laravel-translation-dumper

最新稳定版本:1.3.0

Composer 安装命令:

composer require bambamboole/laravel-translation-dumper

包简介

A laravel package to dump missing translation keys into the translation files

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions codecov

This package provides an option to extend Laravels Translator to write missing translation keys to their respective translation files.
This is especially useful if you have dynamic translation keys where static dumpers do not work.

Installation

You can install the package via composer. Since this package should only be used in development, you should add the --dev flag.

composer require --dev bambamboole/laravel-translation-dumper

Usage

To enable the dumper, you have to set the environment variable `DUMP_TRANSLATIONS` to `true`.

Workflow

Just write your templates and use the __() helper as usual with your preferred translation key pattern. As soon as you visit the page, the missing translation keys, they will be written to the respective translation files in the structure that the first part of the key is the file name and the rest is the nested path of a PHP array. As value it takes the translation key itself prefixed by a configurable prefix.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email manuel@christlieb.eu instead of using the issue tracker.

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-16