wegmeister/language-redirect 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wegmeister/language-redirect

最新稳定版本:1.0.0

Composer 安装命令:

composer require wegmeister/language-redirect

包简介

A Neos CMS package to handle language redirects based on the browser language.

README 文档

README

This package provides a simple language detection service for Neos CMS that will redirect users to the language version that fits their Accept-Language header best. It will only redirect if the uri path is empty (e.g. /).

Installation

Run the following command in your site package:

composer require --no-update wegmeister/language-redirect

Then run composer update in your project root.

Configuration

Sometimes language codes are not configured the same as in Neos. Therefore you can configure a mapping in your Settings.yaml:

Wegmeister:
  LanguageRedirect:
    # Add mappings for language codes if you use some different codes than the default ones.
    languageCodeOverrides:
      # For example, if you use "cz" instead of "cs" for Czech, you can add this mapping:
      cs: cz

统计信息

  • 总下载量: 2.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-11-28