phrase 2.8.0 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -13
- data/docs/BitbucketSyncApi.md +9 -9
- data/docs/BranchMergeParameters.md +2 -2
- data/docs/GitHubSyncApi.md +8 -8
- data/docs/GitLabSyncApi.md +8 -8
- data/docs/LocaleCreateParameters.md +3 -3
- data/docs/LocaleUpdateParameters.md +3 -3
- data/docs/LocalesApi.md +4 -4
- data/docs/ProjectCreateParameters.md +4 -4
- data/docs/ProjectUpdateParameters.md +4 -4
- data/docs/TeamsApi.md +3 -3
- data/docs/TranslationCreateParameters.md +1 -1
- data/docs/TranslationUpdateParameters.md +1 -1
- data/lib/phrase/api/bitbucket_sync_api.rb +10 -10
- data/lib/phrase/api/git_hub_sync_api.rb +8 -8
- data/lib/phrase/api/git_lab_sync_api.rb +10 -10
- data/lib/phrase/api/locales_api.rb +4 -4
- data/lib/phrase/api/teams_api.rb +3 -3
- data/lib/phrase/models/branch_merge_parameters.rb +1 -1
- data/lib/phrase/models/locale_create_parameters.rb +3 -3
- data/lib/phrase/models/locale_update_parameters.rb +3 -3
- data/lib/phrase/models/project_create_parameters.rb +4 -4
- data/lib/phrase/models/project_update_parameters.rb +4 -4
- data/lib/phrase/models/translation_create_parameters.rb +1 -1
- data/lib/phrase/models/translation_update_parameters.rb +1 -1
- data/lib/phrase/version.rb +1 -1
- data/phrase.gemspec +2 -2
- data/spec/api/bitbucket_sync_api_spec.rb +5 -5
- data/spec/api/git_hub_sync_api_spec.rb +4 -4
- data/spec/api/git_lab_sync_api_spec.rb +5 -5
- data/spec/api/locales_api_spec.rb +2 -2
- metadata +206 -206
@@ -74,8 +74,8 @@ module Phrase
|
|
74
74
|
return response, status_code, headers
|
75
75
|
end
|
76
76
|
|
77
|
-
# Export from Phrase to GitLab
|
78
|
-
# Export translations from Phrase to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
77
|
+
# Export from Phrase Strings to GitLab
|
78
|
+
# Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
79
79
|
# @param gitlab_sync_id [String] Gitlab Sync ID
|
80
80
|
# @param gitlab_sync_export_parameters [GitlabSyncExportParameters]
|
81
81
|
# @param [Hash] opts the optional parameters
|
@@ -86,8 +86,8 @@ module Phrase
|
|
86
86
|
data
|
87
87
|
end
|
88
88
|
|
89
|
-
# Export from Phrase to GitLab
|
90
|
-
# Export translations from Phrase to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
89
|
+
# Export from Phrase Strings to GitLab
|
90
|
+
# Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
91
91
|
# @param gitlab_sync_id [String] Gitlab Sync ID
|
92
92
|
# @param gitlab_sync_export_parameters [GitlabSyncExportParameters]
|
93
93
|
# @param [Hash] opts the optional parameters
|
@@ -224,7 +224,7 @@ module Phrase
|
|
224
224
|
end
|
225
225
|
|
226
226
|
# Import from GitLab to Phrase
|
227
|
-
# Import translations from GitLab to Phrase according to the .phraseapp.yml file within the GitLab repository.
|
227
|
+
# Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository.
|
228
228
|
# @param gitlab_sync_id [String] Gitlab Sync ID
|
229
229
|
# @param gitlab_sync_import_parameters [GitlabSyncImportParameters]
|
230
230
|
# @param [Hash] opts the optional parameters
|
@@ -236,7 +236,7 @@ module Phrase
|
|
236
236
|
end
|
237
237
|
|
238
238
|
# Import from GitLab to Phrase
|
239
|
-
# Import translations from GitLab to Phrase according to the .phraseapp.yml file within the GitLab repository.
|
239
|
+
# Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository.
|
240
240
|
# @param gitlab_sync_id [String] Gitlab Sync ID
|
241
241
|
# @param gitlab_sync_import_parameters [GitlabSyncImportParameters]
|
242
242
|
# @param [Hash] opts the optional parameters
|
@@ -298,7 +298,7 @@ module Phrase
|
|
298
298
|
end
|
299
299
|
|
300
300
|
# List GitLab syncs
|
301
|
-
# List all GitLab Sync Settings for which synchronisation with Phrase and GitLab is activated.
|
301
|
+
# List all GitLab Sync Settings for which synchronisation with Phrase Strings and GitLab is activated.
|
302
302
|
# @param [Hash] opts the optional parameters
|
303
303
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
304
304
|
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
@@ -309,7 +309,7 @@ module Phrase
|
|
309
309
|
end
|
310
310
|
|
311
311
|
# List GitLab syncs
|
312
|
-
# List all GitLab Sync Settings for which synchronisation with Phrase and GitLab is activated.
|
312
|
+
# List all GitLab Sync Settings for which synchronisation with Phrase Strings and GitLab is activated.
|
313
313
|
# @param [Hash] opts the optional parameters
|
314
314
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
315
315
|
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
@@ -435,7 +435,7 @@ module Phrase
|
|
435
435
|
# @param [Hash] opts the optional parameters
|
436
436
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
437
437
|
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
438
|
-
# @option opts [String] :phrase_project_code Code of the related Phrase Project.
|
438
|
+
# @option opts [String] :phrase_project_code Code of the related Phrase Strings Project.
|
439
439
|
# @option opts [Integer] :gitlab_project_id ID of the related GitLab Project.
|
440
440
|
# @option opts [String] :gitlab_branch_name Name of the GitLab Branch.
|
441
441
|
# @return [GitlabSync]
|
@@ -450,7 +450,7 @@ module Phrase
|
|
450
450
|
# @param [Hash] opts the optional parameters
|
451
451
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
452
452
|
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
453
|
-
# @option opts [String] :phrase_project_code Code of the related Phrase Project.
|
453
|
+
# @option opts [String] :phrase_project_code Code of the related Phrase Strings Project.
|
454
454
|
# @option opts [Integer] :gitlab_project_id ID of the related GitLab Project.
|
455
455
|
# @option opts [String] :gitlab_branch_name Name of the GitLab Branch.
|
456
456
|
# @return [Array<(Response<(GitlabSync)>, Integer, Hash)>] Response<(GitlabSync)> data, response status code and response headers
|
@@ -233,7 +233,7 @@ module Phrase
|
|
233
233
|
# @param [Hash] opts the optional parameters
|
234
234
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
235
235
|
# @option opts [String] :branch specify the branch to use
|
236
|
-
# @option opts [String] :file_format File format name. See the <a href=\"https://
|
236
|
+
# @option opts [String] :file_format File format name. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for all supported file formats.
|
237
237
|
# @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
|
238
238
|
# @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
|
239
239
|
# @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
|
@@ -241,7 +241,7 @@ module Phrase
|
|
241
241
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
242
242
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
243
243
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
244
|
-
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://
|
244
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for a list of options available for each format. Specify format options like this: <code>...&format_options[foo]=bar</code>
|
245
245
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
246
246
|
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
|
247
247
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
@@ -261,7 +261,7 @@ module Phrase
|
|
261
261
|
# @param [Hash] opts the optional parameters
|
262
262
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
263
263
|
# @option opts [String] :branch specify the branch to use
|
264
|
-
# @option opts [String] :file_format File format name. See the <a href=\"https://
|
264
|
+
# @option opts [String] :file_format File format name. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for all supported file formats.
|
265
265
|
# @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
|
266
266
|
# @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
|
267
267
|
# @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
|
@@ -269,7 +269,7 @@ module Phrase
|
|
269
269
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
270
270
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
271
271
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
272
|
-
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://
|
272
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for a list of options available for each format. Specify format options like this: <code>...&format_options[foo]=bar</code>
|
273
273
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
274
274
|
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
|
275
275
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
data/lib/phrase/api/teams_api.rb
CHANGED
@@ -113,7 +113,7 @@ module Phrase
|
|
113
113
|
fail ArgumentError, "Missing the required parameter 'id' when calling TeamsApi.team_delete"
|
114
114
|
end
|
115
115
|
# resource path
|
116
|
-
local_var_path = '/accounts/{account_id}/teams/{
|
116
|
+
local_var_path = '/accounts/{account_id}/teams/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
117
117
|
|
118
118
|
# query parameters
|
119
119
|
query_params = opts[:query_params] || {}
|
@@ -183,7 +183,7 @@ module Phrase
|
|
183
183
|
fail ArgumentError, "Missing the required parameter 'id' when calling TeamsApi.team_show"
|
184
184
|
end
|
185
185
|
# resource path
|
186
|
-
local_var_path = '/accounts/{account_id}/teams/{
|
186
|
+
local_var_path = '/accounts/{account_id}/teams/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
@@ -261,7 +261,7 @@ module Phrase
|
|
261
261
|
fail ArgumentError, "Missing the required parameter 'team_update_parameters' when calling TeamsApi.team_update"
|
262
262
|
end
|
263
263
|
# resource path
|
264
|
-
local_var_path = '/accounts/{account_id}/teams/{
|
264
|
+
local_var_path = '/accounts/{account_id}/teams/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
265
265
|
|
266
266
|
# query parameters
|
267
267
|
query_params = opts[:query_params] || {}
|
@@ -2,7 +2,7 @@ require 'date'
|
|
2
2
|
|
3
3
|
module Phrase
|
4
4
|
class BranchMergeParameters
|
5
|
-
# strategy used for merge blocking,
|
5
|
+
# strategy used for merge blocking, use_main or use_branch
|
6
6
|
attr_accessor :strategy
|
7
7
|
|
8
8
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -14,7 +14,7 @@ module Phrase
|
|
14
14
|
# Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale.
|
15
15
|
attr_accessor :default
|
16
16
|
|
17
|
-
# Indicates whether locale is a main locale. Main locales are part of the <a href=\"https://
|
17
|
+
# Indicates whether locale is a main locale. Main locales are part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Verification System</a> feature.
|
18
18
|
attr_accessor :main
|
19
19
|
|
20
20
|
# Indicates whether locale is a RTL (Right-to-Left) locale.
|
@@ -26,10 +26,10 @@ module Phrase
|
|
26
26
|
# Fallback locale for empty translations. Can be a locale name or id.
|
27
27
|
attr_accessor :fallback_locale_id
|
28
28
|
|
29
|
-
# Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://
|
29
|
+
# Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature.
|
30
30
|
attr_accessor :unverify_new_translations
|
31
31
|
|
32
|
-
# Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://
|
32
|
+
# Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature.
|
33
33
|
attr_accessor :unverify_updated_translations
|
34
34
|
|
35
35
|
# If set, translations for this locale will be fetched automatically, right after creation.
|
@@ -14,7 +14,7 @@ module Phrase
|
|
14
14
|
# Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale.
|
15
15
|
attr_accessor :default
|
16
16
|
|
17
|
-
# Indicates whether locale is a main locale. Main locales are part of the <a href=\"https://
|
17
|
+
# Indicates whether locale is a main locale. Main locales are part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Verification System</a> feature.
|
18
18
|
attr_accessor :main
|
19
19
|
|
20
20
|
# Indicates whether locale is a RTL (Right-to-Left) locale.
|
@@ -26,10 +26,10 @@ module Phrase
|
|
26
26
|
# Fallback locale for empty translations. Can be a locale name or id.
|
27
27
|
attr_accessor :fallback_locale_id
|
28
28
|
|
29
|
-
# Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://
|
29
|
+
# Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature.
|
30
30
|
attr_accessor :unverify_new_translations
|
31
31
|
|
32
|
-
# Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://
|
32
|
+
# Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature.
|
33
33
|
attr_accessor :unverify_updated_translations
|
34
34
|
|
35
35
|
# If set, translations for this locale will be fetched automatically, right after creation.
|
@@ -5,7 +5,7 @@ module Phrase
|
|
5
5
|
# Name of the project
|
6
6
|
attr_accessor :name
|
7
7
|
|
8
|
-
# Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://
|
8
|
+
# Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>.
|
9
9
|
attr_accessor :main_format
|
10
10
|
|
11
11
|
# Indicates whether the project should share the account's translation memory
|
@@ -23,7 +23,7 @@ module Phrase
|
|
23
23
|
# When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params.
|
24
24
|
attr_accessor :source_project_id
|
25
25
|
|
26
|
-
# (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://
|
26
|
+
# (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a>
|
27
27
|
attr_accessor :workflow
|
28
28
|
|
29
29
|
# (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest
|
@@ -38,13 +38,13 @@ module Phrase
|
|
38
38
|
# (Optional) Otherwise, translators are not allowed to edit translations other than strings
|
39
39
|
attr_accessor :enable_all_data_type_translation_keys_for_translators
|
40
40
|
|
41
|
-
# (Optional) We can validate and highlight your ICU messages. <a href=\"https://
|
41
|
+
# (Optional) We can validate and highlight your ICU messages. <a href=\"https://support.phrase.com/hc/en-us/articles/5822319545116\">Read more</a>
|
42
42
|
attr_accessor :enable_icu_message_format
|
43
43
|
|
44
44
|
# (Optional) Displays the input fields for the 'ZERO' plural form for every key as well although only some languages require the 'ZERO' explicitly.
|
45
45
|
attr_accessor :zero_plural_form_enabled
|
46
46
|
|
47
|
-
# (Optional) Autopilot, requires machine_translation_enabled. <a href=\"https://
|
47
|
+
# (Optional) Autopilot, requires machine_translation_enabled. <a href=\"https://support.phrase.com/hc/en-us/articles/5822187934364\">Read more</a>
|
48
48
|
attr_accessor :autotranslate_enabled
|
49
49
|
|
50
50
|
# (Optional) Requires autotranslate_enabled to be true
|
@@ -8,7 +8,7 @@ module Phrase
|
|
8
8
|
# (Optional) Name of the project
|
9
9
|
attr_accessor :name
|
10
10
|
|
11
|
-
# (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://
|
11
|
+
# (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>.
|
12
12
|
attr_accessor :main_format
|
13
13
|
|
14
14
|
# (Optional) Indicates whether the project should share the account's translation memory
|
@@ -20,7 +20,7 @@ module Phrase
|
|
20
20
|
# (Optional) Indicates whether the project image should be deleted.
|
21
21
|
attr_accessor :remove_project_image
|
22
22
|
|
23
|
-
# (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://
|
23
|
+
# (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a>
|
24
24
|
attr_accessor :workflow
|
25
25
|
|
26
26
|
# (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest
|
@@ -35,13 +35,13 @@ module Phrase
|
|
35
35
|
# (Optional) Otherwise, translators are not allowed to edit translations other than strings
|
36
36
|
attr_accessor :enable_all_data_type_translation_keys_for_translators
|
37
37
|
|
38
|
-
# (Optional) We can validate and highlight your ICU messages. <a href=\"https://
|
38
|
+
# (Optional) We can validate and highlight your ICU messages. <a href=\"https://support.phrase.com/hc/en-us/articles/5822319545116\">Read more</a>
|
39
39
|
attr_accessor :enable_icu_message_format
|
40
40
|
|
41
41
|
# (Optional) Displays the input fields for the 'ZERO' plural form for every key as well although only some languages require the 'ZERO' explicitly.
|
42
42
|
attr_accessor :zero_plural_form_enabled
|
43
43
|
|
44
|
-
# (Optional) Autopilot, requires machine_translation_enabled. <a href=\"https://
|
44
|
+
# (Optional) Autopilot, requires machine_translation_enabled. <a href=\"https://support.phrase.com/hc/en-us/articles/5822187934364\">Read more</a>
|
45
45
|
attr_accessor :autotranslate_enabled
|
46
46
|
|
47
47
|
# (Optional) Requires autotranslate_enabled to be true
|
@@ -17,7 +17,7 @@ module Phrase
|
|
17
17
|
# Plural suffix. Can be one of: zero, one, two, few, many, other. Must be specified if the key associated to the translation is pluralized.
|
18
18
|
attr_accessor :plural_suffix
|
19
19
|
|
20
|
-
# Indicates whether translation is unverified. Part of the <a href=\"https://
|
20
|
+
# Indicates whether translation is unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature.
|
21
21
|
attr_accessor :unverified
|
22
22
|
|
23
23
|
# Indicates whether translation is excluded.
|
@@ -11,7 +11,7 @@ module Phrase
|
|
11
11
|
# Plural suffix. Can be one of: zero, one, two, few, many, other. Must be specified if the key associated to the translation is pluralized.
|
12
12
|
attr_accessor :plural_suffix
|
13
13
|
|
14
|
-
# Indicates whether translation is unverified. Part of the <a href=\"https://
|
14
|
+
# Indicates whether translation is unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature.
|
15
15
|
attr_accessor :unverified
|
16
16
|
|
17
17
|
# Indicates whether translation is excluded.
|
data/lib/phrase/version.rb
CHANGED
data/phrase.gemspec
CHANGED
@@ -10,8 +10,8 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = ["Phrase"]
|
11
11
|
s.email = ["support@phrase.com"]
|
12
12
|
s.homepage = "https://phrase.com"
|
13
|
-
s.summary = "You can collaborate on language file translation with your team or order translations through our platform. The API allows you to import locale files, download locale files, tag keys or interact in other ways with the localization data stored in Phrase for your account."
|
14
|
-
s.description = "Phrase is a translation management platform for software projects."
|
13
|
+
s.summary = "You can collaborate on language file translation with your team or order translations through our platform. The API allows you to import locale files, download locale files, tag keys or interact in other ways with the localization data stored in Phrase Strings for your account."
|
14
|
+
s.description = "Phrase Strings is a translation management platform for software projects."
|
15
15
|
s.license = 'MIT'
|
16
16
|
s.required_ruby_version = ">= 2.6.0"
|
17
17
|
|
@@ -21,8 +21,8 @@ describe 'BitbucketSyncApi' do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# unit tests for bitbucket_sync_export
|
24
|
-
# Export from Phrase to Bitbucket
|
25
|
-
# Export translations from Phrase to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository.
|
24
|
+
# Export from Phrase Strings to Bitbucket
|
25
|
+
# Export translations from Phrase Strings to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository.
|
26
26
|
# @param id ID
|
27
27
|
# @param bitbucket_sync_export_parameters
|
28
28
|
# @param [Hash] opts the optional parameters
|
@@ -35,8 +35,8 @@ describe 'BitbucketSyncApi' do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# unit tests for bitbucket_sync_import
|
38
|
-
# Import to Phrase from Bitbucket
|
39
|
-
# Import translations from Bitbucket to Phrase according to the .phraseapp.yml file within the Bitbucket repository.
|
38
|
+
# Import to Phrase Strings from Bitbucket
|
39
|
+
# Import translations from Bitbucket to Phrase Strings according to the .phraseapp.yml file within the Bitbucket repository.
|
40
40
|
# @param id ID
|
41
41
|
# @param bitbucket_sync_import_parameters
|
42
42
|
# @param [Hash] opts the optional parameters
|
@@ -50,7 +50,7 @@ describe 'BitbucketSyncApi' do
|
|
50
50
|
|
51
51
|
# unit tests for bitbucket_syncs_list
|
52
52
|
# List Bitbucket syncs
|
53
|
-
# List all Bitbucket repositories for which synchronisation with Phrase is activated.
|
53
|
+
# List all Bitbucket repositories for which synchronisation with Phrase Strings is activated.
|
54
54
|
# @param [Hash] opts the optional parameters
|
55
55
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
56
56
|
# @option opts [String] :account_id Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts.
|
@@ -21,8 +21,8 @@ describe 'GitHubSyncApi' do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# unit tests for github_sync_export
|
24
|
-
# Export from Phrase to GitHub
|
25
|
-
# Export translations from Phrase to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
24
|
+
# Export from Phrase Strings to GitHub
|
25
|
+
# Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
26
26
|
# @param github_sync_export_parameters
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -34,8 +34,8 @@ describe 'GitHubSyncApi' do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
# unit tests for github_sync_import
|
37
|
-
# Import to Phrase from GitHub
|
38
|
-
# Import files to Phrase from your connected GitHub repository.
|
37
|
+
# Import to Phrase Strings from GitHub
|
38
|
+
# Import files to Phrase Strings from your connected GitHub repository.
|
39
39
|
# @param github_sync_import_parameters
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -35,8 +35,8 @@ describe 'GitLabSyncApi' do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# unit tests for gitlab_sync_export
|
38
|
-
# Export from Phrase to GitLab
|
39
|
-
# Export translations from Phrase to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
38
|
+
# Export from Phrase Strings to GitLab
|
39
|
+
# Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
40
40
|
# @param gitlab_sync_id Gitlab Sync ID
|
41
41
|
# @param gitlab_sync_export_parameters
|
42
42
|
# @param [Hash] opts the optional parameters
|
@@ -66,7 +66,7 @@ describe 'GitLabSyncApi' do
|
|
66
66
|
|
67
67
|
# unit tests for gitlab_sync_import
|
68
68
|
# Import from GitLab to Phrase
|
69
|
-
# Import translations from GitLab to Phrase according to the .phraseapp.yml file within the GitLab repository.
|
69
|
+
# Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository.
|
70
70
|
# @param gitlab_sync_id Gitlab Sync ID
|
71
71
|
# @param gitlab_sync_import_parameters
|
72
72
|
# @param [Hash] opts the optional parameters
|
@@ -80,7 +80,7 @@ describe 'GitLabSyncApi' do
|
|
80
80
|
|
81
81
|
# unit tests for gitlab_sync_list
|
82
82
|
# List GitLab syncs
|
83
|
-
# List all GitLab Sync Settings for which synchronisation with Phrase and GitLab is activated.
|
83
|
+
# List all GitLab Sync Settings for which synchronisation with Phrase Strings and GitLab is activated.
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
85
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
86
86
|
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
@@ -112,7 +112,7 @@ describe 'GitLabSyncApi' do
|
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
113
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
114
114
|
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
115
|
-
# @option opts [String] :phrase_project_code Code of the related Phrase Project.
|
115
|
+
# @option opts [String] :phrase_project_code Code of the related Phrase Strings Project.
|
116
116
|
# @option opts [Integer] :gitlab_project_id ID of the related GitLab Project.
|
117
117
|
# @option opts [String] :gitlab_branch_name Name of the GitLab Branch.
|
118
118
|
# @return [GitlabSync]
|
@@ -72,7 +72,7 @@ describe 'LocalesApi' do
|
|
72
72
|
# @param [Hash] opts the optional parameters
|
73
73
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
74
74
|
# @option opts [String] :branch specify the branch to use
|
75
|
-
# @option opts [String] :file_format File format name. See the <a href=\"https://
|
75
|
+
# @option opts [String] :file_format File format name. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for all supported file formats.
|
76
76
|
# @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
|
77
77
|
# @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
|
78
78
|
# @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
|
@@ -80,7 +80,7 @@ describe 'LocalesApi' do
|
|
80
80
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
81
81
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
82
82
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
83
|
-
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://
|
83
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for a list of options available for each format. Specify format options like this: <code>...&format_options[foo]=bar</code>
|
84
84
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
85
85
|
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
|
86
86
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|