UNPKG

nigeria-translator

Version:

A lightweight and developer-friendly Node.js + TypeScript package for translating between English and major Nigerian languages — Igbo, Yoruba, and Hausa. Provides simple bidirectional translation functions (English ↔ Igbo, Yoruba, Hausa) powered by the Bi

8 lines (7 loc) 528 B
export declare function translateText(text: string, from: string, to: string): Promise<string>; export declare const englishToIgbo: (text: string) => Promise<string>; export declare const englishToYoruba: (text: string) => Promise<string>; export declare const englishToHausa: (text: string) => Promise<string>; export declare const igboToEnglish: (text: string) => Promise<string>; export declare const yorubaToEnglish: (text: string) => Promise<string>; export declare const hausaToEnglish: (text: string) => Promise<string>;