Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

v0.4.0

Choose a tag to compare

@mcaskill mcaskill released this 30 Aug 20:17
· 5 commits to master since this release
  • Improved RegEx patterns in getFromPath() and getFromQuery() to better suit their contexts.
  • Added new option to regexPattern: Passing Polyglot::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)(?![-_])
    ])