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
13 lines (12 loc) • 516 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("./index");
async function run() {
console.log(await (0, index_1.englishToIgbo)("come"));
console.log(await (0, index_1.englishToYoruba)("how are you"));
console.log(await (0, index_1.englishToHausa)("food"));
console.log(await (0, index_1.igboToEnglish)("bia"));
console.log(await (0, index_1.yorubaToEnglish)("bawo ni"));
console.log(await (0, index_1.hausaToEnglish)("abinci"));
}
run();