AFFiNE/packages/frontend/i18n/dev.mjs

16 lines
272 B
JavaScript
Raw Normal View History

import { fileURLToPath } from 'node:url';
2023-06-30 11:10:35 +03:00
import { runCli } from '@magic-works/i18n-codegen';
runCli(
{
config: fileURLToPath(
new URL('../../../.i18n-codegen.json', import.meta.url)
),
2023-06-30 11:10:35 +03:00
watch: true,
},
error => {
console.error(error);
}
);