@scoutello/i18n-magic
Version:
Intelligent CLI toolkit that automates internationalization workflows with AI-powered translations for JavaScript/TypeScript projects
12 lines (9 loc) • 318 B
text/typescript
import type { Configuration } from "../lib/types"
import { getMissingKeys } from "../lib/utils"
export const checkMissing = async (config: Configuration) => {
const newKeys = await getMissingKeys(config)
if (newKeys.length > 0) {
console.error("Error: Missing translations found!")
process.exit(1)
}
}