weblate 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/COPYING +674 -0
  4. data/Gemfile +8 -0
  5. data/README.md +334 -0
  6. data/Rakefile +49 -0
  7. data/bin/console +11 -0
  8. data/bin/setup +8 -0
  9. data/bin/smoketest +14 -0
  10. data/bin/smoketest~ +0 -0
  11. data/docs/ActionEnum.md +15 -0
  12. data/docs/Addon.md +28 -0
  13. data/docs/AddonsApi.md +366 -0
  14. data/docs/AutoComponentList.md +20 -0
  15. data/docs/BasicUser.md +22 -0
  16. data/docs/BlankEnum.md +15 -0
  17. data/docs/CategoriesApi.md +520 -0
  18. data/docs/Category.md +30 -0
  19. data/docs/Change.md +42 -0
  20. data/docs/ChangesApi.md +163 -0
  21. data/docs/ColorEnum.md +15 -0
  22. data/docs/Component.md +146 -0
  23. data/docs/ComponentLanguageCodeStyle.md +49 -0
  24. data/docs/ComponentList.md +30 -0
  25. data/docs/ComponentListsApi.md +667 -0
  26. data/docs/ComponentsApi.md +1653 -0
  27. data/docs/ConflictsEnum.md +15 -0
  28. data/docs/DirectionEnum.md +15 -0
  29. data/docs/FileFormatEnum.md +15 -0
  30. data/docs/FrequencyEnum.md +15 -0
  31. data/docs/FuzzyEnum.md +15 -0
  32. data/docs/Group.md +40 -0
  33. data/docs/GroupsApi.md +1257 -0
  34. data/docs/Language.md +36 -0
  35. data/docs/LanguageCodeStyleEnum.md +15 -0
  36. data/docs/LanguagePlural.md +26 -0
  37. data/docs/LanguageSelectionEnum.md +15 -0
  38. data/docs/LanguagesApi.md +520 -0
  39. data/docs/LicenseEnum.md +15 -0
  40. data/docs/LockRequest.md +18 -0
  41. data/docs/Memory.md +34 -0
  42. data/docs/MemoryApi.md +448 -0
  43. data/docs/MergeStyleEnum.md +15 -0
  44. data/docs/MethodEnum.md +15 -0
  45. data/docs/Metrics.md +42 -0
  46. data/docs/MetricsApi.md +81 -0
  47. data/docs/NewLangEnum.md +15 -0
  48. data/docs/Notification.md +28 -0
  49. data/docs/NotificationEnum.md +15 -0
  50. data/docs/OperationEnum.md +15 -0
  51. data/docs/PaginatedAddonList.md +24 -0
  52. data/docs/PaginatedBasicUserList.md +24 -0
  53. data/docs/PaginatedCategoryList.md +24 -0
  54. data/docs/PaginatedChangeList.md +24 -0
  55. data/docs/PaginatedComponentList.md +24 -0
  56. data/docs/PaginatedComponentListList.md +24 -0
  57. data/docs/PaginatedGroupList.md +24 -0
  58. data/docs/PaginatedLanguageList.md +24 -0
  59. data/docs/PaginatedMemoryList.md +24 -0
  60. data/docs/PaginatedNotificationList.md +24 -0
  61. data/docs/PaginatedProjectList.md +24 -0
  62. data/docs/PaginatedRoleList.md +24 -0
  63. data/docs/PaginatedScreenshotList.md +24 -0
  64. data/docs/PaginatedTranslationList.md +24 -0
  65. data/docs/PaginatedUnitList.md +24 -0
  66. data/docs/PatchedAddon.md +28 -0
  67. data/docs/PatchedBasicUser.md +22 -0
  68. data/docs/PatchedCategory.md +30 -0
  69. data/docs/PatchedComponent.md +146 -0
  70. data/docs/PatchedComponentList.md +30 -0
  71. data/docs/PatchedGroup.md +40 -0
  72. data/docs/PatchedLanguage.md +36 -0
  73. data/docs/PatchedMemory.md +34 -0
  74. data/docs/PatchedNotification.md +28 -0
  75. data/docs/PatchedProject.md +58 -0
  76. data/docs/PatchedRole.md +24 -0
  77. data/docs/PatchedScreenshot.md +30 -0
  78. data/docs/PatchedUnitWrite.md +26 -0
  79. data/docs/PriorityEnum.md +15 -0
  80. data/docs/Project.md +58 -0
  81. data/docs/ProjectSelectionEnum.md +15 -0
  82. data/docs/ProjectsApi.md +1392 -0
  83. data/docs/RepoRequest.md +18 -0
  84. data/docs/Role.md +24 -0
  85. data/docs/RolesApi.md +448 -0
  86. data/docs/ScopeEnum.md +15 -0
  87. data/docs/Screenshot.md +30 -0
  88. data/docs/ScreenshotFile.md +18 -0
  89. data/docs/ScreenshotsApi.md +815 -0
  90. data/docs/SearchApi.md +75 -0
  91. data/docs/SourceEnum.md +15 -0
  92. data/docs/StateEnum.md +15 -0
  93. data/docs/TasksApi.md +145 -0
  94. data/docs/TextDirection.md +49 -0
  95. data/docs/Translation.md +80 -0
  96. data/docs/TranslationsApi.md +1028 -0
  97. data/docs/Unit.md +76 -0
  98. data/docs/UnitFlatLabels.md +24 -0
  99. data/docs/UnitLabels.md +24 -0
  100. data/docs/UnitWrite.md +26 -0
  101. data/docs/UnitsApi.md +376 -0
  102. data/docs/UploadRequest.md +28 -0
  103. data/docs/UploadRequestConflicts.md +49 -0
  104. data/docs/UploadRequestFuzzy.md +49 -0
  105. data/docs/UsersApi.md +1130 -0
  106. data/docs/VcsEnum.md +15 -0
  107. data/git_push.sh +57 -0
  108. data/lib/weblate/api/addons_api.rb +353 -0
  109. data/lib/weblate/api/categories_api.rb +495 -0
  110. data/lib/weblate/api/changes_api.rb +165 -0
  111. data/lib/weblate/api/component_lists_api.rb +642 -0
  112. data/lib/weblate/api/components_api.rb +1775 -0
  113. data/lib/weblate/api/groups_api.rb +1261 -0
  114. data/lib/weblate/api/languages_api.rb +495 -0
  115. data/lib/weblate/api/memory_api.rb +429 -0
  116. data/lib/weblate/api/metrics_api.rb +84 -0
  117. data/lib/weblate/api/projects_api.rb +1331 -0
  118. data/lib/weblate/api/roles_api.rb +429 -0
  119. data/lib/weblate/api/screenshots_api.rb +803 -0
  120. data/lib/weblate/api/search_api.rb +75 -0
  121. data/lib/weblate/api/tasks_api.rb +146 -0
  122. data/lib/weblate/api/translations_api.rb +1232 -0
  123. data/lib/weblate/api/units_api.rb +363 -0
  124. data/lib/weblate/api/users_api.rb +1104 -0
  125. data/lib/weblate/api_client.rb +437 -0
  126. data/lib/weblate/api_error.rb +58 -0
  127. data/lib/weblate/configuration.rb +392 -0
  128. data/lib/weblate/models/action_enum.rb +108 -0
  129. data/lib/weblate/models/addon.rb +314 -0
  130. data/lib/weblate/models/auto_component_list.rb +263 -0
  131. data/lib/weblate/models/basic_user.rb +292 -0
  132. data/lib/weblate/models/blank_enum.rb +39 -0
  133. data/lib/weblate/models/category.rb +361 -0
  134. data/lib/weblate/models/change.rb +408 -0
  135. data/lib/weblate/models/color_enum.rb +54 -0
  136. data/lib/weblate/models/component.rb +1377 -0
  137. data/lib/weblate/models/component_language_code_style.rb +106 -0
  138. data/lib/weblate/models/component_list.rb +366 -0
  139. data/lib/weblate/models/conflicts_enum.rb +41 -0
  140. data/lib/weblate/models/direction_enum.rb +40 -0
  141. data/lib/weblate/models/file_format_enum.rb +101 -0
  142. data/lib/weblate/models/frequency_enum.rb +43 -0
  143. data/lib/weblate/models/fuzzy_enum.rb +40 -0
  144. data/lib/weblate/models/group.rb +421 -0
  145. data/lib/weblate/models/language.rb +417 -0
  146. data/lib/weblate/models/language_code_style_enum.rb +51 -0
  147. data/lib/weblate/models/language_plural.rb +314 -0
  148. data/lib/weblate/models/language_selection_enum.rb +40 -0
  149. data/lib/weblate/models/license_enum.rb +677 -0
  150. data/lib/weblate/models/lock_request.rb +221 -0
  151. data/lib/weblate/models/memory.rb +329 -0
  152. data/lib/weblate/models/merge_style_enum.rb +41 -0
  153. data/lib/weblate/models/method_enum.rb +45 -0
  154. data/lib/weblate/models/metrics.rb +415 -0
  155. data/lib/weblate/models/new_lang_enum.rb +42 -0
  156. data/lib/weblate/models/notification.rb +323 -0
  157. data/lib/weblate/models/notification_enum.rb +60 -0
  158. data/lib/weblate/models/operation_enum.rb +43 -0
  159. data/lib/weblate/models/paginated_addon_list.rb +259 -0
  160. data/lib/weblate/models/paginated_basic_user_list.rb +259 -0
  161. data/lib/weblate/models/paginated_category_list.rb +259 -0
  162. data/lib/weblate/models/paginated_change_list.rb +259 -0
  163. data/lib/weblate/models/paginated_component_list.rb +259 -0
  164. data/lib/weblate/models/paginated_component_list_list.rb +259 -0
  165. data/lib/weblate/models/paginated_group_list.rb +259 -0
  166. data/lib/weblate/models/paginated_language_list.rb +259 -0
  167. data/lib/weblate/models/paginated_memory_list.rb +259 -0
  168. data/lib/weblate/models/paginated_notification_list.rb +259 -0
  169. data/lib/weblate/models/paginated_project_list.rb +259 -0
  170. data/lib/weblate/models/paginated_role_list.rb +259 -0
  171. data/lib/weblate/models/paginated_screenshot_list.rb +259 -0
  172. data/lib/weblate/models/paginated_translation_list.rb +259 -0
  173. data/lib/weblate/models/paginated_unit_list.rb +259 -0
  174. data/lib/weblate/models/patched_addon.rb +279 -0
  175. data/lib/weblate/models/patched_basic_user.rb +271 -0
  176. data/lib/weblate/models/patched_category.rb +319 -0
  177. data/lib/weblate/models/patched_component.rb +1242 -0
  178. data/lib/weblate/models/patched_component_list.rb +324 -0
  179. data/lib/weblate/models/patched_group.rb +365 -0
  180. data/lib/weblate/models/patched_language.rb +375 -0
  181. data/lib/weblate/models/patched_memory.rb +287 -0
  182. data/lib/weblate/models/patched_notification.rb +281 -0
  183. data/lib/weblate/models/patched_project.rb +472 -0
  184. data/lib/weblate/models/patched_role.rb +262 -0
  185. data/lib/weblate/models/patched_screenshot.rb +309 -0
  186. data/lib/weblate/models/patched_unit_write.rb +279 -0
  187. data/lib/weblate/models/priority_enum.rb +43 -0
  188. data/lib/weblate/models/project.rb +563 -0
  189. data/lib/weblate/models/project_selection_enum.rb +43 -0
  190. data/lib/weblate/models/repo_request.rb +243 -0
  191. data/lib/weblate/models/role.rb +290 -0
  192. data/lib/weblate/models/scope_enum.rb +43 -0
  193. data/lib/weblate/models/screenshot.rb +351 -0
  194. data/lib/weblate/models/screenshot_file.rb +221 -0
  195. data/lib/weblate/models/source_enum.rb +45 -0
  196. data/lib/weblate/models/state_enum.rb +43 -0
  197. data/lib/weblate/models/text_direction.rb +105 -0
  198. data/lib/weblate/models/translation.rb +760 -0
  199. data/lib/weblate/models/unit.rb +757 -0
  200. data/lib/weblate/models/unit_flat_labels.rb +315 -0
  201. data/lib/weblate/models/unit_labels.rb +315 -0
  202. data/lib/weblate/models/unit_write.rb +293 -0
  203. data/lib/weblate/models/upload_request.rb +307 -0
  204. data/lib/weblate/models/upload_request_conflicts.rb +105 -0
  205. data/lib/weblate/models/upload_request_fuzzy.rb +105 -0
  206. data/lib/weblate/models/vcs_enum.rb +46 -0
  207. data/lib/weblate/version.rb +15 -0
  208. data/lib/weblate.rb +135 -0
  209. data/manifest.scm +6 -0
  210. data/schema.patched.yaml +10113 -0
  211. data/schema.yaml +10116 -0
  212. data/sig/weblate.rbs +4 -0
  213. data/spec/api/addons_api_spec.rb +88 -0
  214. data/spec/api/categories_api_spec.rb +115 -0
  215. data/spec/api/changes_api_spec.rb +62 -0
  216. data/spec/api/component_lists_api_spec.rb +139 -0
  217. data/spec/api/components_api_spec.rb +307 -0
  218. data/spec/api/groups_api_spec.rb +236 -0
  219. data/spec/api/languages_api_spec.rb +115 -0
  220. data/spec/api/memory_api_spec.rb +104 -0
  221. data/spec/api/metrics_api_spec.rb +46 -0
  222. data/spec/api/projects_api_spec.rb +251 -0
  223. data/spec/api/roles_api_spec.rb +104 -0
  224. data/spec/api/screenshots_api_spec.rb +163 -0
  225. data/spec/api/search_api_spec.rb +45 -0
  226. data/spec/api/tasks_api_spec.rb +55 -0
  227. data/spec/api/translations_api_spec.rb +218 -0
  228. data/spec/api/units_api_spec.rb +93 -0
  229. data/spec/api/users_api_spec.rb +218 -0
  230. data/spec/models/action_enum_spec.rb +30 -0
  231. data/spec/models/addon_spec.rb +66 -0
  232. data/spec/models/auto_component_list_spec.rb +42 -0
  233. data/spec/models/basic_user_spec.rb +48 -0
  234. data/spec/models/blank_enum_spec.rb +30 -0
  235. data/spec/models/category_spec.rb +72 -0
  236. data/spec/models/change_spec.rb +108 -0
  237. data/spec/models/color_enum_spec.rb +30 -0
  238. data/spec/models/component_language_code_style_spec.rb +32 -0
  239. data/spec/models/component_list_spec.rb +72 -0
  240. data/spec/models/component_spec.rb +420 -0
  241. data/spec/models/conflicts_enum_spec.rb +30 -0
  242. data/spec/models/direction_enum_spec.rb +30 -0
  243. data/spec/models/file_format_enum_spec.rb +30 -0
  244. data/spec/models/frequency_enum_spec.rb +30 -0
  245. data/spec/models/fuzzy_enum_spec.rb +30 -0
  246. data/spec/models/group_spec.rb +102 -0
  247. data/spec/models/language_code_style_enum_spec.rb +30 -0
  248. data/spec/models/language_plural_spec.rb +60 -0
  249. data/spec/models/language_selection_enum_spec.rb +30 -0
  250. data/spec/models/language_spec.rb +90 -0
  251. data/spec/models/license_enum_spec.rb +30 -0
  252. data/spec/models/lock_request_spec.rb +36 -0
  253. data/spec/models/memory_spec.rb +84 -0
  254. data/spec/models/merge_style_enum_spec.rb +30 -0
  255. data/spec/models/method_enum_spec.rb +30 -0
  256. data/spec/models/metrics_spec.rb +108 -0
  257. data/spec/models/new_lang_enum_spec.rb +30 -0
  258. data/spec/models/notification_enum_spec.rb +30 -0
  259. data/spec/models/notification_spec.rb +66 -0
  260. data/spec/models/operation_enum_spec.rb +30 -0
  261. data/spec/models/paginated_addon_list_spec.rb +54 -0
  262. data/spec/models/paginated_basic_user_list_spec.rb +54 -0
  263. data/spec/models/paginated_category_list_spec.rb +54 -0
  264. data/spec/models/paginated_change_list_spec.rb +54 -0
  265. data/spec/models/paginated_component_list_list_spec.rb +54 -0
  266. data/spec/models/paginated_component_list_spec.rb +54 -0
  267. data/spec/models/paginated_group_list_spec.rb +54 -0
  268. data/spec/models/paginated_language_list_spec.rb +54 -0
  269. data/spec/models/paginated_memory_list_spec.rb +54 -0
  270. data/spec/models/paginated_notification_list_spec.rb +54 -0
  271. data/spec/models/paginated_project_list_spec.rb +54 -0
  272. data/spec/models/paginated_role_list_spec.rb +54 -0
  273. data/spec/models/paginated_screenshot_list_spec.rb +54 -0
  274. data/spec/models/paginated_translation_list_spec.rb +54 -0
  275. data/spec/models/paginated_unit_list_spec.rb +54 -0
  276. data/spec/models/patched_addon_spec.rb +66 -0
  277. data/spec/models/patched_basic_user_spec.rb +48 -0
  278. data/spec/models/patched_category_spec.rb +72 -0
  279. data/spec/models/patched_component_list_spec.rb +72 -0
  280. data/spec/models/patched_component_spec.rb +420 -0
  281. data/spec/models/patched_group_spec.rb +102 -0
  282. data/spec/models/patched_language_spec.rb +90 -0
  283. data/spec/models/patched_memory_spec.rb +84 -0
  284. data/spec/models/patched_notification_spec.rb +66 -0
  285. data/spec/models/patched_project_spec.rb +156 -0
  286. data/spec/models/patched_role_spec.rb +54 -0
  287. data/spec/models/patched_screenshot_spec.rb +72 -0
  288. data/spec/models/patched_unit_write_spec.rb +60 -0
  289. data/spec/models/priority_enum_spec.rb +30 -0
  290. data/spec/models/project_selection_enum_spec.rb +30 -0
  291. data/spec/models/project_spec.rb +156 -0
  292. data/spec/models/repo_request_spec.rb +36 -0
  293. data/spec/models/role_spec.rb +54 -0
  294. data/spec/models/scope_enum_spec.rb +30 -0
  295. data/spec/models/screenshot_file_spec.rb +36 -0
  296. data/spec/models/screenshot_spec.rb +72 -0
  297. data/spec/models/source_enum_spec.rb +30 -0
  298. data/spec/models/state_enum_spec.rb +30 -0
  299. data/spec/models/text_direction_spec.rb +32 -0
  300. data/spec/models/translation_spec.rb +222 -0
  301. data/spec/models/unit_flat_labels_spec.rb +54 -0
  302. data/spec/models/unit_labels_spec.rb +54 -0
  303. data/spec/models/unit_spec.rb +210 -0
  304. data/spec/models/unit_write_spec.rb +60 -0
  305. data/spec/models/upload_request_conflicts_spec.rb +32 -0
  306. data/spec/models/upload_request_fuzzy_spec.rb +32 -0
  307. data/spec/models/upload_request_spec.rb +66 -0
  308. data/spec/models/vcs_enum_spec.rb +30 -0
  309. data/spec/spec_helper.rb +111 -0
  310. data/weblate.gemspec +47 -0
  311. metadata +526 -0
