Database of German one-act plays.
This project was bootstrapped with Create React App. You can learn more in the Create React App documentation.
After installing nodejs and
enabling corepack
(running corepack enable pnpm
) you can start the
Einakter database by running the following commands:
git clone git@github.com:dracor-org/einakter.git
cd einakter
pnpm install
pnpm run compile
pnpm start
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the
best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
Transforms data.yaml
into JSON creating file data.json
. This
script is mostly used behind the scenes for pnpm start
and pnpm run build
but
can come in handy when a fresh JSON version of the current data is needed.
Generates CSV file data.csv
from data.yaml
.
Update authors.json
. This fetches author data for new
author IDs in data.yaml
and adds it to src/authors.json
.
To update existing IDs they can be passed as arguments:
pnpm run authors Q123 Q4566
This script also updates the network graph of translators and translated authors in `translators-network.gexf.
Update locations.json
. This fetches coordinates for
new location IDs in data.yaml
and adds them to src/locations.json
.
Extracts translatable text from Javascript code and updates .po
files in
the src/locales
directory.
Compiles .po
files in the src/locales
directory to Javascript. This is
normally run by pnpm start
and pnpm run build
. It would only need to be executed
for testing new translations in a development server without re-running
pnpm start
.
Einakter uses LinguiJS to provide a multi-lingual
user interface. Translations are maintained in .po
files in the
src/locales. For updating translations the
pnpm run extract and pnpm run compile
commands can be used.
The code of this project is licensed under the MIT License.
The data files (data.yaml, originals.yaml) are licensed under CC BY 4.0.