Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kematjaya0/translation
https://github.com/kematjaya0/translation
composer php symfony4 translation
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kematjaya0/translation
- Owner: kematjaya0
- Created: 2019-01-03T09:38:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T03:22:35.000Z (almost 6 years ago)
- Last Synced: 2024-11-24T17:02:09.319Z (2 months ago)
- Topics: composer, php, symfony4, translation
- Language: PHP
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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