Send full locale

This commit is contained in:
geek 2017-01-05 14:47:33 -06:00
parent 7fe98d915b
commit 781476d712

View File

@ -29,7 +29,7 @@ const plugins = [
{
register: understood,
options: {
'default': 'en-us',
default: 'en-us',
localesDir: path.join(__dirname, '../static/locales')
}
}
@ -39,7 +39,7 @@ const defaultHandler = (request, reply) => {
const locales = (request.locale || '').toLowerCase().split(/\-/);
reply(html({
locale: locales[1],
locale: request.locale,
lang: locales[0]
}));
};