You can install the bundle using Composer,
update your project's composer.json
file to include the following dependency:
"require": {
"artem-frolov/locale-switcher-bundle": "~1.0"
}
Add the following line to app/AppKernel.php
:
$bundles = array(
// ...
new ArtemFrolov\Bundle\LocaleSwitcherBundle\ArtemFrolovLocaleSwitcherBundle(),
);
Add the following parameters to your config.yml
:
parameters:
locale: en
enabled_locales: ru|en
custom_locale_routes:
index:
en: index_en