phrase 2.7.1 → 2.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -21
  3. data/docs/BlacklistedKeyCreateParameters.md +1 -1
  4. data/docs/BlacklistedKeyUpdateParameters.md +1 -1
  5. data/docs/BlacklistedKeysApi.md +20 -20
  6. data/docs/DistributionCreateParameters.md +2 -0
  7. data/docs/DistributionUpdateParameters.md +2 -0
  8. data/docs/GlossariesApi.md +20 -20
  9. data/docs/GlossaryTermTranslationsApi.md +12 -12
  10. data/docs/GlossaryTermsApi.md +20 -20
  11. data/docs/Locale.md +2 -0
  12. data/docs/LocaleCreateParameters.md +2 -0
  13. data/docs/LocaleDetails.md +2 -0
  14. data/docs/LocaleUpdateParameters.md +2 -0
  15. data/docs/VersionsHistoryApi.md +1 -1
  16. data/lib/phrase/api/blacklisted_keys_api.rb +20 -20
  17. data/lib/phrase/api/glossaries_api.rb +20 -20
  18. data/lib/phrase/api/glossary_term_translations_api.rb +12 -12
  19. data/lib/phrase/api/glossary_terms_api.rb +20 -20
  20. data/lib/phrase/api/versions_history_api.rb +2 -2
  21. data/lib/phrase/models/blacklisted_key_create_parameters.rb +1 -1
  22. data/lib/phrase/models/blacklisted_key_update_parameters.rb +1 -1
  23. data/lib/phrase/models/distribution_create_parameters.rb +11 -1
  24. data/lib/phrase/models/distribution_update_parameters.rb +11 -1
  25. data/lib/phrase/models/locale.rb +10 -1
  26. data/lib/phrase/models/locale_create_parameters.rb +11 -1
  27. data/lib/phrase/models/locale_details.rb +10 -1
  28. data/lib/phrase/models/locale_update_parameters.rb +11 -1
  29. data/lib/phrase/version.rb +1 -1
  30. data/spec/api/blacklisted_keys_api_spec.rb +10 -10
  31. data/spec/api/glossaries_api_spec.rb +10 -10
  32. data/spec/api/glossary_term_translations_api_spec.rb +6 -6
  33. data/spec/api/glossary_terms_api_spec.rb +10 -10
  34. data/spec/api/versions_history_api_spec.rb +1 -1
  35. data/spec/models/distribution_create_parameters_spec.rb +6 -0
  36. data/spec/models/distribution_update_parameters_spec.rb +6 -0
  37. data/spec/models/locale_create_parameters_spec.rb +6 -0
  38. data/spec/models/locale_details_spec.rb +6 -0
  39. data/spec/models/locale_spec.rb +6 -0
  40. data/spec/models/locale_update_parameters_spec.rb +6 -0
  41. metadata +200 -200
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62ab3ca7c47d1c5c266a466aeda8cc9dac40f0d5330ae3f8be59259a950d858d
4
- data.tar.gz: b93dbcdd89d91e22d73b35196aa553e71f7b4f7484fba64d94ffe113d64add3b
3
+ metadata.gz: d45d77a489a122ea07543533c12e768ec5ce0998474d536afff2daade998f869
4
+ data.tar.gz: 19cc3226385f60568d0d4f3d45947e578e928f28b1656d9c11929381793de217
5
5
  SHA512:
6
- metadata.gz: 361380faae2aa14ce6a3e553dd2babf8d8b393930ad8c37ce7ce6f55be8ae4b9564fe5726034c2d2509ae12fd00ca0855ea3fade7aaad857356992c4e30ba39c
7
- data.tar.gz: 785ac620370cb9aef4904f56f7816ce568bec2728d86f553dc1de0ad6140d96dab8f7d4cd34f42fd751895ecb414f228956bbeef456593f089e5143c8987899b
6
+ metadata.gz: 4e592fc085a9e53b7e7bcbeae4cdb199517959687634a98216ba268468699e061e5b5fd978596a2febbd1653a22a8f0393cdb0c9d36c8509dd5cf14225a96732
7
+ data.tar.gz: 650ed49f24f422a5e24af79f0e1c95ab3e4f04a160e2a037c88b4a7299a6434f3290307e079da3e62c9f52b4948db460d3156ad439024f5addd516e05b5aa793
data/README.md CHANGED
@@ -7,7 +7,7 @@ Phrase is a translation management platform for software projects. You can colla
7
7
  ## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 2.7.1
10
+ - Package version: 2.7.2
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
13
13
 
@@ -56,10 +56,10 @@ gem build phrase.gemspec
56
56
  Then install the gem locally:
57
57
 
