eb78 / custom-i18n-router-bundle
Custom Router I18n for Symfony
Installs: 101
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0.0
- doctrine/doctrine-bundle: ~1.4
- doctrine/orm: ~2.5
- symfony/symfony: 2.8.*|3.*
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: 6.3
- sensio/generator-bundle: ~3.0
README
CustomI18nRouterBundle
i18n Bundle for Symfony.
Installation
Download the library using Composer:
composer require eb78/custom-i18n-router-bundle
Register Bundle
... new EB78\CustomI18nRouterBundle\EB78CustomI18nRouterBundle() ...
Add Parameters
... parameters: available_locales: ['fr-fr'] default_locale: 'fr-fr' ...
Create i18n config files.
For exemple, for a French file, create a file with name "i18n_fr-fr" with content like that :
( fr-fr should be into available_locales parameters )
parameters: i18n_fr-fr: prefix: "" name: "france" localeUId: 1 locale: "fr_FR" host: "yourdomain.fr" routes: home: /accueil/ contact: /contactez-nous/
Requirements
- PHP >= 7.x
- Symfony 2.8