UNPKG

amharic-keyboard

Version:

A TypeScript library for translating English text to Amharic, with support for characters, words, and numbers.

19 lines (18 loc) 617 B
/** * Translates English text to Amharic using the mapping in final.ts * @param text The English text to translate * @returns An object containing both the original English text and its Amharic translation */ export declare function translateToAmharic(text: string): { en: string; am: string; }; /** * Translates Amharic text to English using the reverseWords mapping * @param text The Amharic text to translate * @returns An object containing both the original Amharic text and its English translation */ export declare function translateToEnglish(text: string): { am: string; en: string; };