ozean12 / webtranslateit
Symfony integration with WebTranslateIt
Installs: 7 034
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 29
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
- phpunit/phpunit: ~4.8|~5.0
This package is not auto-updated.
Last update: 2023-04-29 12:09:55 UTC
README
Ozean12WebTranslateItBundle
A Symfony 2 / Symfony 3 bundle which allows you to integrate the WebTranslateIt translation service.
Installation
1. Require the bundle:
composer require ozean12/webtranslateit
2. Set it up:
// app/AppKernel.php public function registerBundles() { $bundles = [ // ... new EightPoints\Bundle\GuzzleBundle\GuzzleBundle(), // if not already enabled new JMS\SerializerBundle\JMSSerializerBundle(), // if not already enabled new Ozean12\WebTranslateItBundle\Ozean12WebTranslateItBundle(), ]; // ... }
# app/config/config.yml ozean12_web_translate_it: # your project read key read_key: "%webtranslateit_read_key%" # path to where download your translations, # ex: '%kernel.root_dir%/../src/Acme/DemoBundle/Resources/translations' pull_path: "%webtranslateit_pull_path%"
Usage
To update the translations, run:
- For Symfony < 2.8:
app/console ozean12:webtranslateit:pull
- For Symfony 2.8 / 3:
bin/console ozean12:webtranslateit:pull
- Or a shorthand notation:
bin/console o:w:p
NB: To check the command progress, add
-v
modifier (app/console o:w:p -v
orbin/console o:w:p -v
)