58
58
  ```shell
59
- gem install ./phrase-2.7.1.gem
59
+ gem install ./phrase-2.7.2.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-2.7.1.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-2.7.2.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -118,11 +118,11 @@ Class | Method | HTTP request | Description
118
118
  *Phrase::BitbucketSyncApi* | [**bitbucket_sync_export**](docs/BitbucketSyncApi.md#bitbucket_sync_export) | **POST** /bitbucket_syncs/{id}/export | Export from Phrase to Bitbucket
119
119
  *Phrase::BitbucketSyncApi* | [**bitbucket_sync_import**](docs/BitbucketSyncApi.md#bitbucket_sync_import) | **POST** /bitbucket_syncs/{id}/import | Import to Phrase from Bitbucket
120
120
  *Phrase::BitbucketSyncApi* | [**bitbucket_syncs_list**](docs/BitbucketSyncApi.md#bitbucket_syncs_list) | **GET** /bitbucket_syncs | List Bitbucket syncs
121
- *Phrase::BlacklistedKeysApi* | [**blacklisted_key_create**](docs/BlacklistedKeysApi.md#blacklisted_key_create) | **POST** /projects/{project_id}/blacklisted_keys | Create a blacklisted key
122
- *Phrase::BlacklistedKeysApi* | [**blacklisted_key_delete**](docs/BlacklistedKeysApi.md#blacklisted_key_delete) | **DELETE** /projects/{project_id}/blacklisted_keys/{id} | Delete a blacklisted key
123
- *Phrase::BlacklistedKeysApi* | [**blacklisted_key_show**](docs/BlacklistedKeysApi.md#blacklisted_key_show) | **GET** /projects/{project_id}/blacklisted_keys/{id} | Get a single blacklisted key
124
- *Phrase::BlacklistedKeysApi* | [**blacklisted_key_update**](docs/BlacklistedKeysApi.md#blacklisted_key_update) | **PATCH** /projects/{project_id}/blacklisted_keys/{id} | Update a blacklisted key
125
- *Phrase::BlacklistedKeysApi* | [**blacklisted_keys_list**](docs/BlacklistedKeysApi.md#blacklisted_keys_list) | **GET** /projects/{project_id}/blacklisted_keys | List blacklisted keys
121
+ *Phrase::BlacklistedKeysApi* | [**blacklisted_key_create**](docs/BlacklistedKeysApi.md#blacklisted_key_create) | **POST** /projects/{project_id}/blacklisted_keys | Create a blocked key
122
+ *Phrase::BlacklistedKeysApi* | [**blacklisted_key_delete**](docs/BlacklistedKeysApi.md#blacklisted_key_delete) | **DELETE** /projects/{project_id}/blacklisted_keys/{id} | Delete a blocked key
123
+ *Phrase::BlacklistedKeysApi* | [**blacklisted_key_show**](docs/BlacklistedKeysApi.md#blacklisted_key_show) | **GET** /projects/{project_id}/blacklisted_keys/{id} | Get a single blocked key
124
+ *Phrase::BlacklistedKeysApi* | [**blacklisted_key_update**](docs/BlacklistedKeysApi.md#blacklisted_key_update) | **PATCH** /projects/{project_id}/blacklisted_keys/{id} | Update a blocked key
125
+ *Phrase::BlacklistedKeysApi* | [**blacklisted_keys_list**](docs/BlacklistedKeysApi.md#blacklisted_keys_list) | **GET** /projects/{project_id}/blacklisted_keys | List blocked keys
126
126
  *Phrase::BranchesApi* | [**branch_compare**](docs/BranchesApi.md#branch_compare) | **GET** /projects/{project_id}/branches/{name}/compare | Compare branches
127
127
  *Phrase::BranchesApi* | [**branch_create**](docs/BranchesApi.md#branch_create) | **POST** /projects/{project_id}/branches | Create a branch
128
128
  *Phrase::BranchesApi* | [**branch_delete**](docs/BranchesApi.md#branch_delete) | **DELETE** /projects/{project_id}/branches/{name} | Delete a branch
@@ -155,19 +155,19 @@ Class | Method | HTTP request | Description
155
155
  *Phrase::GitLabSyncApi* | [**gitlab_sync_list**](docs/GitLabSyncApi.md#gitlab_sync_list) | **GET** /gitlab_syncs | List GitLab syncs
156
156
  *Phrase::GitLabSyncApi* | [**gitlab_sync_show**](docs/GitLabSyncApi.md#gitlab_sync_show) | **GET** /gitlab_syncs/{id} | Get single Sync Setting
157
157
  *Phrase::GitLabSyncApi* | [**gitlab_sync_update**](docs/GitLabSyncApi.md#gitlab_sync_update) | **PUT** /gitlab_syncs/{id} | Update single Sync Setting
158
- *Phrase::GlossariesApi* | [**glossaries_list**](docs/GlossariesApi.md#glossaries_list) | **GET** /accounts/{account_id}/glossaries | List glossaries
159
- *Phrase::GlossariesApi* | [**glossary_create**](docs/GlossariesApi.md#glossary_create) | **POST** /accounts/{account_id}/glossaries | Create a glossary
160
- *Phrase::GlossariesApi* | [**glossary_delete**](docs/GlossariesApi.md#glossary_delete) | **DELETE** /accounts/{account_id}/glossaries/{id} | Delete a glossary
161
- *Phrase::GlossariesApi* | [**glossary_show**](docs/GlossariesApi.md#glossary_show) | **GET** /accounts/{account_id}/glossaries/{id} | Get a single glossary
162
- *Phrase::GlossariesApi* | [**glossary_update**](docs/GlossariesApi.md#glossary_update) | **PATCH** /accounts/{account_id}/glossaries/{id} | Update a glossary
163
- *Phrase::GlossaryTermTranslationsApi* | [**glossary_term_translation_create**](docs/GlossaryTermTranslationsApi.md#glossary_term_translation_create) | **POST** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations | Create a glossary term translation
164
- *Phrase::GlossaryTermTranslationsApi* | [**glossary_term_translation_delete**](docs/GlossaryTermTranslationsApi.md#glossary_term_translation_delete) | **DELETE** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} | Delete a glossary term translation
165
- *Phrase::GlossaryTermTranslationsApi* | [**glossary_term_translation_update**](docs/GlossaryTermTranslationsApi.md#glossary_term_translation_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} | Update a glossary term translation
166
- *Phrase::GlossaryTermsApi* | [**glossary_term_create**](docs/GlossaryTermsApi.md#glossary_term_create) | **POST** /accounts/{account_id}/glossaries/{glossary_id}/terms | Create a glossary term
167
- *Phrase::GlossaryTermsApi* | [**glossary_term_delete**](docs/GlossaryTermsApi.md#glossary_term_delete) | **DELETE** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Delete a glossary term
168
- *Phrase::GlossaryTermsApi* | [**glossary_term_show**](docs/GlossaryTermsApi.md#glossary_term_show) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Get a single glossary term
169
- *Phrase::GlossaryTermsApi* | [**glossary_term_update**](docs/GlossaryTermsApi.md#glossary_term_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Update a glossary term
170
- *Phrase::GlossaryTermsApi* | [**glossary_terms_list**](docs/GlossaryTermsApi.md#glossary_terms_list) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms | List glossary terms
158
+ *Phrase::GlossariesApi* | [**glossaries_list**](docs/GlossariesApi.md#glossaries_list) | **GET** /accounts/{account_id}/glossaries | List term bases
159
+ *Phrase::GlossariesApi* | [**glossary_create**](docs/GlossariesApi.md#glossary_create) | **POST** /accounts/{account_id}/glossaries | Create a term base
160
+ *Phrase::GlossariesApi* | [**glossary_delete**](docs/GlossariesApi.md#glossary_delete) | **DELETE** /accounts/{account_id}/glossaries/{id} | Delete a term base
161
+ *Phrase::GlossariesApi* | [**glossary_show**](docs/GlossariesApi.md#glossary_show) | **GET** /accounts/{account_id}/glossaries/{id} | Get a single term base
162
+ *Phrase::GlossariesApi* | [**glossary_update**](docs/GlossariesApi.md#glossary_update) | **PATCH** /accounts/{account_id}/glossaries/{id} | Update a term base
163
+ *Phrase::GlossaryTermTranslationsApi* | [**glossary_term_translation_create**](docs/GlossaryTermTranslationsApi.md#glossary_term_translation_create) | **POST** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations | Create a translation for a term
164
+ *Phrase::GlossaryTermTranslationsApi* | [**glossary_term_translation_delete**](docs/GlossaryTermTranslationsApi.md#glossary_term_translation_delete) | **DELETE** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} | Delete a translation for a term
165
+ *Phrase::GlossaryTermTranslationsApi* | [**glossary_term_translation_update**](docs/GlossaryTermTranslationsApi.md#glossary_term_translation_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} | Update a translation for a term
166
+ *Phrase::GlossaryTermsApi* | [**glossary_term_create**](docs/GlossaryTermsApi.md#glossary_term_create) | **POST** /accounts/{account_id}/glossaries/{glossary_id}/terms | Create a term
167
+ *Phrase::GlossaryTermsApi* | [**glossary_term_delete**](docs/GlossaryTermsApi.md#glossary_term_delete) | **DELETE** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Delete a term
168
+ *Phrase::GlossaryTermsApi* | [**glossary_term_show**](docs/GlossaryTermsApi.md#glossary_term_show) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Get a single term
169
+ *Phrase::GlossaryTermsApi* | [**glossary_term_update**](docs/GlossaryTermsApi.md#glossary_term_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Update a term
170
+ *Phrase::GlossaryTermsApi* | [**glossary_terms_list**](docs/GlossaryTermsApi.md#glossary_terms_list) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms | List terms
171
171
  *Phrase::ICUApi* | [**icu_skeleton**](docs/ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build icu skeletons
172
172
  *Phrase::InvitationsApi* | [**invitation_create**](docs/InvitationsApi.md#invitation_create) | **POST** /accounts/{account_id}/invitations | Create a new invitation
173
173
  *Phrase::InvitationsApi* | [**invitation_delete**](docs/InvitationsApi.md#invitation_delete) | **DELETE** /accounts/{account_id}/invitations/{id} | Delete an invitation
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Blacklisted key name | [optional]
7
+ **name** | **String** | Blocked key name | [optional]
8
8
 
9
9
  ## Code Sample
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Blacklisted key name | [optional]
7
+ **name** | **String** | Blocked key name | [optional]
8
8
 
9
9
  ## Code Sample
10
10
 
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.phrase.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**blacklisted_key_create**](BlacklistedKeysApi.md#blacklisted_key_create) | **POST** /projects/{project_id}/blacklisted_keys | Create a blacklisted key
8
- [**blacklisted_key_delete**](BlacklistedKeysApi.md#blacklisted_key_delete) | **DELETE** /projects/{project_id}/blacklisted_keys/{id} | Delete a blacklisted key
9
- [**blacklisted_key_show**](BlacklistedKeysApi.md#blacklisted_key_show) | **GET** /projects/{project_id}/blacklisted_keys/{id} | Get a single blacklisted key
10
- [**blacklisted_key_update**](BlacklistedKeysApi.md#blacklisted_key_update) | **PATCH** /projects/{project_id}/blacklisted_keys/{id} | Update a blacklisted key
11
- [**blacklisted_keys_list**](BlacklistedKeysApi.md#blacklisted_keys_list) | **GET** /projects/{project_id}/blacklisted_keys | List blacklisted keys
7
+ [**blacklisted_key_create**](BlacklistedKeysApi.md#blacklisted_key_create) | **POST** /projects/{project_id}/blacklisted_keys | Create a blocked key
8
+ [**blacklisted_key_delete**](BlacklistedKeysApi.md#blacklisted_key_delete) | **DELETE** /projects/{project_id}/blacklisted_keys/{id} | Delete a blocked key
9
+ [**blacklisted_key_show**](BlacklistedKeysApi.md#blacklisted_key_show) | **GET** /projects/{project_id}/blacklisted_keys/{id} | Get a single blocked key
10
+ [**blacklisted_key_update**](BlacklistedKeysApi.md#blacklisted_key_update) | **PATCH** /projects/{project_id}/blacklisted_keys/{id} | Update a blocked key
11
+ [**blacklisted_keys_list**](BlacklistedKeysApi.md#blacklisted_keys_list) | **GET** /projects/{project_id}/blacklisted_keys | List blocked keys
12
12
 
13
13
 
14
14
 
@@ -16,9 +16,9 @@ Method | HTTP request | Description
16
16
 
17
17
  > BlacklistedKey blacklisted_key_create(project_id, blacklisted_key_create_parameters, opts)
18
18
 
19
- Create a blacklisted key
19
+ Create a blocked key
20
20
 
21
- Create a new rule for blacklisting keys.
21
+ Create a new rule for blocking keys.
22
22
 
23
23
  ### Example
24
24
 
@@ -44,7 +44,7 @@ opts = {
44
44
  }
45
45
 
46
46
  begin
47
- #Create a blacklisted key
47
+ #Create a blocked key
48
48
  result = api_instance.blacklisted_key_create(project_id, blacklisted_key_create_parameters, opts)
49
49
  pp result
50
50
  rescue Phrase::ApiError => e
@@ -79,9 +79,9 @@ Response<([**BlacklistedKey**](BlacklistedKey.md))>
79
79
 
80
80
  > blacklisted_key_delete(project_id, id, opts)
81
81
 
82
- Delete a blacklisted key
82
+ Delete a blocked key
83
83
 
84
- Delete an existing rule for blacklisting keys.
84
+ Delete an existing rule for blocking keys.
85
85
 
86
86
  ### Example
87
87
 
@@ -107,7 +107,7 @@ opts = {
107
107
  }
108
108
 
109
109
  begin
110
- #Delete a blacklisted key
110
+ #Delete a blocked key
111
111
  api_instance.blacklisted_key_delete(project_id, id, opts)
112
112
  rescue Phrase::ApiError => e
113
113
  puts "Exception when calling BlacklistedKeysApi->blacklisted_key_delete: #{e}"
@@ -141,9 +141,9 @@ Response<(nil (empty response body))>
141
141
 
142
142
  > BlacklistedKey blacklisted_key_show(project_id, id, opts)
143
143
 
144
- Get a single blacklisted key
144
+ Get a single blocked key
145
145
 
146
- Get details on a single rule for blacklisting keys for a given project.
146
+ Get details on a single rule for blocking keys for a given project.
147
147
 
148
148
  ### Example
149
149
 
@@ -169,7 +169,7 @@ opts = {
169
169
  }
170
170
 
171
171
  begin
172
- #Get a single blacklisted key
172
+ #Get a single blocked key
173
173
  result = api_instance.blacklisted_key_show(project_id, id, opts)
174
174
  pp result
175
175
  rescue Phrase::ApiError => e
@@ -204,9 +204,9 @@ Response<([**BlacklistedKey**](BlacklistedKey.md))>
204
204
 
205
205
  > BlacklistedKey blacklisted_key_update(project_id, id, blacklisted_key_update_parameters, opts)
206
206
 
207
- Update a blacklisted key
207
+ Update a blocked key
208
208
 
209
- Update an existing rule for blacklisting keys.
209
+ Update an existing rule for blocking keys.
210
210
 
211
211
  ### Example
212
212
 
@@ -233,7 +233,7 @@ opts = {
233
233
  }
234
234
 
235
235
  begin
236
- #Update a blacklisted key
236
+ #Update a blocked key
237
237
  result = api_instance.blacklisted_key_update(project_id, id, blacklisted_key_update_parameters, opts)
238
238
  pp result
239
239
  rescue Phrase::ApiError => e
@@ -269,9 +269,9 @@ Response<([**BlacklistedKey**](BlacklistedKey.md))>
269
269
 
270
270
  > Array&lt;BlacklistedKey&gt; blacklisted_keys_list(project_id, opts)
271
271
 
272
- List blacklisted keys
272
+ List blocked keys
273
273
 
274
- List all rules for blacklisting keys for the given project.
274
+ List all rules for blocking keys for the given project.
275
275
 
276
276
  ### Example
277
277
 
@@ -299,7 +299,7 @@ opts = {
299
299
  }
300
300
 
301
301
  begin
302
- #List blacklisted keys
302
+ #List blocked keys
303
303
  result = api_instance.blacklisted_keys_list(project_id, opts)
304
304
  pp result
305
305
  rescue Phrase::ApiError => e
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **platforms** | **Array&lt;String&gt;** | List of platforms the distribution should support. | [optional]
10
10
  **locale_ids** | **Array&lt;String&gt;** | List of locale ids that will be part of distribution releases | [optional]
11
11
  **format_options** | **Hash&lt;String, String&gt;** | Additional formatting and render options. Only &lt;code&gt;enclose_in_cdata&lt;/code&gt; is available for platform &lt;code&gt;android&lt;/code&gt;. | [optional]
12
+ **fallback_locales_enabled** | **Boolean** | Use fallback locale if there is no translation in the current locale. | [optional]
12
13
  **fallback_to_non_regional_locale** | **Boolean** | Indicates whether to fallback to non regional locale when locale can not be found | [optional]
13
14
  **fallback_to_default_locale** | **Boolean** | Indicates whether to fallback to projects default locale when locale can not be found | [optional]
14
15
  **use_last_reviewed_version** | **Boolean** | Use last reviewed instead of latest translation in a project | [optional]
@@ -23,6 +24,7 @@ instance = Phrase::DistributionCreateParameters.new(name: My Android Distributio
23
24
  platforms: [&quot;android&quot;,&quot;ios&quot;],
24
25
  locale_ids: [&quot;abcd1234cdef1234abcd1234cdef1234&quot;,&quot;fff565db236400772368235db2c6117e&quot;],
25
26
  format_options: {xml:{enclose_in_cdata:&#39;1&#39;}},
27
+ fallback_locales_enabled: true,
26
28
  fallback_to_non_regional_locale: true,
27
29
  fallback_to_default_locale: true,
28
30
  use_last_reviewed_version: true)
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **platforms** | **Array&lt;String&gt;** | List of platforms the distribution should support. | [optional]
10
10
  **locale_ids** | **Array&lt;String&gt;** | List of locale ids that will be part of distribution releases | [optional]
11
11
  **format_options** | **Hash&lt;String, String&gt;** | Additional formatting and render options. Only &lt;code&gt;enclose_in_cdata&lt;/code&gt; is available for platform &lt;code&gt;android&lt;/code&gt;. | [optional]
12
+ **fallback_locales_enabled** | **Boolean** | Use fallback locale if there is no translation in the current locale. | [optional]
12
13
  **fallback_to_non_regional_locale** | **Boolean** | Indicates whether to fallback to non regional locale when locale can not be found | [optional]
13
14
  **fallback_to_default_locale** | **Boolean** | Indicates whether to fallback to projects default locale when locale can not be found | [optional]
14
15
  **use_last_reviewed_version** | **Boolean** | Use last reviewed instead of latest translation in a project | [optional]
@@ -23,6 +24,7 @@ instance = Phrase::DistributionUpdateParameters.new(name: My Android Distributio
23
24
  platforms: [&quot;android&quot;,&quot;ios&quot;],
24
25
  locale_ids: [&quot;abcd1234cdef1234abcd1234cdef1234&quot;,&quot;fff565db236400772368235db2c6117e&quot;],
25
26
  format_options: {xml:{enclose_in_cdata:&#39;1&#39;}},
27
+ fallback_locales_enabled: true,
26
28
  fallback_to_non_regional_locale: true,
27
29
  fallback_to_default_locale: true,
28
30
  use_last_reviewed_version: true)
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.phrase.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**glossaries_list**](GlossariesApi.md#glossaries_list) | **GET** /accounts/{account_id}/glossaries | List glossaries
8
- [**glossary_create**](GlossariesApi.md#glossary_create) | **POST** /accounts/{account_id}/glossaries | Create a glossary
9
- [**glossary_delete**](GlossariesApi.md#glossary_delete) | **DELETE** /accounts/{account_id}/glossaries/{id} | Delete a glossary
10
- [**glossary_show**](GlossariesApi.md#glossary_show) | **GET** /accounts/{account_id}/glossaries/{id} | Get a single glossary
11
- [**glossary_update**](GlossariesApi.md#glossary_update) | **PATCH** /accounts/{account_id}/glossaries/{id} | Update a glossary
7
+ [**glossaries_list**](GlossariesApi.md#glossaries_list) | **GET** /accounts/{account_id}/glossaries | List term bases
8
+ [**glossary_create**](GlossariesApi.md#glossary_create) | **POST** /accounts/{account_id}/glossaries | Create a term base
9
+ [**glossary_delete**](GlossariesApi.md#glossary_delete) | **DELETE** /accounts/{account_id}/glossaries/{id} | Delete a term base
10
+ [**glossary_show**](GlossariesApi.md#glossary_show) | **GET** /accounts/{account_id}/glossaries/{id} | Get a single term base
11
+ [**glossary_update**](GlossariesApi.md#glossary_update) | **PATCH** /accounts/{account_id}/glossaries/{id} | Update a term base
12
12
 
13
13
 
14
14
 
@@ -16,9 +16,9 @@ Method | HTTP request | Description
16
16
 
17
17
  > Array&lt;Glossary&gt; glossaries_list(account_id, opts)
18
18
 
19
- List glossaries
19
+ List term bases
20
20
 
21
- List all glossaries the current user has access to.
21
+ List all term bases (previously: glossaries) the current user has access to.
22
22
 
23
23
  ### Example
24
24
 
@@ -45,7 +45,7 @@ opts = {
45
45
  }
46
46
 
47
47
  begin
48
- #List glossaries
48
+ #List term bases
49
49
  result = api_instance.glossaries_list(account_id, opts)
50
50
  pp result
51
51
  rescue Phrase::ApiError => e
@@ -81,9 +81,9 @@ Response<([**Array&lt;Glossary&gt;**](Glossary.md))>
81
81
 
82
82
  > Glossary glossary_create(account_id, glossary_create_parameters, opts)
83
83
 
84
- Create a glossary
84
+ Create a term base
85
85
 
86
- Create a new glossary.
86
+ Create a new term base (previously: glossary).
87
87
 
88
88
  ### Example
89
89
 
@@ -109,7 +109,7 @@ opts = {
109
109
  }
110
110
 
111
111
  begin
112
- #Create a glossary
112
+ #Create a term base
113
113
  result = api_instance.glossary_create(account_id, glossary_create_parameters, opts)
114
114
  pp result
115
115
  rescue Phrase::ApiError => e
@@ -144,9 +144,9 @@ Response<([**Glossary**](Glossary.md))>
144
144
 
145
145
  > glossary_delete(account_id, id, opts)
146
146
 
147
- Delete a glossary
147
+ Delete a term base
148
148
 
149
- Delete an existing glossary.
149
+ Delete an existing term base (previously: glossary).
150
150
 
151
151
  ### Example
152
152
 
@@ -172,7 +172,7 @@ opts = {
172
172
  }
173
173
 
174
174
  begin
175
- #Delete a glossary
175
+ #Delete a term base
176
176
  api_instance.glossary_delete(account_id, id, opts)
177
177
  rescue Phrase::ApiError => e
178
178
  puts "Exception when calling GlossariesApi->glossary_delete: #{e}"
@@ -206,9 +206,9 @@ Response<(nil (empty response body))>
206
206
 
207
207
  > Glossary glossary_show(account_id, id, opts)
208
208
 
209
- Get a single glossary
209
+ Get a single term base
210
210
 
211
- Get details on a single glossary.
211
+ Get details on a single term base (previously: glossary).
212
212
 
213
213
  ### Example
214
214
 
@@ -234,7 +234,7 @@ opts = {
234
234
  }
235
235
 
236
236
  begin
237
- #Get a single glossary
237
+ #Get a single term base
238
238
  result = api_instance.glossary_show(account_id, id, opts)
239
239
  pp result
240
240
  rescue Phrase::ApiError => e
@@ -269,9 +269,9 @@ Response<([**Glossary**](Glossary.md))>
269
269
 
270
270
  > Glossary glossary_update(account_id, id, glossary_update_parameters, opts)
271
271
 
272
- Update a glossary
272
+ Update a term base
273
273
 
274
- Update an existing glossary.
274
+ Update an existing term base (previously: glossary).
275
275
 
276
276
  ### Example
277
277
 
@@ -298,7 +298,7 @@ opts = {
298
298
  }
299
299
 
300
300
  begin
301
- #Update a glossary
301
+ #Update a term base
302
302
  result = api_instance.glossary_update(account_id, id, glossary_update_parameters, opts)
303
303
  pp result
304
304
  rescue Phrase::ApiError => e
@@ -4,9 +4,9 @@ All URIs are relative to *https://api.phrase.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**glossary_term_translation_create**](GlossaryTermTranslationsApi.md#glossary_term_translation_create) | **POST** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations | Create a glossary term translation
8
- [**glossary_term_translation_delete**](GlossaryTermTranslationsApi.md#glossary_term_translation_delete) | **DELETE** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} | Delete a glossary term translation
9
- [**glossary_term_translation_update**](GlossaryTermTranslationsApi.md#glossary_term_translation_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} | Update a glossary term translation
7
+ [**glossary_term_translation_create**](GlossaryTermTranslationsApi.md#glossary_term_translation_create) | **POST** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations | Create a translation for a term
8
+ [**glossary_term_translation_delete**](GlossaryTermTranslationsApi.md#glossary_term_translation_delete) | **DELETE** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} | Delete a translation for a term
9
+ [**glossary_term_translation_update**](GlossaryTermTranslationsApi.md#glossary_term_translation_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} | Update a translation for a term
10
10
 
11
11
 
12
12
 
@@ -14,9 +14,9 @@ Method | HTTP request | Description
14
14
 
15
15
  > GlossaryTermTranslation glossary_term_translation_create(account_id, glossary_id, term_id, glossary_term_translation_create_parameters, opts)
16
16
 
17
- Create a glossary term translation
17
+ Create a translation for a term
18
18
 
19
- Create a new glossary term translation.
19
+ Create a new translation for a term in a term base (previously: glossary).
20
20
 
21
21
  ### Example
22
22
 
@@ -44,7 +44,7 @@ opts = {
44
44
  }
45
45
 
46
46
  begin
47
- #Create a glossary term translation
47
+ #Create a translation for a term
48
48
  result = api_instance.glossary_term_translation_create(account_id, glossary_id, term_id, glossary_term_translation_create_parameters, opts)
49
49
  pp result
50
50
  rescue Phrase::ApiError => e
@@ -81,9 +81,9 @@ Response<([**GlossaryTermTranslation**](GlossaryTermTranslation.md))>
81
81
 
82
82
  > glossary_term_translation_delete(account_id, glossary_id, term_id, id, opts)
83
83
 
84
- Delete a glossary term translation
84
+ Delete a translation for a term
85
85
 
86
- Delete an existing glossary term translation.
86
+ Delete an existing translation of a term in a term base (previously: glossary).
87
87
 
88
88
  ### Example
89
89
 
@@ -111,7 +111,7 @@ opts = {
111
111
  }
112
112
 
113
113
  begin
114
- #Delete a glossary term translation
114
+ #Delete a translation for a term
115
115
  api_instance.glossary_term_translation_delete(account_id, glossary_id, term_id, id, opts)
116
116
  rescue Phrase::ApiError => e
117
117
  puts "Exception when calling GlossaryTermTranslationsApi->glossary_term_translation_delete: #{e}"
@@ -147,9 +147,9 @@ Response<(nil (empty response body))>
147
147
 
148
148
  > GlossaryTermTranslation glossary_term_translation_update(account_id, glossary_id, term_id, id, glossary_term_translation_update_parameters, opts)
149
149
 
150
- Update a glossary term translation
150
+ Update a translation for a term
151
151
 
152
- Update an existing glossary term translation.
152
+ Update an existing translation for a term in a term base (previously: glossary).
153
153
 
154
154
  ### Example
155
155
 
@@ -178,7 +178,7 @@ opts = {
178
178
  }
179
179
 
180
180
  begin
181
- #Update a glossary term translation
181
+ #Update a translation for a term
182
182
  result = api_instance.glossary_term_translation_update(account_id, glossary_id, term_id, id, glossary_term_translation_update_parameters, opts)
183
183
  pp result
184
184
  rescue Phrase::ApiError => e
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.phrase.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**glossary_term_create**](GlossaryTermsApi.md#glossary_term_create) | **POST** /accounts/{account_id}/glossaries/{glossary_id}/terms | Create a glossary term
8
- [**glossary_term_delete**](GlossaryTermsApi.md#glossary_term_delete) | **DELETE** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Delete a glossary term
9
- [**glossary_term_show**](GlossaryTermsApi.md#glossary_term_show) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Get a single glossary term
10
- [**glossary_term_update**](GlossaryTermsApi.md#glossary_term_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Update a glossary term
11
- [**glossary_terms_list**](GlossaryTermsApi.md#glossary_terms_list) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms | List glossary terms
7
+ [**glossary_term_create**](GlossaryTermsApi.md#glossary_term_create) | **POST** /accounts/{account_id}/glossaries/{glossary_id}/terms | Create a term
8
+ [**glossary_term_delete**](GlossaryTermsApi.md#glossary_term_delete) | **DELETE** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Delete a term
9
+ [**glossary_term_show**](GlossaryTermsApi.md#glossary_term_show) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Get a single term
10
+ [**glossary_term_update**](GlossaryTermsApi.md#glossary_term_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Update a term
11
+ [**glossary_terms_list**](GlossaryTermsApi.md#glossary_terms_list) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms | List terms
12
12
 
13
13
 
14
14
 
@@ -16,9 +16,9 @@ Method | HTTP request | Description
16
16
 
17
17
  > GlossaryTerm glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
18
18
 
19
- Create a glossary term
19
+ Create a term
20
20
 
21
- Create a new glossary term.
21
+ Create a new term in a term base (previously: glossary).
22
22
 
23
23
  ### Example
24
24
 
@@ -45,7 +45,7 @@ opts = {
45
45
  }
46
46
 
47
47
  begin
48
- #Create a glossary term
48
+ #Create a term
49
49
  result = api_instance.glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
50
50
  pp result
51
51
  rescue Phrase::ApiError => e
@@ -81,9 +81,9 @@ Response<([**GlossaryTerm**](GlossaryTerm.md))>
81
81
 
82
82
  > glossary_term_delete(account_id, glossary_id, id, opts)
83
83
 
84
- Delete a glossary term
84
+ Delete a term
85
85
 
86
- Delete an existing glossary term.
86
+ Delete an existing term in a term base (previously: glossary).
87
87
 
88
88
  ### Example
89
89
 
@@ -110,7 +110,7 @@ opts = {
110
110
  }
111
111
 
112
112
  begin
113
- #Delete a glossary term
113
+ #Delete a term
114
114
  api_instance.glossary_term_delete(account_id, glossary_id, id, opts)
115
115
  rescue Phrase::ApiError => e
116
116
  puts "Exception when calling GlossaryTermsApi->glossary_term_delete: #{e}"
@@ -145,9 +145,9 @@ Response<(nil (empty response body))>
145
145
 
146
146
  > GlossaryTerm glossary_term_show(account_id, glossary_id, id, opts)
147
147
 
148
- Get a single glossary term
148
+ Get a single term
149
149
 
150
- Get details on a single glossary term.
150
+ Get details for a single term in the term base (previously: glossary).
151
151
 
152
152
  ### Example
153
153
 
@@ -174,7 +174,7 @@ opts = {
174
174
  }
175
175
 
176
176
  begin
177
- #Get a single glossary term
177
+ #Get a single term
178
178
  result = api_instance.glossary_term_show(account_id, glossary_id, id, opts)
179
179
  pp result
180
180
  rescue Phrase::ApiError => e
@@ -210,9 +210,9 @@ Response<([**GlossaryTerm**](GlossaryTerm.md))>
210
210
 
211
211
  > GlossaryTerm glossary_term_update(account_id, glossary_id, id, glossary_term_update_parameters, opts)
212
212
 
213
- Update a glossary term
213
+ Update a term
214
214
 
215
- Update an existing glossary term.
215
+ Update an existing term in a term base (previously: glossary).
216
216
 
217
217
  ### Example
218
218
 
@@ -240,7 +240,7 @@ opts = {
240
240
  }
241
241
 
242
242
  begin
243
- #Update a glossary term
243
+ #Update a term
244
244
  result = api_instance.glossary_term_update(account_id, glossary_id, id, glossary_term_update_parameters, opts)
245
245
  pp result
246
246
  rescue Phrase::ApiError => e
@@ -277,9 +277,9 @@ Response<([**GlossaryTerm**](GlossaryTerm.md))>
277
277
 
278
278
  > Array&lt;GlossaryTerm&gt; glossary_terms_list(account_id, glossary_id, opts)
279
279
 
280
- List glossary terms
280
+ List terms
281
281
 
282
- List all glossary terms the current user has access to.
282
+ List all terms in term bases (previously: glossary) that the current user has access to.
283
283
 
284
284
  ### Example
285
285
 
@@ -307,7 +307,7 @@ opts = {
307
307
  }
308
308
 
309
309
  begin
310
- #List glossary terms
310
+ #List terms
311
311
  result = api_instance.glossary_terms_list(account_id, glossary_id, opts)
312
312
  pp result
313
313
  rescue Phrase::ApiError => e
data/docs/Locale.md CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **rtl** | **Boolean** | | [optional]
13
13
  **plural_forms** | **Array&lt;String&gt;** | | [optional]
14
14
  **source_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
15
+ **fallback_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
15
16
  **created_at** | **DateTime** | | [optional]
16
17
  **updated_at** | **DateTime** | | [optional]
17
18
 
@@ -28,6 +29,7 @@ instance = Phrase::Locale.new(id: null,
28
29
  rtl: null,
29
30
  plural_forms: null,
30
31
  source_locale: null,
32
+ fallback_locale: null,
31
33
  created_at: null,
32
34
  updated_at: null)
33
35
  ```
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **main** | **Boolean** | Indicates whether locale is a main locale. Main locales are part of the &lt;a href&#x3D;\&quot;https://help.phrase.com/help/verification-and-proofreading\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Verification System&lt;/a&gt; feature. | [optional]
12
12
  **rtl** | **Boolean** | Indicates whether locale is a RTL (Right-to-Left) locale. | [optional]
