kematjaya / translation
translation with symfony
dev-master
2019-02-25 03:22 UTC
Requires
- php: ^7.1.3
- lexik/form-filter-bundle: ^5.0
- nahid/jsonq: ^5.2
- symfony/config: ^4.2
- symfony/console: ^4.2
- symfony/dependency-injection: ^4.2
- symfony/event-dispatcher: ^4.2
- symfony/form: 4.2.*
- symfony/framework-bundle: 4.2.*
- symfony/http-foundation: ^4.2
- symfony/http-kernel: ^4.2
- symfony/options-resolver: ^4.2
- symfony/routing: ^4.2
- symfony/templating: *
- symfony/translation: ^4.2
- symfony/twig-bundle: 4.2.*
- symfony/yaml: 4.2.*
- white-october/pagerfanta-bundle: ^1.2
This package is auto-updated.
Last update: 2024-10-25 15:56:24 UTC
README
- install
composer require kematjaya/translation
- add to config/bundles.php
Kematjaya\Translation\TranslationBundle::class => ['all' => true]
- run command for automatically configuration
php bin/console kematjaya:translation:configure
- for add locale, run this command:
php bin/console kematjaya:translation:add-locale
- if done, tour URL will be automatically redirect to URL with language, example
http://localhost:8000/kmj/language
tohttp://localhost:8000/en/kmj/language
- for add, edit, or delete translation, you can access URL
http:host/kmj/language
or view using console with execute commandphp bin/console debug:router
thank you