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