AFFiNE/scripts/setup/i18n.ts
2023-05-04 05:35:09 +00:00

20 lines
385 B
TypeScript

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