Skip to content

Latest commit

 

History

History
132 lines (67 loc) · 3.86 KB

CHANGELOG.md

File metadata and controls

132 lines (67 loc) · 3.86 KB

2.0.0

  • typescript: Update typings to export I18NextRequest instead of extending global express Request 211

1.9.1

  • only setHeader if lng has value

1.9.0

  • Remove Express alias of res.setHeader to support non-Express use with connect 199

1.8.2

  • typescript: fix: TypeScript i18next import 192

1.8.1

  • typescript: update LanguageDetector (fix type error since i18next v17.0.8) 190

1.8.0

  • Add optional "lookupHeader" to replace default header 180

1.7.3

  • typescript: Update typings to allow req.i18n and req.t without Typescript error. 177

1.7.2

  • typescript: Update typings to allow req.language and req.languages 176

1.7.1

  • Insensitive checking language-locale 172

1.7.0

  • add typings 170

1.6.0

  • Handle spaces in Accept-Language header 169

1.5.0

  • ignoreRoute can now be a function #57

1.4.1

  • Update locals on languageChanged PR163

1.4.0

  • Set Content-Language response header PR159

1.3.2

  • npm ignore example folder

1.3.1

  • check if cookie secure already set PR155

1.3.0

  • allow setting of cookie secure PR154

1.2.1

  • add language detector to default export PR153

1.2.0

  • fixes cookie set crash on newer versions of express (v4) PR151

1.1.1

  • fixes 1.1.0 detection should return a string not an array

1.1.0

  • support returning fallback language when is set as Object PR146

1.0.11

  • check if the headers are sent before cookies set PR145

1.0.10

  • Use a named function for the middleware over an anonymous PR144

1.0.9

  • Guard against non-string detections PR141

1.0.7

  • Fix path detection can crash app (if req.originalUrl is not set) #137

1.0.6

  • update cookie dependency adding overwrite flag #127

1.0.5

  • fixes persisting lng on calling changeLanguage #918

1.0.4

  • fixes rare issue in race condition of init call in cloned instance

1.0.3

  • Fix path lookup logic where query was being included in path PR125

1.0.2

  • call next without loading languages if there is no lng

1.0.1

  • fixes call to loadLanguages

1.0.0

  • use an i18next instance clone instead of a pseudo/mock object, keep clone lng and req.lng in sync

0.4.0

  • adds localized routes
  • adds default export for es6 users not want to use named exports.default