UNPKG

i18n-ai-translate

Version:

AI-powered localization CLI, Node library, and GitHub Action. Translate i18next JSON, Gettext PO, Java .properties, and iOS .strings with ChatGPT, Claude, Gemini, or local Ollama models.

22 lines (18 loc) 659 B
import { VERSION } from "./constants"; import { config } from "dotenv"; import { program } from "commander"; import buildCheckCommand from "./cli_check"; import buildDiffCommand from "./cli_diff"; import buildTranslateCommand from "./cli_translate"; import path from "path"; config({ path: path.resolve(process.cwd(), ".env") }); program .name("i18n-ai-translate") .description( "Use ChatGPT, Gemini, Ollama, or Anthropic to translate your i18n JSON to any language", ) .version(VERSION); program.addCommand(buildTranslateCommand()); program.addCommand(buildDiffCommand()); program.addCommand(buildCheckCommand()); program.parse();