Internationalization
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { loadI18n } from '../test-support/i18n.js';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
@@ -10,6 +11,7 @@ async function catalogue(namespace) {
|
||||
const filename = path.join(root, 'public/js/group-symbols.js');
|
||||
const context = { Wegwichtel: namespace };
|
||||
context.globalThis = context;
|
||||
await loadI18n(context);
|
||||
vm.runInNewContext(await fs.readFile(filename, 'utf8'), context, { filename });
|
||||
return context.Wegwichtel.GroupSymbols;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user