Extracting translation contents and updating catalogues automatically for Nette FW.
Inspired by kdyby/translation package.
Requires symfony/console, you may use contributte/console.
composer require adbros/translation-extra
extensions:
translationExtra: Adbros\TranslationExtra\DI\TranslationExtraExtension
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
bin/console translation:extract cs