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.

19 lines 663 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); process.env.OPENAI_API_KEY = "test"; jest.mock("openai", () => function OpenAIMock() { }); jest.mock("../chats/chat_factory", () => ({ __esModule: true, default: { newChat: jest.fn(() => ({ startChat: jest.fn() })) }, })); jest.mock("../utils", () => { // Pull in the real module once so we can reuse its exports. const actualUtils = jest.requireActual("../utils"); return { ...actualUtils, delay: jest.fn(() => Promise.resolve()), printExecutionTime: jest.fn(), printInfo: jest.fn(), }; }); //# sourceMappingURL=jest.setup.js.map