mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 22:20:06 +02:00
Send full locale
This commit is contained in:
parent
7fe98d915b
commit
781476d712
@ -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