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.
- Host: GitHub
- URL: https://github.com/nyurik/dibabel-js
- Owner: nyurik
- License: gpl-3.0
- Created: 2020-07-23T13:49:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T01:32:48.000Z (11 months ago)
- Last Synced: 2025-03-25T09:12:17.264Z (about 1 month ago)
- Topics: multilingual, sync, wikipedia
- Language: TypeScript
- Homepage: https://dibabel.toolforge.org/
- Size: 2.92 MB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ScriptsIn 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.