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.
12 lines (11 loc) • 403 B
TypeScript
/**
* Greedy balance-by-item-count: assign each similarity group to the shard
* whose running total is smallest. Groups stay whole, so related items
* remain in one worker's chat history instead of being split across
* unrelated context windows.
*/
export declare function buildGroupShards(groups: Array<{
[key: string]: string;
}>, concurrency: number): Array<{
[key: string]: string;
}>;