adbros / translation-extra
Extracting translation contents and updating catalogues automatically for Nette FW.
Installs: 4 187
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- latte/latte: ^3.0.9
- nette/neon: ^2.4 || ^3.0
- symfony/console: ^5.0 || ^6.0
- symfony/finder: ^5.0 || ^6.0
- symfony/translation: ^5.0 || ^6.0
Requires (Dev)
- contributte/qa: ^0.2
- nette/application: ^3.0
- nette/di: ^3.0
- nette/forms: ^3.0
- nette/tester: ^2.4
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.9
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-strict-rules: ^1.4
- tracy/tracy: ^2.4
Suggests
- contributte/console: Symfony Console for Nette FW
- contributte/translation: Symfony Translation for Nette FW
Conflicts
- symfony/translation: <5.3.4
README
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