### Overview

These scripts will do the following:
- create_project.py: creates new POEditor projects and sets the project with the default languages we use at The Orchard.
- add_contributor.py: adds admin or contributor to a POEditor project.

### Installation

The installation is very straightforward, but make sure you are using at least python 3.6
```
python -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
```

### Running

#### create_project.py

When all dependencies have been installed, you can run this script by running the following command providing a POEditor API Key and the name of the project you would like to create:
```
python create_project.py -a API_KEY -p my-new-project
```

or

```
python create_project.py --api-key API_KEY -project-name my-new-project
```

#### add_contributor.py

When all dependencies have been installed, you can run this script by running the following command providing a POEditor API Key, the project name, a username (this should have a first and last name. ex: "John Smith"), and an email address.

If adding to contribute to a project as Admin:

```
python add_contributor.py -a API_KEY -p my-new-project -u "John Smith" -e jsmith@domain.com -x True
```

If adding to contribute to a project as a Contributor:

```
python add_contributor.py -a API_KEY -p my-new-project -u "John Smith" -e jsmith@domain.com -l en
```

If a contributor needs access to more than one language, you can add the same contributor and just use a different language:

```
python add_contributor.py -a API_KEY -p my-new-project -u "John Smith" -e jsmith@domain.com -l en
python add_contributor.py -a API_KEY -p my-new-project -u "John Smith" -e jsmith@domain.com -l ja
```

List of support languages:
```
zh-CN - Chinese
zh-TW - Chinese (Taiwan)
fr - French
de - German
en - English
it - Italian
ja - Japanese
ko - Korean
pt - Portuguese
ru - Russian
es - Spanish
tr - Turkish
```