This repository was archived by the owner on Nov 19, 2023. It is now read-only.
Releases: mcaskill/Slim-Polyglot
Releases · mcaskill/Slim-Polyglot
v0.5.0
- Add exception interface to support scoping exceptions to this package.
use McAskill\Slim\Polyglot\Exception\ExceptionInterface; use McAskill\Slim\Polyglot\Exception\InvalidArgumentException; use McAskill\Slim\Polyglot\Exception\RuntimeException;
- Cleaned-up coding syntax across package.
v0.4.1
v0.4.0
- Improved RegEx patterns in
getFromPath()
andgetFromQuery()
to better suit their contexts. - Added new option to
regexPattern
: PassingPolyglot::EXACT
will instruct the middleware to only match the supported languages instead of any potential ISO-639 language code.new Polyglot([ 'languages' => [ 'en', 'fr', 'jp' ], 'regexPattern' => Polyglot::EXACT, // (?<language>en|fr|jp)(?![-_]) ])
v0.3.3
v0.3.2
v0.3.1
v0.3.0 (2018-12-10)
Support base path and forced redirects.
- #5: Fix support subdirectory (
basePath
) and redirect in your routes on same host (@auban)
v0.2.0 (2017-11-07)
Control session storage of resolved language.
- #2: Created an option to control whether
$_SESSION
would be used or not (@ironsmile) - #1: Fixed setup in README (@Tarpsvo)
v0.1.0 (2017-03-09)
Initial release