This repository was archived by the owner on Nov 19, 2023. It is now read-only.
v0.4.0
- Improved RegEx patterns in
getFromPath()andgetFromQuery()to better suit their contexts. - Added new option to
regexPattern: PassingPolyglot::EXACTwill 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)(?![-_]) ])