NAME
Plack::Middleware::ExtractUriLanguage - Cuts off language tags out of the request's PATH_INFO to simplify internationalization route handlers.
VERSION
This documentation describes ExtractUriLanguage within version 0.001.
SYNOPSIS
# with Plack::Middleware::ExtractUriLanguage
enable 'Plack::Middleware::ExtractUriLanguage',
ExtractUriLanguageOrig => 'PATH_INFO_ORIG',
ExtractUriLanguageTag => 'LANGUAGE_TAG';
DESCRIPTION
ExtractUriLanguage cuts off language tags out of the request's PATH_INFO to simplify internationalization route handlers. The extracted language tag will be stored within the environment variable LANGUAGE_TAG
(configurable). The original unmodified PATH_INFO
is additionaly saved within the environment variable PATH_INFO_ORIG
(configurable).
CONFIGURATION AND ENVIRONMENT
ExtractUriLanguageOrig
ExtractUriLanguageOrig => 'PATH_INFO_ORIG';
Environment variable name for the original unmodified PATH_INFO
. The default is "PATH_INFO_ORIG".
ExtractUriLanguageTag
ExtractUriLanguageTag => 'LANGUAGE_TAG';
Environment variable name for the detected language tag. The default is "LANGUAGE_TAG".
BUGS AND LIMITATIONS
Please report all bugs and feature requests at GitHub Issues.
AUTHOR
BURNERSK <burnersk@cpan.org>
COPYRIGHT AND LICENSE
This file is part of Plack-Middleware-ExtractUriLanguage
This software is copyright (c) 2013 by BURNERSK. No license is granted to other entities.