mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-02 02:00:49 +08:00
feat(i18n): static type on i18n (#2225)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user