README.md in crowdin-cli-0.0.8 vs README.md in crowdin-cli-0.0.9

- old
+ new

@@ -36,11 +36,11 @@ base_path: /path/to/your/project files: - source: /locale/en/LC_MESSAGES/messages.po - translation: /locale/%two_letter_code%/LC_MESSAGES/%original_file_name% + translation: /locale/%two_letters_code%/LC_MESSAGES/%original_file_name% ``` * `api_key` - Crowdin Project API key * `project_id` - Crowdin project name * `base_url` - (default: http://api.crowdin.net) @@ -49,12 +49,12 @@ * `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_letter_code%` - Language code ISO 639-1 (i.e. uk) - * `%three_letter_code%` - Language code ISO 639-2/T (i.e. ukr) + * `%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) * `%locale_with_underscore%` - Locale (i.e. uk_UA) * `%original_file_name%` - Original file name * `%android_code%` - Android Locale identifier used to name "values-" directories * `%original_path%` - Take parent folders names in Crowdin project to build file path in resulted bundle @@ -65,11 +65,11 @@ ``` /values-%android_code%/%original_file_name% ``` Example for Gettext projects: ``` - /locale/%two_letter_code%/LC_MESSAGES/%original_file_name% + /locale/%two_letters_code%/LC_MESSAGES/%original_file_name% ``` 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: @@ -81,10 +81,10 @@ base_path: /path/to/your/project files: - source: /locale/en/**/*.po - translation: /locale/%two_letter_code%/**/%original_file_name% + translation: /locale/%two_letters_code%/**/%original_file_name% ``` ## Usage ## Supported Rubies