adbros/translation-extra

Extracting translation contents and updating catalogues automatically for Nette FW.

v0.2.1 2023-11-03 08:48 UTC

This package is auto-updated.

Last update: 2024-07-03 10:12:14 UTC


README

adbros/translation-extra

Extracting translation contents and updating catalogues automatically for Nette FW.

Inspired by kdyby/translation package.

Requirements

Requires symfony/console, you may use contributte/console.

Instalation

composer require adbros/translation-extra

Register extension

extensions:
	translationExtra: Adbros\TranslationExtra\DI\TranslationExtraExtension

Default configuration

translationExtra:
	extractor:
		defaultScanDir:
			- %appDir%
		defaultOutputDir: %appDir%/locale
		defaultFormat: neon
		extractors:
			nette: Adbros\TranslationExtra\Extractor\NetteExtractor 
			latte: Adbros\TranslationExtra\Extractor\LatteExtractor
		loaders:
			neon: Adbros\TranslationExtra\Loader\NeonFileLoader
		dumpers:
			neon: Adbros\TranslationExtra\Dumper\NeonFileDumper 

Usage

bin/console translation:extract cs