Skip to content

TheOnlyMonster/Franko-Arabic-Chrome-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo-32x32 | Arabic - Franko Chrome Extension

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.

logo-32x32 | Download the Extension

You can download and install the "عربي - Franko" Chrome extension from the Chrome Web Store using the following link:

Download عربي - Franko Chrome Extension

logo-32x32 | Screenshots

screenshot-1

screenshot-2

logo-32x32 | Features

  • 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.

logo-32x32 | How to Use

  1. Install the Extension: Download and install the "عربي - Franko" Chrome extension from the Chrome Web Store using the provided link.
  2. Activate the Extension: Click on the extension icon in the Chrome toolbar to activate the translation interface.
  3. 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.
  4. Switch Translation Direction: Use the switch button to toggle between translating from Franko to Arabic and from Arabic to Franko.

logo-32x32 | Code Overview

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 the AbstractTranslate class and implements the translation algorithm for Franko text.
  • Arabic class: Extends the AbstractTranslate class and handles translation from Arabic to Franko.
  • Translation Logic: The translation logic is implemented in the performTranslation methods of the Franko and Arabic 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.

logo-32x32 | Dependencies

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.

logo-32x32 | Support and Contributions

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published