mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
commit
f6369b5491
@ -29,7 +29,7 @@ const plugins = [
|
|||||||
{
|
{
|
||||||
register: understood,
|
register: understood,
|
||||||
options: {
|
options: {
|
||||||
'default': 'en-us',
|
default: 'en-us',
|
||||||
localesDir: path.join(__dirname, '../static/locales')
|
localesDir: path.join(__dirname, '../static/locales')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -39,7 +39,7 @@ const defaultHandler = (request, reply) => {
|
|||||||
const locales = (request.locale || '').toLowerCase().split(/\-/);
|
const locales = (request.locale || '').toLowerCase().split(/\-/);
|
||||||
|
|
||||||
reply(html({
|
reply(html({
|
||||||
locale: locales[1],
|
locale: request.locale,
|
||||||
lang: locales[0]
|
lang: locales[0]
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user