/ crowdin.yml
crowdin.yml
  1  #
  2  # Your Crowdin credentials
  3  #
  4  
  5  "project_id": "554085"
  6  "api_token_env": "CROWDIN_API_TOKEN"
  7  "base_path": "."
  8  "base_url": "https://api.crowdin.com"
  9  
 10  #
 11  # Choose file structure in Crowdin
 12  # e.g. true or false
 13  #
 14  "preserve_hierarchy": true
 15  
 16  #
 17  # Files configuration
 18  #
 19  files: [
 20      {
 21        #
 22        # Source files filter
 23        # e.g. "/resources/en/*.json"
 24        #
 25        "source": "/locales/en-US.json",
 26  
 27        #
 28        # Where translations will be placed
 29        # e.g. "/resources/%two_letters_code%/%original_file_name%"
 30        #
 31        "translation": "/locales/%locale%.json",
 32        #
 33        # Files or directories for ignore
 34        # e.g. ["/**/?.txt", "/**/[0-9].txt", "/**/*\?*.txt"]
 35        #
 36        #"ignore" : [],
 37  
 38        #
 39        # The dest allows you to specify a file name in Crowdin
 40        # e.g. "/messages.json"
 41        #
 42        #"dest" : "",
 43  
 44        #
 45        # File type
 46        # e.g. "json"
 47        #
 48        #"type" : "",
 49  
 50        #
 51        # The parameter "update_option" is optional. If it is not set, after the files update the translations for changed strings will be removed. Use to fix typos and for minor changes in the source strings
 52        # e.g. "update_as_unapproved" or "update_without_changes"
 53        #
 54        #"update_option" : "",
 55  
 56        #
 57        # Start block (for XML only)
 58        #
 59  
 60        #
 61        # Defines whether to translate tags attributes.
 62        # e.g. 0 or 1  (Default is 1)
 63        #
 64        # "translate_attributes" : 1,
 65  
 66        #
 67        # Defines whether to translate texts placed inside the tags.
 68        # e.g. 0 or 1 (Default is 1)
 69        #
 70        # "translate_content" : 1,
 71  
 72        #
 73        # This is an array of strings, where each item is the XPaths to DOM element that should be imported
 74        # e.g. ["/content/text", "/content/text[@value]"]
 75        #
 76        # "translatable_elements" : [],
 77  
 78        #
 79        # Defines whether to split long texts into smaller text segments
 80        # e.g. 0 or 1 (Default is 1)
 81        #
 82        # "content_segmentation" : 1,
 83  
 84        #
 85        # End block (for XML only)
 86        #
 87  
 88        #
 89        # Start .properties block
 90        #
 91  
 92        #
 93        # Defines whether single quote should be escaped by another single quote or backslash in exported translations
 94        # e.g. 0 or 1 or 2 or 3 (Default is 3)
 95        # 0 - do not escape single quote;
 96        # 1 - escape single quote by another single quote;
 97        # 2 - escape single quote by backslash;
 98        # 3 - escape single quote by another single quote only in strings containing variables ( {0} ).
 99        #
100        # "escape_quotes" : 3,
101  
102        #
103        # Defines whether any special characters (=, :, ! and #) should be escaped by backslash in exported translations.
104        # e.g. 0 or 1 (Default is 0)
105        # 0 - do not escape special characters
106        # 1 - escape special characters by a backslash
107        #
108        # "escape_special_characters": 0
109        #
110  
111        #
112        # End .properties block
113        #
114  
115        #
116        # Does the first line contain header?
117        # e.g. true or false
118        #
119        #"first_line_contains_header" : true,
120  
121        #
122        # for spreadsheets
123        # e.g. "identifier,source_phrase,context,uk,ru,fr"
124        #
125        # "scheme" : "",
126      },
127    ]