Componette

Componette

download-cloud-line composer require adbros/translation-extra

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

No release at this moment. Try to create first one.

price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.4)
nette/neon (^2.4 || ^3.0)
symfony/console (^5.0 || ^6.0)
symfony/finder (^5.0 || ^6.0)
symfony/translation (^5.0 || ^6.0)
Componette Componette felix@nette.org