kematjaya/translation

translation with symfony

dev-master 2019-02-25 03:22 UTC

This package is auto-updated.

Last update: 2024-04-25 14:50:51 UTC


README

  1. install
    composer require kematjaya/translation
    
  2. add to config/bundles.php
    Kematjaya\Translation\TranslationBundle::class => ['all' => true]
    
  3. run command for automatically configuration
    php bin/console kematjaya:translation:configure
    
  4. for add locale, run this command:
    php bin/console kematjaya:translation:add-locale
    
  5. if done, tour URL will be automatically redirect to URL with language, example http://localhost:8000/kmj/language to http://localhost:8000/en/kmj/language
  6. for add, edit, or delete translation, you can access URL http:host/kmj/language or view using console with execute command php bin/console debug:router

thank you