AFFiNE/scripts/setup/i18n.ts
2023-10-12 05:04:58 +00:00

19 lines
394 B
TypeScript

import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { runCli } from '@magic-works/i18n-codegen';
import { beforeAll } from 'vitest';
beforeAll(async () => {
runCli(
{
watch: false,
cwd: join(fileURLToPath(import.meta.url), '../../../.i18n-codegen.json'),
},
error => {
console.error(error);
process.exit(1);
}
);
});