jamuhl/i18next-node — pull request #141 by jkempff (2014-07-11 14:12:05+00:00)
Title: Stop matching wrong languages

eac5923: An additional middleware (`ensureIsSupportedLanguage`) gets added to localized routes, that skips a matching route, if the language in the `:lng` parameter is not available in `i18n.options.supportedLngs`.

This is fixes #140

It also contains my earlier pull-request #139 that allows multiple middlewares in the `addRoute` method.