mopro / translation-ui-bundle
A different UI for the JMSTranslationBundle
Installs: 434
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- jms/translation-bundle: ^1.1
This package is not auto-updated.
Last update: 2024-11-15 11:09:48 UTC
README
A different UI for the JMSTranslationBundle.
Installation
-
Install the bundle through composer
composer require mopro/translation-ui-bundle php app/console assets:install
-
Instanciate the bundle for the
dev
environmentif ('dev' === $this->getEnvironment()) { $bundles[] = new Mopro\Bundle\TranslationUIBundle\MoproTranslationUIBundle(); }
-
Import routing in your
app/config/routing_dev.yml
filemopro_translation_ui: resource: "@MoproTranslationUIBundle/Controller/" type: annotation
(The routing will conflict with the existing JMSTranslation UI, so remove the routes imports if needed)
Usage
Go to http://your.website/app_dev.php/_trans
and start translating.
Development
This bundle relies on Javascript. It uses all the cool things we have in 2016 (see package.json file for a list of dependencies). If you want to develop, make sure you have at least node and npm installed. Then, you will need to run these command:
npm install -g webpack
npm install
In order to generate the javascript file, you will need to run the webpack
command.
Remember to symlink
your assets by using the php app/console assets:install --symlink
command
LICENSE
See LICENSE file.