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 1.09 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const constants_1 = require("./constants"); const dotenv_1 = require("dotenv"); const commander_1 = require("commander"); const cli_check_1 = __importDefault(require("./cli_check")); const cli_diff_1 = __importDefault(require("./cli_diff")); const cli_translate_1 = __importDefault(require("./cli_translate")); const path_1 = __importDefault(require("path")); (0, dotenv_1.config)({ path: path_1.default.resolve(process.cwd(), ".env") }); commander_1.program .name("i18n-ai-translate") .description("Use ChatGPT, Gemini, Ollama, or Anthropic to translate your i18n JSON to any language") .version(constants_1.VERSION); commander_1.program.addCommand((0, cli_translate_1.default)()); commander_1.program.addCommand((0, cli_diff_1.default)()); commander_1.program.addCommand((0, cli_check_1.default)()); commander_1.program.parse(); //# sourceMappingURL=cli.js.map