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-02-29 03:49:18 UTC


README

Build Status

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

Installation

The best way to install TranslationsConverter is using Composer:

$ composer require apploud/translations-converter

You can enable the extension using your neon config.

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

Usage

Simply use following commands to export translations into Excel or import into neon files. For now Excel file for import has to be named translations.xlsx. Directory with language files needs to be specified as langDir in neon config file.

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