Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kematjaya0/translation


https://github.com/kematjaya0/translation

composer php symfony4 translation

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Translation plugin for Symfony 4.2
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