- 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