@ladjs/i18n
Advanced tools
Comparing version 8.0.2 to 8.0.3
@@ -199,2 +199,3 @@ const process = require('process'); | ||
debug('locale was not available redirecting user'); | ||
ctx.status = 301; | ||
return ctx.redirect( | ||
@@ -326,3 +327,3 @@ `/${ctx.state.locale}${ | ||
if (!hasLang) { | ||
ctx.status = 302; | ||
ctx.status = 301; | ||
let redirect = `/${ctx.request.locale}${ctx.path}`; | ||
@@ -329,0 +330,0 @@ if (redirect === `/${ctx.request.locale}/`) |
{ | ||
"name": "@ladjs/i18n", | ||
"description": "i18n wrapper and Koa middleware for Lad", | ||
"version": "8.0.2", | ||
"version": "8.0.3", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
23311
320