The "عربي - Franko" Chrome extension is designed to provide translation services between Franko text and Arabic. It enables users to easily translate text from Franko to Arabic and vice versa.
You can download and install the "عربي - Franko" Chrome extension from the Chrome Web Store using the following link:
Download عربي - Franko Chrome Extension
The extension utilizes JavaScript to implement the translation functionality. Here's an overview of the main code components:
AbstractTranslate
class: An abstract class that defines the structure for translation operations.Franko
class: Extends theAbstractTranslate
class and implements the translation algorithm for Franko text.Arabic
class: Extends theAbstractTranslate
class and handles translation from Arabic to Franko.- Translation Logic: The translation logic is implemented in the
performTranslation
methods of theFranko
andArabic
classes. - Dataset Integration: The extension fetches dataset rows from the Hugging Face API to enhance translation accuracy. The dataset is retrieved in batches using the
getDatasetRows
method. - User Interface: The extension's user interface is created using HTML and CSS. The interface allows users to input text, view the translated output, and switch the translation direction.