config.tx_locate = 1
config.tx_locate {
    dryRun = 0
    cookieName = bm_locate
    cookieLifetime = 30
    overrideParam = setLang
    httpResponseCode = HTTP/1.1 303 See Other
    simulateIp = 217.91.35.16

    actions {
        redirectToPageEN {
            20 = Bitmotion\Locate\Action\Redirect
            20 {
                sys_language = 0
                cookieHandling = 1
                overrideCookie = 1
            }
        }

        redirectToPageDE {
            20 = Bitmotion\Locate\Action\Redirect
            20 {
                sys_language = 1
                cookieHandling = 1
                overrideCookie = 1
            }
        }

        redirectToPageZH {
            20 = Bitmotion\Locate\Action\Redirect
            20 {
                sys_language = 2
                cookieHandling = 1
                overrideCookie = 1
            }
        }
    }

    facts {
        browserAccepted = Bitmotion\Locate\FactProvider\BrowserAcceptedLanguage
        countryByIP = Bitmotion\Locate\FactProvider\IP2Country
        env = Bitmotion\Locate\FactProvider\Environment
    }

    judges {
        10 = Bitmotion\Locate\Judge\Condition
        10.action = redirectToPageDE
        10.match = countryByIP.countryCode = DE

        20 = Bitmotion\Locate\Judge\Condition
        20.action = redirectToPageZH
        20.match = browserAccepted.lang = zh

        30 = Bitmotion\Locate\Judge\Condition
        30.action = redirectToPageDK
        30.match = env.HTTP_HOST = www.Leuchtfeuer.com

        999 = Bitmotion\Locate\Judge\Fixed
        999.action = redirectToPageEN
    }
}

