thomasdcodes/language-switcher-bundle
最新稳定版本:0.1.3
Composer 安装命令:
composer require thomasdcodes/language-switcher-bundle
包简介
Gives a possibility to change the language, store it in session and set it as default language
关键字:
README 文档
README
Description
With this Bundle you are able to switch the users language with ease.
Install
composer require thomasdcodes/language-switcher-bundle
If you're using Symfony Flex, the Bundle should be registered in your config/bundles.php
Inside config/routes add a new file (tdc_language_switcher_bundle.yaml) with the following standard settings:
tdc_language_switcher_bundle.routes: resource: '@TdcLanguageSwitcherBundle/config/routes.yaml'
Template
To use the Language Switch inside your navigation template inside a li-Tag:
{% include '@TdcLanguageSwitcher/_language_switch.html.twig' %}
统计信息
- 总下载量: 106
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-19