13
13
  **source_locale_id** | **String** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
14
+ **fallback_locale_id** | **String** | Fallback locale for empty translations. Can be a locale name or id. | [optional]
14
15
  **unverify_new_translations** | **Boolean** | Indicates that new translations for this locale should be marked as unverified. Part of the &lt;a href&#x3D;\&quot;https://help.phrase.com/help/verification-and-proofreading\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Advanced Workflows&lt;/a&gt; feature. | [optional]
15
16
  **unverify_updated_translations** | **Boolean** | Indicates that updated translations for this locale should be marked as unverified. Part of the &lt;a href&#x3D;\&quot;https://help.phrase.com/help/verification-and-proofreading\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Advanced Workflows&lt;/a&gt; feature. | [optional]
16
17
  **autotranslate** | **Boolean** | If set, translations for this locale will be fetched automatically, right after creation. | [optional]
@@ -27,6 +28,7 @@ instance = Phrase::LocaleCreateParameters.new(branch: my-feature-branch,
27
28
  main: null,
28
29
  rtl: null,
29
30
  source_locale_id: abcd1234abcd1234abcd1234abcd1234,
31
+ fallback_locale_id: abcd1234abcd1234abcd1234abcd1234,
30
32
  unverify_new_translations: null,
31
33
  unverify_updated_translations: null,
32
34
  autotranslate: null)
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **rtl** | **Boolean** | | [optional]
13
13
  **plural_forms** | **Array&lt;String&gt;** | | [optional]
14
14
  **source_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
15
+ **fallback_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
15
16
  **created_at** | **DateTime** | | [optional]
16
17
  **updated_at** | **DateTime** | | [optional]
17
18
  **statistics** | [**LocaleStatistics**](LocaleStatistics.md) | | [optional]
@@ -29,6 +30,7 @@ instance = Phrase::LocaleDetails.new(id: null,
29
30
  rtl: null,
30
31
  plural_forms: null,
31
32
  source_locale: null,
33
+ fallback_locale: null,
32
34
  created_at: null,
33
35
  updated_at: null,
34
36
  statistics: null)