Code Monkey home page Code Monkey logo

torjoman's Introduction

Torjoman | تُرجمان

Torjoman aims to make translating more accessible to general users, by translating inside the users favourite Platforms, be it chat or a website or any other platform. So translations can be crowd sourced from even more people, which will result in more recognizable translations for normal users.

it's designed to be modular, so anyone can create a plug-in to support any new platform, using the Torjoman Plug-in API.

The project is currently in the planing phase, and you can find the documentation and the plan here(in Arabic only currently): https://torjoman.aosus.dev

Flowchart

https://torjoman.aosus.dev/project-plan/#_3

How to run

  1. Install dependencies
    • Using pipenv pipenv install
    • Using pip pip install -r requirements.txt
  2. Create .env file Create a .env file in project and fill it with the following data
    SECRET_KEY=
    HOST=
    GITHUB_ACCOUNT_TOKEN
    GITHUB_WEBHOOK_KEY=
    DATABASE_NAME=
    DATABASE_USER=
    DATABASE_PASSWORD=
    DATABASE_HOST=
    DATABASE_PORT=5432
    JSON_REPO=GtihubUser/REPO
    JSON_FILE=PathToJsonFileInYourRepo
    
    json file format example can be found in json-example.json
  3. Run python project/prepare-project.py
  4. Create superuser account, Run python manage.py createsuperuser
  5. Run python manage.py migrate
  6. Static Files (css, js, images)
    1. Run python manage.py collectstatic
    2. serve static folder, see here
  7. Run server. see Here
  8. Wait for the server to finish extracting data from the json file. It will print The first data extraction process has been completed when it finishes
  9. Set your github webhook payload url to https://your-domain.com/api/webhook/. Don't forget to set webhook key
  10. Add some platfroms endpoints to deal with from htStps://your-domain.com/admin

License

Torjoman is licensed under the AGPLv3

license

torjoman's People

Contributors

dependabot[bot] avatar fariszr avatar raddah avatar theawiteb avatar thekaram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

torjoman's Issues

Skip build steps when Pull request is closed.

Currently, MkDocs PR action runs all build steps, even if its just run to remove the Preview.

We should let all other steps run only when the PR is not closed, or create a job dedicated to run when the PR is closed.

Make Pull Request automatically

Make a merge request automatically when any word reaches a certain number of translations.
The merge request must contain only one word.
The n (e.g. 2) most popular translations of this word will be sent in order of popularity.

Relying on only one Word model

We rely on two Word Models.
This should be modified to rely on only one model and the two types of translations (Source & Users translations) are linked to this model

Update Documentation

The project has changed significantly, we need to update the projects plan and the way it works

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.