forci / lexik-translation-ui-bundle
UI for LexikTranslationBundle
Installs: 2 671
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:CSS
Type:symfony-bundle
Requires
- php: >=7.1.3
- lexik/translation-bundle: ~4.0
- symfony/form: ~2.0|~3.0|~4.0
- symfony/framework-bundle: ~2.0|~3.0|~4.0
- symfony/translation: ~2.0|~3.0|~4.0
- symfony/yaml: ~2.0|~3.0|~4.0
Requires (Dev)
- doctrine/doctrine-bundle: ~1.9
- doctrine/orm: ~2.6
- friendsofphp/php-cs-fixer: ^2.8
- symfony/debug-bundle: ~4.0
- symfony/security-csrf: ^4.1
- symfony/twig-bundle: ~4.1.4
- symfony/web-profiler-bundle: ~4.0
- symfony/web-server-bundle: ^4.1
- twig/twig: ~2.0
- wucdbm/php-cs-fixers: ~0.1
README
Register the bundle as usual and mount its routing.
!! Make sure it is not publicly accessible.
forci_lexik_translation_ui: # A Service ID that implements # Forci\Bundle\LexikTranslationUIBundle\Authorization\TranslationAuthorizationCheckerInterface # Optional - example in sample app authorization_service: Your\AuthorizationChecker\ServiceId # Optional - example in sample app description_files: - '%kernel.root_dir%/../src/App/Resources/translations_descriptions.yml'
# translations_descriptions.yml some.translation.key: Some descriptive text to be displayed inside the UI
Then, make a link somewhere in your app to
<a href="{{ path('forci_lexik_translation_ui_index') }}"> Translations </a>
Play with the Sample App
- The
forci_lexik_translation_ui.config.per_page
parameter is hardcoded to 2 for the test application
cd sample/
./bin/console doctrine:database:create -e prod
./bin/console doctrine:schema:update -e prod -f
./bin/console lexik:translations:import App -e prod
./bin/console server:start
./bin/console server:start --docroot public/
If you would like to experiment/develop the user interface:
cd src/Resources/vue npm install npm run serve // In order for the API to work, you need to start the local symfony server as per the above block // build production assets npm run build
TODO
- favicon
- logo
- use vueup or something else for notificationsg