digirati-labs/extract-twig-strings 问题修复 & 功能扩展

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

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

digirati-labs/extract-twig-strings

Composer 安装命令:

composer require digirati-labs/extract-twig-strings

包简介

Extract translatable resources to Gettext files from Twig templates

README 文档

README

A console application to extract localizable resources from Twig templates

Installation

composer require digirati-labs/extract-twig-strings

Usage

Usage:
  twig-extract [options] [--] [<paths>]...

Arguments:
  paths                 Paths to the Twig templates to analyze

Options:
  -d, --domain=DOMAIN   The default domain to save translations under [default: "messages"]
  -l, --locale=LOCALE   The locale to associate with exported messages [default: "en_GB"]
  -o, --output=OUTPUT   Path to the directory that messages will be stored in [default: "/Users/stephen.fraser/github.com/digirati-co-uk/extract-twig-strings"]
  -R, --recursive       Search input paths recursively for Twig files
  -x, --format=FORMAT   The format to serialize messages to.  Defaults to: po.  Must be one of: po, mo, xliff, res [default: "po"]
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Extracts `translate` calls from Twig templates

Example:

vendor/bin/twig-extract -o exported-translation path/to/templates

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-04-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固