@@ -0,0 +1,1028 @@
1
+ # Weblate::TranslationsApi
2
+
3
+ All URIs are relative to *https://hosted.weblate.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**translations_autotranslate_create**](TranslationsApi.md#translations_autotranslate_create) | **POST** /translations/{component__project__slug}/{component__slug}/{language__code}/autotranslate/ | |
8
+ | [**translations_changes_retrieve**](TranslationsApi.md#translations_changes_retrieve) | **GET** /translations/{component__project__slug}/{component__slug}/{language__code}/changes/ | |
9
+ | [**translations_destroy**](TranslationsApi.md#translations_destroy) | **DELETE** /translations/{component__project__slug}/{component__slug}/{language__code}/ | |
10
+ | [**translations_file_create**](TranslationsApi.md#translations_file_create) | **POST** /translations/{component__project__slug}/{component__slug}/{language__code}/file/ | |
11
+ | [**translations_file_retrieve**](TranslationsApi.md#translations_file_retrieve) | **GET** /translations/{component__project__slug}/{component__slug}/{language__code}/file/ | |
12
+ | [**translations_file_update**](TranslationsApi.md#translations_file_update) | **PUT** /translations/{component__project__slug}/{component__slug}/{language__code}/file/ | |
13
+ | [**translations_list**](TranslationsApi.md#translations_list) | **GET** /translations/ | |
14
+ | [**translations_repository_create**](TranslationsApi.md#translations_repository_create) | **POST** /translations/{component__project__slug}/{component__slug}/{language__code}/repository/ | |
15
+ | [**translations_repository_retrieve**](TranslationsApi.md#translations_repository_retrieve) | **GET** /translations/{component__project__slug}/{component__slug}/{language__code}/repository/ | |
16
+ | [**translations_retrieve**](TranslationsApi.md#translations_retrieve) | **GET** /translations/{component__project__slug}/{component__slug}/{language__code}/ | |
17
+ | [**translations_statistics_retrieve**](TranslationsApi.md#translations_statistics_retrieve) | **GET** /translations/{component__project__slug}/{component__slug}/{language__code}/statistics/ | |
18
+ | [**translations_units_create**](TranslationsApi.md#translations_units_create) | **POST** /translations/{component__project__slug}/{component__slug}/{language__code}/units/ | |
19
+ | [**translations_units_retrieve**](TranslationsApi.md#translations_units_retrieve) | **GET** /translations/{component__project__slug}/{component__slug}/{language__code}/units/ | |
20
+
21
+
22
+ ## translations_autotranslate_create
23
+
24
+ > <Translation> translations_autotranslate_create(component__project__slug, component__slug, language__code, translation)
25
+
26
+
27
+
28
+ Translation components API.
29
+
30
+ ### Examples
31
+
32
+ ```ruby
33
+ require 'time'
34
+ require 'weblate'
35
+ # setup authorization
36
+ Weblate.configure do |config|
37
+ # Configure API key authorization: tokenAuth
38
+ config.api_key['Authorization'] = 'YOUR API KEY'
39
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
40
+ # config.api_key_prefix['Authorization'] = 'Bearer'
41
+ end
42
+
43
+ api_instance = Weblate::TranslationsApi.new
44
+ component__project__slug = 'component__project__slug_example' # String |
45
+ component__slug = 'component__slug_example' # String |
46
+ language__code = 'language__code_example' # String |
47
+ translation = Weblate::Translation.new({language: Weblate::Language.new({id: 37, code: 'code_example', aliases: [3.56], web_url: 'web_url_example', url: 'url_example', statistics_url: 'statistics_url_example'}), component: Weblate::Component.new({name: 'name_example', slug: 'slug_example', id: 37, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), repo: 'repo_example', filemask: 'filemask_example', file_format: Weblate::FileFormatEnum::APPSTORE, license_url: 'license_url_example', web_url: 'web_url_example', url: 'url_example', repository_url: 'repository_url_example', translations_url: 'translations_url_example', statistics_url: 'statistics_url_example', lock_url: 'lock_url_example', links_url: 'links_url_example', changes_list_url: 'changes_list_url_example', task_url: 'task_url_example', credits_url: 'credits_url_example', addons: ['addons_example'], linked_component: 'linked_component_example'}), id: 37, filename: 'filename_example', web_url: 'web_url_example', share_url: 'share_url_example', translate_url: 'translate_url_example', url: 'url_example', is_template: false, is_source: false, total: 37, total_words: 37, translated: 37, translated_words: 37, translated_percent: 3.56, fuzzy: 37, fuzzy_words: 37, fuzzy_percent: 3.56, failing_checks: 37, failing_checks_words: 37, failing_checks_percent: 3.56, have_suggestion: 37, have_comment: 37, last_change: Time.now, last_author: 'last_author_example', repository_url: 'repository_url_example', file_url: 'file_url_example', statistics_url: 'statistics_url_example', changes_list_url: 'changes_list_url_example', units_list_url: 'units_list_url_example'}) # Translation |
48
+
49
+ begin
50
+
51
+ result = api_instance.translations_autotranslate_create(component__project__slug, component__slug, language__code, translation)
52
+ p result
53
+ rescue Weblate::ApiError => e
54
+ puts "Error when calling TranslationsApi->translations_autotranslate_create: #{e}"
55
+ end
56
+ ```
57
+
58
+ #### Using the translations_autotranslate_create_with_http_info variant
59
+
60
+ This returns an Array which contains the response data, status code and headers.
61
+
62
+ > <Array(<Translation>, Integer, Hash)> translations_autotranslate_create_with_http_info(component__project__slug, component__slug, language__code, translation)
63
+
64
+ ```ruby
65
+ begin
66
+
67
+ data, status_code, headers = api_instance.translations_autotranslate_create_with_http_info(component__project__slug, component__slug, language__code, translation)
68
+ p status_code # => 2xx
69
+ p headers # => { ... }
70
+ p data # => <Translation>
71
+ rescue Weblate::ApiError => e
72
+ puts "Error when calling TranslationsApi->translations_autotranslate_create_with_http_info: #{e}"
73
+ end
74
+ ```
75
+
76
+ ### Parameters
77
+
78
+ | Name | Type | Description | Notes |
79
+ | ---- | ---- | ----------- | ----- |
80
+ | **component__project__slug** | **String** | | |
81
+ | **component__slug** | **String** | | |
82
+ | **language__code** | **String** | | |
83
+ | **translation** | [**Translation**](Translation.md) | | |
84
+
85
+ ### Return type
86
+
87
+ [**Translation**](Translation.md)
88
+
89
+ ### Authorization
90
+
91
+ [tokenAuth](../README.md#tokenAuth)
92
+
93
+ ### HTTP request headers
94
+
95
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
96
+ - **Accept**: application/json
97
+
98
+
99
+ ## translations_changes_retrieve
100
+
101
+ > <Translation> translations_changes_retrieve(component__project__slug, component__slug, language__code)
102
+
103
+
104
+
105
+ Translation components API.
106
+
107
+ ### Examples
108
+
109
+ ```ruby
110
+ require 'time'
111
+ require 'weblate'
112
+ # setup authorization
113
+ Weblate.configure do |config|
114
+ # Configure API key authorization: tokenAuth
115
+ config.api_key['Authorization'] = 'YOUR API KEY'
116
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
117
+ # config.api_key_prefix['Authorization'] = 'Bearer'
118
+ end
119
+
120
+ api_instance = Weblate::TranslationsApi.new
121
+ component__project__slug = 'component__project__slug_example' # String |
122
+ component__slug = 'component__slug_example' # String |
123
+ language__code = 'language__code_example' # String |
124
+
125
+ begin
126
+
127
+ result = api_instance.translations_changes_retrieve(component__project__slug, component__slug, language__code)
128
+ p result
129
+ rescue Weblate::ApiError => e
130
+ puts "Error when calling TranslationsApi->translations_changes_retrieve: #{e}"
131
+ end
132
+ ```
133
+
134
+ #### Using the translations_changes_retrieve_with_http_info variant
135
+
136
+ This returns an Array which contains the response data, status code and headers.
137
+
138
+ > <Array(<Translation>, Integer, Hash)> translations_changes_retrieve_with_http_info(component__project__slug, component__slug, language__code)
139
+
140
+ ```ruby
141
+ begin
142
+
143
+ data, status_code, headers = api_instance.translations_changes_retrieve_with_http_info(component__project__slug, component__slug, language__code)
144
+ p status_code # => 2xx
145
+ p headers # => { ... }
146
+ p data # => <Translation>
147
+ rescue Weblate::ApiError => e
148
+ puts "Error when calling TranslationsApi->translations_changes_retrieve_with_http_info: #{e}"
149
+ end
150
+ ```
151
+
152
+ ### Parameters
153
+
154
+ | Name | Type | Description | Notes |
155
+ | ---- | ---- | ----------- | ----- |
156
+ | **component__project__slug** | **String** | | |
157
+ | **component__slug** | **String** | | |
158
+ | **language__code** | **String** | | |
159
+
160
+ ### Return type
161
+
162
+ [**Translation**](Translation.md)
163
+
164
+ ### Authorization
165
+
166
+ [tokenAuth](../README.md#tokenAuth)
167
+
168
+ ### HTTP request headers
169
+
170
+ - **Content-Type**: Not defined
171
+ - **Accept**: application/json
172
+
173
+
174
+ ## translations_destroy
175
+
176
+ > translations_destroy(component__project__slug, component__slug, language__code)
177
+
178
+
179
+
180
+ Translation components API.
181
+
182
+ ### Examples
183
+
184
+ ```ruby
185
+ require 'time'
186
+ require 'weblate'
187
+ # setup authorization
188
+ Weblate.configure do |config|
189
+ # Configure API key authorization: tokenAuth
190
+ config.api_key['Authorization'] = 'YOUR API KEY'
191
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
192
+ # config.api_key_prefix['Authorization'] = 'Bearer'
193
+ end
194
+
195
+ api_instance = Weblate::TranslationsApi.new
196
+ component__project__slug = 'component__project__slug_example' # String |
197
+ component__slug = 'component__slug_example' # String |
198
+ language__code = 'language__code_example' # String |
199
+
200
+ begin
201
+
202
+ api_instance.translations_destroy(component__project__slug, component__slug, language__code)
203
+ rescue Weblate::ApiError => e
204
+ puts "Error when calling TranslationsApi->translations_destroy: #{e}"
205
+ end
206
+ ```
207
+
208
+ #### Using the translations_destroy_with_http_info variant
209
+
210
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
211
+
212
+ > <Array(nil, Integer, Hash)> translations_destroy_with_http_info(component__project__slug, component__slug, language__code)
213
+
214
+ ```ruby
215
+ begin
216
+
217
+ data, status_code, headers = api_instance.translations_destroy_with_http_info(component__project__slug, component__slug, language__code)
218
+ p status_code # => 2xx
219
+ p headers # => { ... }
220
+ p data # => nil
221
+ rescue Weblate::ApiError => e
222
+ puts "Error when calling TranslationsApi->translations_destroy_with_http_info: #{e}"
223
+ end
224
+ ```
225
+
226
+ ### Parameters
227
+
228
+ | Name | Type | Description | Notes |
229
+ | ---- | ---- | ----------- | ----- |
230
+ | **component__project__slug** | **String** | | |
231
+ | **component__slug** | **String** | | |
232
+ | **language__code** | **String** | | |
233
+
234
+ ### Return type
235
+
236
+ nil (empty response body)
237
+
238
+ ### Authorization
239
+
240
+ [tokenAuth](../README.md#tokenAuth)
241
+
242
+ ### HTTP request headers
243
+
244
+ - **Content-Type**: Not defined
245
+ - **Accept**: Not defined
246
+
247
+
248
+ ## translations_file_create
249
+
250
+ > <UploadRequest> translations_file_create(component__project__slug, component__slug, language__code, file, opts)
251
+
252
+
253
+
254
+ Translation components API.
255
+
256
+ ### Examples
257
+
258
+ ```ruby
259
+ require 'time'
260
+ require 'weblate'
261
+ # setup authorization
262
+ Weblate.configure do |config|
263
+ # Configure API key authorization: tokenAuth
264
+ config.api_key['Authorization'] = 'YOUR API KEY'
265
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
266
+ # config.api_key_prefix['Authorization'] = 'Bearer'
267
+ end
268
+
269
+ api_instance = Weblate::TranslationsApi.new
270
+ component__project__slug = 'component__project__slug_example' # String |
271
+ component__slug = 'component__slug_example' # String |
272
+ language__code = 'language__code_example' # String |
273
+ file = 'file_example' # String |
274
+ opts = {
275
+ author_email: 'author_email_example', # String |
276
+ author_name: 'author_name_example', # String |
277
+ method: Weblate::MethodEnum::TRANSLATE, # MethodEnum |
278
+ fuzzy: Weblate::BlankEnum::EMPTY, # UploadRequestFuzzy |
279
+ conflicts: Weblate::BlankEnum::EMPTY # UploadRequestConflicts |
280
+ }
281
+
282
+ begin
283
+
284
+ result = api_instance.translations_file_create(component__project__slug, component__slug, language__code, file, opts)
285
+ p result
286
+ rescue Weblate::ApiError => e
287
+ puts "Error when calling TranslationsApi->translations_file_create: #{e}"
288
+ end
289
+ ```
290
+
291
+ #### Using the translations_file_create_with_http_info variant
292
+
293
+ This returns an Array which contains the response data, status code and headers.
294
+
295
+ > <Array(<UploadRequest>, Integer, Hash)> translations_file_create_with_http_info(component__project__slug, component__slug, language__code, file, opts)
296
+
297
+ ```ruby
298
+ begin
299
+
300
+ data, status_code, headers = api_instance.translations_file_create_with_http_info(component__project__slug, component__slug, language__code, file, opts)
301
+ p status_code # => 2xx
302
+ p headers # => { ... }
303
+ p data # => <UploadRequest>
304
+ rescue Weblate::ApiError => e
305
+ puts "Error when calling TranslationsApi->translations_file_create_with_http_info: #{e}"
306
+ end
307
+ ```
308
+
309
+ ### Parameters
310
+
311
+ | Name | Type | Description | Notes |
312
+ | ---- | ---- | ----------- | ----- |
313
+ | **component__project__slug** | **String** | | |
314
+ | **component__slug** | **String** | | |
315
+ | **language__code** | **String** | | |
316
+ | **file** | **String** | | |
317
+ | **author_email** | **String** | | [optional] |
318
+ | **author_name** | **String** | | [optional] |
319
+ | **method** | [**MethodEnum**](MethodEnum.md) | | [optional] |
320
+ | **fuzzy** | [**UploadRequestFuzzy**](UploadRequestFuzzy.md) | | [optional] |
321
+ | **conflicts** | [**UploadRequestConflicts**](UploadRequestConflicts.md) | | [optional] |
322
+
323
+ ### Return type
324
+
325
+ [**UploadRequest**](UploadRequest.md)
326
+
327
+ ### Authorization
328
+
329
+ [tokenAuth](../README.md#tokenAuth)
330
+
331
+ ### HTTP request headers
332
+
333
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
334
+ - **Accept**: application/json
335
+
336
+
337
+ ## translations_file_retrieve
338
+
339
+ > <UploadRequest> translations_file_retrieve(component__project__slug, component__slug, language__code)
340
+
341
+
342
+
343
+ Translation components API.
344
+
345
+ ### Examples
346
+
347
+ ```ruby
348
+ require 'time'
349
+ require 'weblate'
350
+ # setup authorization
351
+ Weblate.configure do |config|
352
+ # Configure API key authorization: tokenAuth
353
+ config.api_key['Authorization'] = 'YOUR API KEY'
354
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
355
+ # config.api_key_prefix['Authorization'] = 'Bearer'
356
+ end
357
+
358
+ api_instance = Weblate::TranslationsApi.new
359
+ component__project__slug = 'component__project__slug_example' # String |
360
+ component__slug = 'component__slug_example' # String |
361
+ language__code = 'language__code_example' # String |
362
+
363
+ begin
364
+
365
+ result = api_instance.translations_file_retrieve(component__project__slug, component__slug, language__code)
366
+ p result
367
+ rescue Weblate::ApiError => e
368
+ puts "Error when calling TranslationsApi->translations_file_retrieve: #{e}"
369
+ end
370
+ ```
371
+
372
+ #### Using the translations_file_retrieve_with_http_info variant
373
+
374
+ This returns an Array which contains the response data, status code and headers.
375
+
376
+ > <Array(<UploadRequest>, Integer, Hash)> translations_file_retrieve_with_http_info(component__project__slug, component__slug, language__code)
377
+
378
+ ```ruby
379
+ begin
380
+
381
+ data, status_code, headers = api_instance.translations_file_retrieve_with_http_info(component__project__slug, component__slug, language__code)
382
+ p status_code # => 2xx
383
+ p headers # => { ... }
384
+ p data # => <UploadRequest>
385
+ rescue Weblate::ApiError => e
386
+ puts "Error when calling TranslationsApi->translations_file_retrieve_with_http_info: #{e}"
387
+ end
388
+ ```
389
+
390
+ ### Parameters
391
+
392
+ | Name | Type | Description | Notes |
393
+ | ---- | ---- | ----------- | ----- |
394
+ | **component__project__slug** | **String** | | |
395
+ | **component__slug** | **String** | | |
396
+ | **language__code** | **String** | | |
397
+
398
+ ### Return type
399
+
400
+ [**UploadRequest**](UploadRequest.md)
401
+
402
+ ### Authorization
403
+
404
+ [tokenAuth](../README.md#tokenAuth)
405
+
406
+ ### HTTP request headers
407
+
408
+ - **Content-Type**: Not defined
409
+ - **Accept**: application/json
410
+
411
+
412
+ ## translations_file_update
413
+
414
+ > <UploadRequest> translations_file_update(component__project__slug, component__slug, language__code, file, opts)
415
+
416
+
417
+
418
+ Translation components API.
419
+
420
+ ### Examples
421
+
422
+ ```ruby
423
+ require 'time'
424
+ require 'weblate'
425
+ # setup authorization
426
+ Weblate.configure do |config|
427
+ # Configure API key authorization: tokenAuth
428
+ config.api_key['Authorization'] = 'YOUR API KEY'
429
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
430
+ # config.api_key_prefix['Authorization'] = 'Bearer'
431
+ end
432
+
433
+ api_instance = Weblate::TranslationsApi.new
434
+ component__project__slug = 'component__project__slug_example' # String |
435
+ component__slug = 'component__slug_example' # String |
436
+ language__code = 'language__code_example' # String |
437
+ file = 'file_example' # String |
438
+ opts = {
439
+ author_email: 'author_email_example', # String |
440
+ author_name: 'author_name_example', # String |
441
+ method: Weblate::MethodEnum::TRANSLATE, # MethodEnum |
442
+ fuzzy: Weblate::BlankEnum::EMPTY, # UploadRequestFuzzy |
443
+ conflicts: Weblate::BlankEnum::EMPTY # UploadRequestConflicts |
444
+ }
445
+
446
+ begin
447
+
448
+ result = api_instance.translations_file_update(component__project__slug, component__slug, language__code, file, opts)
449
+ p result
450
+ rescue Weblate::ApiError => e
451
+ puts "Error when calling TranslationsApi->translations_file_update: #{e}"
452
+ end
453
+ ```
454
+
455
+ #### Using the translations_file_update_with_http_info variant
456
+
457
+ This returns an Array which contains the response data, status code and headers.
458
+
459
+ > <Array(<UploadRequest>, Integer, Hash)> translations_file_update_with_http_info(component__project__slug, component__slug, language__code, file, opts)
460
+
461
+ ```ruby
462
+ begin
463
+
464
+ data, status_code, headers = api_instance.translations_file_update_with_http_info(component__project__slug, component__slug, language__code, file, opts)
465
+ p status_code # => 2xx
466
+ p headers # => { ... }
467
+ p data # => <UploadRequest>
468
+ rescue Weblate::ApiError => e
469
+ puts "Error when calling TranslationsApi->translations_file_update_with_http_info: #{e}"
470
+ end
471
+ ```
472
+
473
+ ### Parameters
474
+
475
+ | Name | Type | Description | Notes |
476
+ | ---- | ---- | ----------- | ----- |
477
+ | **component__project__slug** | **String** | | |
478
+ | **component__slug** | **String** | | |
479
+ | **language__code** | **String** | | |
480
+ | **file** | **String** | | |
481
+ | **author_email** | **String** | | [optional] |
482
+ | **author_name** | **String** | | [optional] |
483
+ | **method** | [**MethodEnum**](MethodEnum.md) | | [optional] |
484
+ | **fuzzy** | [**UploadRequestFuzzy**](UploadRequestFuzzy.md) | | [optional] |
485
+ | **conflicts** | [**UploadRequestConflicts**](UploadRequestConflicts.md) | | [optional] |
486
+
487
+ ### Return type
488
+
489
+ [**UploadRequest**](UploadRequest.md)
490
+
491
+ ### Authorization
492
+
493
+ [tokenAuth](../README.md#tokenAuth)
494
+
495
+ ### HTTP request headers
496
+
497
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
498
+ - **Accept**: application/json
499
+
500
+
501
+ ## translations_list
502
+
503
+ > <PaginatedTranslationList> translations_list(opts)
504
+
505
+
506
+
507
+ Translation components API.
508
+
509
+ ### Examples
510
+
511
+ ```ruby
512
+ require 'time'
513
+ require 'weblate'
514
+ # setup authorization
515
+ Weblate.configure do |config|
516
+ # Configure API key authorization: tokenAuth
517
+ config.api_key['Authorization'] = 'YOUR API KEY'
518
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
519
+ # config.api_key_prefix['Authorization'] = 'Bearer'
520
+ end
521
+
522
+ api_instance = Weblate::TranslationsApi.new
523
+ opts = {
524
+ page: 56, # Integer | A page number within the paginated result set.
525
+ page_size: 56 # Integer | Number of results to return per page.
526
+ }
527
+
528
+ begin
529
+
530
+ result = api_instance.translations_list(opts)
531
+ p result
532
+ rescue Weblate::ApiError => e
533
+ puts "Error when calling TranslationsApi->translations_list: #{e}"
534
+ end
535
+ ```
536
+
537
+ #### Using the translations_list_with_http_info variant
538
+
539
+ This returns an Array which contains the response data, status code and headers.
540
+
541
+ > <Array(<PaginatedTranslationList>, Integer, Hash)> translations_list_with_http_info(opts)
542
+
543
+ ```ruby
544
+ begin
545
+
546
+ data, status_code, headers = api_instance.translations_list_with_http_info(opts)
547
+ p status_code # => 2xx
548
+ p headers # => { ... }
549
+ p data # => <PaginatedTranslationList>
550
+ rescue Weblate::ApiError => e
551
+ puts "Error when calling TranslationsApi->translations_list_with_http_info: #{e}"
552
+ end
553
+ ```
554
+
555
+ ### Parameters
556
+
557
+ | Name | Type | Description | Notes |
558
+ | ---- | ---- | ----------- | ----- |
559
+ | **page** | **Integer** | A page number within the paginated result set. | [optional] |
560
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
561
+
562
+ ### Return type
563
+
564
+ [**PaginatedTranslationList**](PaginatedTranslationList.md)
565
+
566
+ ### Authorization
567
+
568
+ [tokenAuth](../README.md#tokenAuth)
569
+
570
+ ### HTTP request headers
571
+
572
+ - **Content-Type**: Not defined
573
+ - **Accept**: application/json
574
+
575
+
576
+ ## translations_repository_create
577
+
578
+ > <RepoRequest> translations_repository_create(component__project__slug, component__slug, language__code, repo_request)
579
+
580
+
581
+
582
+ Translation components API.
583
+
584
+ ### Examples
585
+
586
+ ```ruby
587
+ require 'time'
588
+ require 'weblate'
589
+ # setup authorization
590
+ Weblate.configure do |config|
591
+ # Configure API key authorization: tokenAuth
592
+ config.api_key['Authorization'] = 'YOUR API KEY'
593
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
594
+ # config.api_key_prefix['Authorization'] = 'Bearer'
595
+ end
596
+
597
+ api_instance = Weblate::TranslationsApi.new
598
+ component__project__slug = 'component__project__slug_example' # String |
599
+ component__slug = 'component__slug_example' # String |
600
+ language__code = 'language__code_example' # String |
601
+ repo_request = Weblate::RepoRequest.new({operation: Weblate::OperationEnum::COMMIT}) # RepoRequest |
602
+
603
+ begin
604
+
605
+ result = api_instance.translations_repository_create(component__project__slug, component__slug, language__code, repo_request)
606
+ p result
607
+ rescue Weblate::ApiError => e
608
+ puts "Error when calling TranslationsApi->translations_repository_create: #{e}"
609
+ end
610
+ ```
611
+
612
+ #### Using the translations_repository_create_with_http_info variant
613
+
614
+ This returns an Array which contains the response data, status code and headers.
615
+
616
+ > <Array(<RepoRequest>, Integer, Hash)> translations_repository_create_with_http_info(component__project__slug, component__slug, language__code, repo_request)
617
+
618
+ ```ruby
619
+ begin
620
+
621
+ data, status_code, headers = api_instance.translations_repository_create_with_http_info(component__project__slug, component__slug, language__code, repo_request)
622
+ p status_code # => 2xx
623
+ p headers # => { ... }
624
+ p data # => <RepoRequest>
625
+ rescue Weblate::ApiError => e
626
+ puts "Error when calling TranslationsApi->translations_repository_create_with_http_info: #{e}"
627
+ end
628
+ ```
629
+
630
+ ### Parameters
631
+
632
+ | Name | Type | Description | Notes |
633
+ | ---- | ---- | ----------- | ----- |
634
+ | **component__project__slug** | **String** | | |
635
+ | **component__slug** | **String** | | |
636
+ | **language__code** | **String** | | |
637
+ | **repo_request** | [**RepoRequest**](RepoRequest.md) | | |
638
+
639
+ ### Return type
640
+
641
+ [**RepoRequest**](RepoRequest.md)
642
+
643
+ ### Authorization
644
+
645
+ [tokenAuth](../README.md#tokenAuth)
646
+
647
+ ### HTTP request headers
648
+
649
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
650
+ - **Accept**: application/json
651
+
652
+
653
+ ## translations_repository_retrieve
654
+
655
+ > <RepoRequest> translations_repository_retrieve(component__project__slug, component__slug, language__code)
656
+
657
+
658
+
659
+ Translation components API.
660
+
661
+ ### Examples
662
+
663
+ ```ruby
664
+ require 'time'
665
+ require 'weblate'
666
+ # setup authorization
667
+ Weblate.configure do |config|
668
+ # Configure API key authorization: tokenAuth
669
+ config.api_key['Authorization'] = 'YOUR API KEY'
670
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
671
+ # config.api_key_prefix['Authorization'] = 'Bearer'
672
+ end
673
+
674
+ api_instance = Weblate::TranslationsApi.new
675
+ component__project__slug = 'component__project__slug_example' # String |
676
+ component__slug = 'component__slug_example' # String |
677
+ language__code = 'language__code_example' # String |
678
+
679
+ begin
680
+
681
+ result = api_instance.translations_repository_retrieve(component__project__slug, component__slug, language__code)
682
+ p result
683
+ rescue Weblate::ApiError => e
684
+ puts "Error when calling TranslationsApi->translations_repository_retrieve: #{e}"
685
+ end
686
+ ```
687
+
688
+ #### Using the translations_repository_retrieve_with_http_info variant
689
+
690
+ This returns an Array which contains the response data, status code and headers.
691
+
692
+ > <Array(<RepoRequest>, Integer, Hash)> translations_repository_retrieve_with_http_info(component__project__slug, component__slug, language__code)
693
+
694
+ ```ruby
695
+ begin
696
+
697
+ data, status_code, headers = api_instance.translations_repository_retrieve_with_http_info(component__project__slug, component__slug, language__code)
698
+ p status_code # => 2xx
699
+ p headers # => { ... }
700
+ p data # => <RepoRequest>
701
+ rescue Weblate::ApiError => e
702
+ puts "Error when calling TranslationsApi->translations_repository_retrieve_with_http_info: #{e}"
703
+ end
704
+ ```
705
+
706
+ ### Parameters
707
+
708
+ | Name | Type | Description | Notes |
709
+ | ---- | ---- | ----------- | ----- |
710
+ | **component__project__slug** | **String** | | |
711
+ | **component__slug** | **String** | | |
712
+ | **language__code** | **String** | | |
713
+
714
+ ### Return type
715
+
716
+ [**RepoRequest**](RepoRequest.md)
717
+
718
+ ### Authorization
719
+
720
+ [tokenAuth](../README.md#tokenAuth)
721
+
722
+ ### HTTP request headers
723
+
724
+ - **Content-Type**: Not defined
725
+ - **Accept**: application/json
726
+
727
+
728
+ ## translations_retrieve
729
+
730
+ > <Translation> translations_retrieve(component__project__slug, component__slug, language__code)
731
+
732
+
733
+
734
+ Translation components API.
735
+
736
+ ### Examples
737
+
738
+ ```ruby
739
+ require 'time'
740
+ require 'weblate'
741
+ # setup authorization
742
+ Weblate.configure do |config|
743
+ # Configure API key authorization: tokenAuth
744
+ config.api_key['Authorization'] = 'YOUR API KEY'
745
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
746
+ # config.api_key_prefix['Authorization'] = 'Bearer'
747
+ end
748
+
749
+ api_instance = Weblate::TranslationsApi.new
750
+ component__project__slug = 'component__project__slug_example' # String |
751
+ component__slug = 'component__slug_example' # String |
752
+ language__code = 'language__code_example' # String |
753
+
754
+ begin
755
+
756
+ result = api_instance.translations_retrieve(component__project__slug, component__slug, language__code)
757
+ p result
758
+ rescue Weblate::ApiError => e
759
+ puts "Error when calling TranslationsApi->translations_retrieve: #{e}"
760
+ end
761
+ ```
762
+
763
+ #### Using the translations_retrieve_with_http_info variant
764
+
765
+ This returns an Array which contains the response data, status code and headers.
766
+
767
+ > <Array(<Translation>, Integer, Hash)> translations_retrieve_with_http_info(component__project__slug, component__slug, language__code)
768
+
769
+ ```ruby
770
+ begin
771
+
772
+ data, status_code, headers = api_instance.translations_retrieve_with_http_info(component__project__slug, component__slug, language__code)
773
+ p status_code # => 2xx
774
+ p headers # => { ... }
775
+ p data # => <Translation>
776
+ rescue Weblate::ApiError => e
777
+ puts "Error when calling TranslationsApi->translations_retrieve_with_http_info: #{e}"
778
+ end
779
+ ```
780
+
781
+ ### Parameters
782
+
783
+ | Name | Type | Description | Notes |
784
+ | ---- | ---- | ----------- | ----- |
785
+ | **component__project__slug** | **String** | | |
786
+ | **component__slug** | **String** | | |
787
+ | **language__code** | **String** | | |
788
+
789
+ ### Return type
790
+
791
+ [**Translation**](Translation.md)
792
+
793
+ ### Authorization
794
+
795
+ [tokenAuth](../README.md#tokenAuth)
796
+
797
+ ### HTTP request headers
798
+
799
+ - **Content-Type**: Not defined
800
+ - **Accept**: application/json
801
+
802
+
803
+ ## translations_statistics_retrieve
804
+
805
+ > <Translation> translations_statistics_retrieve(component__project__slug, component__slug, language__code)
806
+
807
+
808
+
809
+ Translation components API.
810
+
811
+ ### Examples
812
+
813
+ ```ruby
814
+ require 'time'
815
+ require 'weblate'
816
+ # setup authorization
817
+ Weblate.configure do |config|
818
+ # Configure API key authorization: tokenAuth
819
+ config.api_key['Authorization'] = 'YOUR API KEY'
820
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
821
+ # config.api_key_prefix['Authorization'] = 'Bearer'
822
+ end
823
+
824
+ api_instance = Weblate::TranslationsApi.new
825
+ component__project__slug = 'component__project__slug_example' # String |
826
+ component__slug = 'component__slug_example' # String |
827
+ language__code = 'language__code_example' # String |
828
+
829
+ begin
830
+
831
+ result = api_instance.translations_statistics_retrieve(component__project__slug, component__slug, language__code)
832
+ p result
833
+ rescue Weblate::ApiError => e
834
+ puts "Error when calling TranslationsApi->translations_statistics_retrieve: #{e}"
835
+ end
836
+ ```
837
+
838
+ #### Using the translations_statistics_retrieve_with_http_info variant
839
+
840
+ This returns an Array which contains the response data, status code and headers.
841
+
842
+ > <Array(<Translation>, Integer, Hash)> translations_statistics_retrieve_with_http_info(component__project__slug, component__slug, language__code)
843
+
844
+ ```ruby
845
+ begin
846
+
847
+ data, status_code, headers = api_instance.translations_statistics_retrieve_with_http_info(component__project__slug, component__slug, language__code)
848
+ p status_code # => 2xx
849
+ p headers # => { ... }
850
+ p data # => <Translation>
851
+ rescue Weblate::ApiError => e
852
+ puts "Error when calling TranslationsApi->translations_statistics_retrieve_with_http_info: #{e}"
853
+ end
854
+ ```
855
+
856
+ ### Parameters
857
+
858
+ | Name | Type | Description | Notes |
859
+ | ---- | ---- | ----------- | ----- |
860
+ | **component__project__slug** | **String** | | |
861
+ | **component__slug** | **String** | | |
862
+ | **language__code** | **String** | | |
863
+
864
+ ### Return type
865
+
866
+ [**Translation**](Translation.md)
867
+
868
+ ### Authorization
869
+
870
+ [tokenAuth](../README.md#tokenAuth)
871
+
872
+ ### HTTP request headers
873
+
874
+ - **Content-Type**: Not defined
875
+ - **Accept**: application/json
876
+
877
+
878
+ ## translations_units_create
879
+
880
+ > <Translation> translations_units_create(component__project__slug, component__slug, language__code, translation)
881
+
882
+
883
+
884
+ Translation components API.
885
+
886
+ ### Examples
887
+
888
+ ```ruby
889
+ require 'time'
890
+ require 'weblate'
891
+ # setup authorization
892
+ Weblate.configure do |config|
893
+ # Configure API key authorization: tokenAuth
894
+ config.api_key['Authorization'] = 'YOUR API KEY'
895
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
896
+ # config.api_key_prefix['Authorization'] = 'Bearer'
897
+ end
898
+
899
+ api_instance = Weblate::TranslationsApi.new
900
+ component__project__slug = 'component__project__slug_example' # String |
901
+ component__slug = 'component__slug_example' # String |
902
+ language__code = 'language__code_example' # String |
903
+ translation = Weblate::Translation.new({language: Weblate::Language.new({id: 37, code: 'code_example', aliases: [3.56], web_url: 'web_url_example', url: 'url_example', statistics_url: 'statistics_url_example'}), component: Weblate::Component.new({name: 'name_example', slug: 'slug_example', id: 37, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), repo: 'repo_example', filemask: 'filemask_example', file_format: Weblate::FileFormatEnum::APPSTORE, license_url: 'license_url_example', web_url: 'web_url_example', url: 'url_example', repository_url: 'repository_url_example', translations_url: 'translations_url_example', statistics_url: 'statistics_url_example', lock_url: 'lock_url_example', links_url: 'links_url_example', changes_list_url: 'changes_list_url_example', task_url: 'task_url_example', credits_url: 'credits_url_example', addons: ['addons_example'], linked_component: 'linked_component_example'}), id: 37, filename: 'filename_example', web_url: 'web_url_example', share_url: 'share_url_example', translate_url: 'translate_url_example', url: 'url_example', is_template: false, is_source: false, total: 37, total_words: 37, translated: 37, translated_words: 37, translated_percent: 3.56, fuzzy: 37, fuzzy_words: 37, fuzzy_percent: 3.56, failing_checks: 37, failing_checks_words: 37, failing_checks_percent: 3.56, have_suggestion: 37, have_comment: 37, last_change: Time.now, last_author: 'last_author_example', repository_url: 'repository_url_example', file_url: 'file_url_example', statistics_url: 'statistics_url_example', changes_list_url: 'changes_list_url_example', units_list_url: 'units_list_url_example'}) # Translation |
904
+
905
+ begin
906
+
907
+ result = api_instance.translations_units_create(component__project__slug, component__slug, language__code, translation)
908
+ p result
909
+ rescue Weblate::ApiError => e
910
+ puts "Error when calling TranslationsApi->translations_units_create: #{e}"
911
+ end
912
+ ```
913
+
914
+ #### Using the translations_units_create_with_http_info variant
915
+
916
+ This returns an Array which contains the response data, status code and headers.
917
+
918
+ > <Array(<Translation>, Integer, Hash)> translations_units_create_with_http_info(component__project__slug, component__slug, language__code, translation)
919
+
920
+ ```ruby
921
+ begin
922
+
923
+ data, status_code, headers = api_instance.translations_units_create_with_http_info(component__project__slug, component__slug, language__code, translation)
924
+ p status_code # => 2xx
925
+ p headers # => { ... }
926
+ p data # => <Translation>
927
+ rescue Weblate::ApiError => e
928
+ puts "Error when calling TranslationsApi->translations_units_create_with_http_info: #{e}"
929
+ end
930
+ ```
931
+
932
+ ### Parameters
933
+
934
+ | Name | Type | Description | Notes |
935
+ | ---- | ---- | ----------- | ----- |
936
+ | **component__project__slug** | **String** | | |
937
+ | **component__slug** | **String** | | |
938
+ | **language__code** | **String** | | |
939
+ | **translation** | [**Translation**](Translation.md) | | |
940
+
941
+ ### Return type
942
+
943
+ [**Translation**](Translation.md)
944
+
945
+ ### Authorization
946
+
947
+ [tokenAuth](../README.md#tokenAuth)
948
+
949
+ ### HTTP request headers
950
+
951
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
952
+ - **Accept**: application/json
953
+
954
+
955
+ ## translations_units_retrieve
956
+
957
+ > <Translation> translations_units_retrieve(component__project__slug, component__slug, language__code)
958
+
959
+
960
+
961
+ Translation components API.
962
+
963
+ ### Examples
964
+
965
+ ```ruby
966
+ require 'time'
967
+ require 'weblate'
968
+ # setup authorization
969
+ Weblate.configure do |config|
970
+ # Configure API key authorization: tokenAuth
971
+ config.api_key['Authorization'] = 'YOUR API KEY'
972
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
973
+ # config.api_key_prefix['Authorization'] = 'Bearer'
974
+ end
975
+
976
+ api_instance = Weblate::TranslationsApi.new
977
+ component__project__slug = 'component__project__slug_example' # String |
978
+ component__slug = 'component__slug_example' # String |
979
+ language__code = 'language__code_example' # String |
980
+
981
+ begin
982
+
983
+ result = api_instance.translations_units_retrieve(component__project__slug, component__slug, language__code)
984
+ p result
985
+ rescue Weblate::ApiError => e
986
+ puts "Error when calling TranslationsApi->translations_units_retrieve: #{e}"
987
+ end
988
+ ```
989
+
990
+ #### Using the translations_units_retrieve_with_http_info variant
991
+
992
+ This returns an Array which contains the response data, status code and headers.
993
+
994
+ > <Array(<Translation>, Integer, Hash)> translations_units_retrieve_with_http_info(component__project__slug, component__slug, language__code)
995
+
996
+ ```ruby
997
+ begin
998
+
999
+ data, status_code, headers = api_instance.translations_units_retrieve_with_http_info(component__project__slug, component__slug, language__code)
1000
+ p status_code # => 2xx
1001
+ p headers # => { ... }
1002
+ p data # => <Translation>
1003
+ rescue Weblate::ApiError => e
1004
+ puts "Error when calling TranslationsApi->translations_units_retrieve_with_http_info: #{e}"
1005
+ end
1006
+ ```
1007
+
1008
+ ### Parameters
1009
+
1010
+ | Name | Type | Description | Notes |
1011
+ | ---- | ---- | ----------- | ----- |
1012
+ | **component__project__slug** | **String** | | |
1013
+ | **component__slug** | **String** | | |
1014
+ | **language__code** | **String** | | |
1015
+
1016
+ ### Return type
1017
+
1018
+ [**Translation**](Translation.md)
1019
+
1020
+ ### Authorization
1021
+
1022
+ [tokenAuth](../README.md#tokenAuth)
1023
+
1024
+ ### HTTP request headers
1025
+
1026
+ - **Content-Type**: Not defined
1027
+ - **Accept**: application/json
1028
+