apploud/translations-converter

Simple extension for Nette framework that converts translations from multiple lang files in Neon syntax to one Excel file (xlsx) and vice versa.

v2.1.0 2018-08-03 13:16 UTC

This package is auto-updated.

Last update: 2024-09-29 05:09:10 UTC


README

Build Status

Nette框架提供简单的扩展,可以将多个Neon语法lang文件的翻译转换为单个Excel文件(xlsx),反之亦然。

安装

安装TranslationsConverter的最佳方式是使用Composer

$ composer require apploud/translations-converter

您可以通过neon配置文件启用扩展。

extensions:
	console: Kdyby\Console\DI\ConsoleExtension
	translationsConverter: Apploud\TranslationsConverter\DI\TranslationsConverterExtension
		
translationsConverter:
	langDir: %appDir%/lang

使用方法

只需使用以下命令将翻译导出到Excel或导入到neon文件。目前,导入的Excel文件必须命名为translations.xlsx。需要指定语言文件目录为neon配置文件中的langDir

$ php www/index.php translations:export
$ php www/index.php translations:import