Developed for Unfolding word by SevenX https://sevenxhq.com in Collaboration with UnfoldingWord
- Danny Weiss : Product Manager and Data scientist
- Binu Alexander : Research and Geolinguistics
- Arpit Jacob : Technical Architecture, UX/UI Design, Project Managment
- Samuel John : Full stack developer, Leaflet, Language Data Visualization
- Kalisa : Full stack web and gis developer
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
The database dumps are compressed in a tar.gz file. Extract them before proceeding:
cd data
tar -xzf db_backup.tar.gz
- PostgreSQL installed on your system
- PostGIS extension available
- The extracted directory will have two files
ol_schema.sql
(schema) andol_data.sql
(data).
psql -U postgres
CREATE DATABASE your_database_name;
\c your_database_name
psql -d your_database_name -f schema.sql -f data.sql
The following instructions are related to the issue #324
-
Get an http rest client like Insomnia or Postman or ThunderClient or any other
-
Make a POST request to the following endpoint:
{url of openlanguages}/api/automation/minorLanguages
-
Pass in the minor & major languages csv file as a form-data with the key
minorLanguages
and the value as the csv file and with the keymajorLanguages
and the value as the csv file. -
You can format the outup of the key by passing in
json_key_format
with the following syntax{mjl} ({mjl_id})
anything in the curly braces will be replaced with the value. In the code example above, the output will beEnglish (en)
. You can change it toEnglish - en
by just changing the value of thejson_key_format
to{mjl} - {mjl_id}