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
- Translation: The extension uses a custom translation algorithm to convert Franko text to Arabic and vice versa.
- Dataset Integration: The extension utilizes a dataset API provided by Hugging Face to enhance the translation accuracy. The dataset contains Arabic POS dialects and configuration specific to Egyptian dialects.
- English Dictionary: The extension integrates with the DictionaryAPI to handle English words and ensure accurate translations.
- Interactive Interface: The extension provides a user-friendly interface that allows users to input text and view the translated output in real-time.
- Install the Extension: Download and install the "عربي - Franko" Chrome extension from the Chrome Web Store using the provided link.
- Activate the Extension: Click on the extension icon in the Chrome toolbar to activate the translation interface.
- Translate Text: Enter the text you want to translate in the input area. As you type, the translation will be displayed in real-time in the output area.
- Switch Translation Direction: Use the switch button to toggle between translating from Franko to Arabic and from Arabic to Franko.
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.
The "عربي - Franko" Chrome extension relies on the following external dependencies:
- axios: A JavaScript library used for making HTTP requests to retrieve dataset rows.
- DictionaryAPI: An API used to handle English words and provide accurate translations.
- Google Fonts: Remote CSS files are included to load the "Work Sans" font for consistent typography.
If you encounter any issues or have suggestions for improvements, please feel free to open an issue on the GitHub repository: عربي - Franko.
Contributions to the project are also welcome. Fork the repository, make your changes, and submit a pull request with a detailed explanation of your modifications.