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.

15 lines (14 loc) 555 B
import type FormatAdapter from "./format_adapter"; /** * Sidecar kept around purely so the original nested shape can be * rebuilt byte-identically on write even if the translation pipeline * adds, drops, or renames leaves. For today's i18next flow we only * need a marker that the file was JSON; kept as an object so future * additions (e.g. preserved ordering, indent width) don't widen the * public adapter interface. */ type JSONSidecar = { kind: "json"; }; declare const JSONAdapter: FormatAdapter<JSONSidecar>; export default JSONAdapter;