node tests: Make i18next more explicit in i18n tests.

We are actually testing i18next somewhat directly in
this test, so we clean up some names in the file.

We'll address filenames in another commit.
This commit is contained in:
Steve Howell 2020-02-28 23:27:46 +00:00 committed by Tim Abbott
parent 2d55c7e0d5
commit 588fa9d150
1 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
set_global('Handlebars', global.make_handlebars());
zrequire('templates');
set_global('i18n', zrequire('i18n', 'i18next'));
i18n.init({
const i18next = zrequire('i18next', 'i18next');
global.i18n = i18next;
i18next.init({
nsSeparator: false,
keySeparator: false,
interpolation: {