GithubHelp home page GithubHelp logo

ig_language_detection's Introduction

TYPO3 Extension 'ig_language_detection'

Latest Stable Version Monthly Downloads License

Language detection in PSR-15 middleware stack on uri=/. Based on the Accept-Language Header the corresponding site config is choosen. Additional configuration in YAML site configuration is available like aliases and more

1. What does it do?

  • The language detection is only called when “https://www.example.com” was entered, but all sites have “https://www.example.com/lang-key/”.
  • Extra configuraion is done in the site YAML config file (e.g. typo3conf/sites/website/config.yaml)
  • The language detection is done with accept header (HTTP_ACCEPT_LANGUAGE) from the browser.
  • If you just want the language detection on the activated languages of the site configuraion, you don’t need any extra configuraion.
  • Documentation is available

2. Usage

1) Installation

Installation using Composer

The recommended way to install the extension is by using Composer. In your Composer based TYPO3 project root, just do composer require internetgalerie/ig-language-detection.

Installation as extension from TYPO3 Extension Repository (TER)

Download and install the extension with the extension manager module.

TYPO3 10.4: Enable Feature in Settings -> "Feature Toggles" -> "Rearranged redirect middlewares" (rearrangedRedirectMiddlewares) for redirects

ig_language_detection's People

Contributors

abplana avatar internetgalerie avatar michaelscheel avatar

Stargazers

Christoph Lehmann avatar  avatar

Watchers

James Cloos avatar  avatar

ig_language_detection's Issues

Composer package

Are there any plans to add provide this as a composer package?

Keep up the good work.

Position of middleware should be changed

If you're using the core redirects module you will get trouble with your redirects because the language redirect is done before the redirects of the redirect module.
I prefer to do my redirects to the wanted target page before the language redirect is done.
A pull request will follow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.