crowdin.yml 3.3 KB

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