README.md in crowdin-cli-0.2.0 vs README.md in crowdin-cli-0.2.1
- old
+ new
@@ -151,10 +151,54 @@
- /locale/en/templates
- /locale/en/workflow
```
+### Uploading CSV files via API
+
+```
+---
+project_identifier: test
+api_key: KeepTheAPIkeySecret
+base_url: http://api.crowdin.net
+base_path: /path/to/your/project
+
+files:
+ -
+ source: '/*.csv'
+ translation: '%two_letters_code%/%original_file_name%'
+ # Defines whether first line should be imported or it contains columns headers
+ first_line_contains_header: true
+ # Used only when uploading CSV file to define data columns mapping.
+ scheme: "identifier,source_phrase,translation,context,max_length"
+```
+
+#### Multicolumn CSV
+
+In case when CSV file should contains translations to all target languages you can use per-file option `multilingual_spreadsheet`.
+
+CSV file example:
+```
+identifier,source_phrase,context,Ukrainian,Russian,French
+ident1,Source 1,Context 1,,,
+ident2,Source 2,Context 2,,,
+ident3,Source 3,Context 3,,,
+```
+
+Configuration file example:
+```
+files:
+ -
+ source: multicolumn.csv
+ translation: multicolumn.csv
+ first_line_contains_header: true
+ scheme: "identifier,source_phrase,context,uk,ru,fr"
+ multilingual_spreadsheet: true
+
+```
+
+
## Example Configurations
### GetText Project
```
@@ -194,29 +238,10 @@
# acording to specification instead of just "uk"
de: de
ru: ru
```
-### Uploading CSV files via API
-
-```
----
-project_identifier: test
-api_key: KeepTheAPIkeySecret
-base_url: http://api.crowdin.net
-base_path: /path/to/your/project
-
-files:
- -
- source: '/*.csv'
- translation: '%two_letters_code%/%original_file_name%'
- # Defines whether first line should be imported or it contains columns headers
- first_line_contains_header: true
- # Used only when uploading CSV file to define data columns mapping.
- scheme: "identifier,source_phrase,translation,context,max_length"
-```
-
## Usage
When the configuration file is created you are ready to start using `crowdin-cli` to manage your localization resources and automate files synchronization.
We listed most typical commands that crowdin-cli is used for:
@@ -268,6 +293,6 @@
Author: Anton Maminov (anton.maminov@gmail.com)
Copyright: 2012-2013 [Crowdin.net](http://crowdin.net/)
-This project is licensed under the MIT license, a copy of which can be found in the LICENSE file.
+This project is licensed under the MIT license, a copy of which can be found in the LICENSE file.
\ No newline at end of file