sensejus/magento2-translation-merger 问题修复 & 功能扩展

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

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

sensejus/magento2-translation-merger

Composer 安装命令:

composer require sensejus/magento2-translation-merger

包简介

Merge translations from magento i18n:collect command result with current theme translations

README 文档

README

Merge translations from magento i18n:collect command result with current theme translations. So each time you add some new translatable strings into your templates, you will be able to update your theme/module translation files automatically by running:

Example:

php bin/magento i18n:collect-phrases --output "app/i18n/Vendorname/sv_SE/sv_SE.csv" --magento
php bin/magento translation-merger:merge app/i18n/Vendorname/sv_SE/ app/design/frontend/Yourtheme/Yourthemepackage/i18n/ sv_SE

This module fix magento issue then running bin/magento i18n:pack , for some reason it just replaces your current theme/module csv translations and not merges them.

Installation

Add this to your composer.json

  "require-dev": {
        "sensejus/magento2-translation-merger":"1.0.0"
    }

Run

composer update

or just run

composer require sensejus/magento2-translation-merger

Usage

bin/magento translation-merger:merge [input-directory] [output-directory] [locale]

Arguments:

input-directory - Input directory of collected Magento CSV file. (Default: app/i18n/)

output-directory - Output directory of collected Magento CSV file. (Default: app/design/frontend/base/i18n/)

locale - Locale (Default: en_US)

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2016-11-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固