承接 hyva-themes/magento2-i18n-csv-diff 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

hyva-themes/magento2-i18n-csv-diff

最新稳定版本:1.0.2

Composer 安装命令:

composer require hyva-themes/magento2-i18n-csv-diff

包简介

Magento command to display all translations that are present in the first CSV file but not in the second.

README 文档

README

Hyvä Themes

hyva-themes/magento2-i18n-csv-diff

Supported Magento Versions

This module adds the bin/magento i18n:diff-csv and i18n:translate-csv commands.

i18n:diff-csv

The command takes two CSV files as arguments.
It displays all translations that are present in the first CSV file but not in the second, based on the first colum in the files.

i18n:translate

The command takes a target language 2-letter ISO code as the argument.
It reads a Magento localization CSV dictionary from stdin, translates it using the DeepL API, and writes it to stdout.
Be sure to check the automatic translations afterwards!

Usage Examples:

  • Collect all Magento and Hyvä strings:

    bin/magento i18n:collect-phrases vendor/magento/ > magento-strings.csv
    bin/magento i18n:collect-phrases vendor/hyva-themes/magento2-default-theme/ > hyva-strings.csv
    bin/magento i18n:collect-phrases vendor/hyva-themes/magento2-theme-module/ >> hyva-strings.csv
  • Find all Hyvä specific translations that are not part of native Magento:

    bin/magento i18n:diff-csv hyva-strings.csv magento-strings.csv
  • Find all translations that are missing in a Hyvä translation file:

    bin/magento i18n:diff-csv hyva-strings.csv i18n/de_DE.csv
  • Find all translations that are in a translation file but are not used in Hyvä:

    bin/magento i18n:diff-csv i18n/de_DE.csv hyva-strings.csv
  • Add new translations to an existing dictionary file.

    bin/magento i18n:diff-csv hyva-strings.csv i18n/de_DE.csv | bin/magento i18n:translate-csv DE >> i18n/de_DE.csv

Installation

  1. Install via composer
    composer require hyva-themes/magento2-i18n-csv-diff
    
  2. Enable module
    bin/magento setup:upgrade
    

Configuration

To use the Deepi18n:translate-csv command, configure your API key in the system configuration at Hyva Themes > Localization CLI > Translation > DeepL API Key.

License

The BSD-3-Clause License. Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

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