1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

Merge pull request #145 from geek/master

Send full locale
This commit is contained in:
Sérgio Ramos 2017-01-06 10:39:13 +00:00 committed by GitHub
commit f6369b5491

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]
}));
};