becklyn/translations-extractor 问题修复 & 功能扩展

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

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

becklyn/translations-extractor

最新稳定版本:1.1.1

Composer 安装命令:

composer require becklyn/translations-extractor

包简介

Extracts translations from the given directory.

README 文档

README

CLI command, that helps extracting translations in Symfony projects.

Installation

It's best to install this command using the composer-bin-plugin:

composer bin test req becklyn/translations-extractor 

Usage

Call the command using the CLI:

./vendor/bin/extract-translations src/ templates/

As arguments, pass the list of directories to search in.

Options

You can pass in extension names for twig, so that Twig doesn't complain about missing functions (or filters, etc.).

  • --mock-function the names of the functions to mock
  • --mock-filter the names of the filters to mock
  • --mock-test the names of the tests to mock
./vendor/bin/extract-translations src/ --mock-filter normalize --mock-filter normalize_another

There is a list of predefined mocks, take a look in MockExtension.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固