diff --git a/src/index.js b/src/index.js index 4840417..dcc09c5 100644 --- a/src/index.js +++ b/src/index.js @@ -166,6 +166,7 @@ class I18N { // set the locale properly i18n.setLocale([ctx.request, ctx.state], locale); ctx.locale = ctx.request.locale; + ctx.set('Content-Language', ctx.locale); // if the locale was not available then redirect user if (locale !== ctx.state.locale) {