Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruvents-legacy/i18n-routing-bundle
https://github.com/ruvents-legacy/i18n-routing-bundle
i18n routing symfony-bundle symfony3 symfony4
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruvents-legacy/i18n-routing-bundle
- Owner: ruvents-legacy
- License: mit
- Archived: true
- Created: 2017-01-28T14:05:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-20T09:25:25.000Z (about 7 years ago)
- Last Synced: 2023-12-20T09:45:36.680Z (about 1 year ago)
- Topics: i18n, routing, symfony-bundle, symfony3, symfony4
- Language: PHP
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RUVENTS I18n Routing Bundle
**Attention!**
This package is abandoned and no longer maintained.
Consider using https://packagist.org/packages/ruwork/locale-prefix-bundle instead.## Description
This bundle hacks Symfony Framework Bundle's router and prefixes all routes with an optional `/{_locale}` section.
## Configuration
```yaml
services:
router: "@ruvents_i18n_routing.framework_router_decorator"ruvents_i18n_routing:
locales: [ru, en]
default_locale: ru
```## Disable prefixing
To prevent routes from being prefixed, set `i18n` option to false. For example:
```yaml
# app/config/routing_dev.yml
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler
options: { i18n: false }
```