README.md in crowdin-cli-0.0.13 vs README.md in crowdin-cli-0.0.14
- old
+ new
@@ -30,11 +30,11 @@
Create a `crowdin.yaml` YAML file in your root project directory with the following structure:
```
---
-project_id: test
+project_idenfier: test
api_key: KeepTheAPIkeySecret
base_url: http://api.crowdin.net
base_path: /path/to/your/project
files:
@@ -42,17 +42,17 @@
source: /locale/en/LC_MESSAGES/messages.po
translation: /locale/%two_letters_code%/LC_MESSAGES/%original_file_name%
```
* `api_key` - Crowdin Project API key
-* `project_id` - Crowdin project name
+* `project_identifier` - Crowdin project name
* `base_url` - (default: http://api.crowdin.net)
* `base_path` - defines what directory we have to scan(default: current directory)
* `files`
* `source` - defines only files we will upload as sources
* `translation` - attribute defines where translations should be placed after downloading (also we have to check those path to detect and upload existing translations)
-
+
Use the following placeholders to put appropriate variables into the resulting file name:
* `%language%` - Language name (i.e. Ukrainian)
* `%two_letters_code%` - Language code ISO 639-1 (i.e. uk)
* `%three_letters_code%` - Language code ISO 639-2/T (i.e. ukr)
* `%locale%` - Locale (like uk-UA)
@@ -75,11 +75,11 @@
Also you can add and upload all directories mathing the pattern including all nested files and localizable files.
Create a `crowdin.yaml` YAML file in your root project directory with the following structure:
```
---
-project_id: test
+project_identifier: test
api_key: KeepTheAPIkeySecret
base_url: http://api.crowdin.net
base_path: /path/to/your/project
files:
@@ -90,20 +90,21 @@
Languages mapping.
```
---
-project_id: test
+project_identifier: test
api_key: KeepTheAPIkeySecret
base_url: http://api.crowdin.net
base_path: /path/to/your/project
files:
-
source: /locale/en/**/*.po
translation: /locale/%two_letters_code%/**/%original_file_name%
languages_mapping:
- '%two_letters_code%':
+ two_letters_code:
+ # crowdin_language_code: local_name
ru: ros
uk: ukr
```
## Usage