An open API service indexing awesome lists of open source software.

https://github.com/nyurik/dibabel-js

A tool to help editors keep Wikipedia modules/templates in sync across languages and projects.
https://github.com/nyurik/dibabel-js

multilingual sync wikipedia

Last synced: 18 days ago
JSON representation

A tool to help editors keep Wikipedia modules/templates in sync across languages and projects.

Awesome Lists containing this project

README

        

# DiBabel
This Wikipedia tool keeps template and module pages on multiple wiki sites in sync with the master copy, usually stored on mediawiki.org.

- [live site](https://dibabel.toolforge.org/)
- [documentation](https://www.mediawiki.org/wiki/Multilingual_Templates_and_Modules)

# Setup

On [Toolforge](https://wikitech.wikimedia.org/wiki/Help:Toolforge), using the project name `dibabel`:
```bash
become dibabel

# First time only
webservice python3.7 shell
git clone https://github.com/nyurik/dibabel-js www
python3 -m venv $HOME/www/python/venv
cd $HOME/www/python
cp secret.dist.json secret.json
vi secret.json # Update tokens to those generated by Ouauth MW extension

# Can be ran multiple times
source $HOME/www/python/venv/bin/activate
cd $HOME/www/python
pip install --upgrade pip wheel
pip install -r $HOME/www/python/src/requirements.txt
```

# Development - Python
* Requires Python 3.7+
* Use virtual env for development

```bash
source ./venv/bin/activate
python -m pip install -r requirements.txt
```

# Development - JavaScript
## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.

See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.

It correctly bundles React in production mode and optimizes the build for the best performance.