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