phrase 4.5.0 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +3 -3
  4. data/docs/BranchesApi.md +3 -3
  5. data/docs/DistributionCreateParameters.md +1 -1
  6. data/docs/DistributionUpdateParameters.md +1 -1
  7. data/docs/InvitationCreateParameters.md +2 -2
  8. data/docs/InvitationsApi.md +7 -7
  9. data/docs/JobsApi.md +4 -4
  10. data/docs/KeyCreateParameters.md +3 -1
  11. data/docs/KeyPreview.md +3 -1
  12. data/docs/KeyUpdateParameters.md +3 -1
  13. data/docs/KeysApi.md +4 -4
  14. data/docs/KeysExcludeParameters.md +1 -1
  15. data/docs/KeysIncludeParameters.md +1 -1
  16. data/docs/KeysSearchParameters.md +1 -1
  17. data/docs/KeysTagParameters.md +1 -1
  18. data/docs/KeysUntagParameters.md +1 -1
  19. data/docs/Locale.md +2 -0
  20. data/docs/LocaleCreateParameters.md +3 -3
  21. data/docs/LocaleDetails.md +2 -0
  22. data/docs/LocaleDownloadCreateParameters.md +7 -5
  23. data/docs/LocaleDownloadsApi.md +8 -8
  24. data/docs/LocaleUpdateParameters.md +3 -3
  25. data/docs/LocalesApi.md +17 -15
  26. data/docs/MemberUpdateParameters.md +1 -1
  27. data/docs/MembersApi.md +5 -5
  28. data/docs/OrdersApi.md +1 -1
  29. data/docs/ProjectCreateParameters.md +5 -5
  30. data/docs/ProjectUpdateParameters.md +6 -6
  31. data/docs/ReleaseTriggersApi.md +1 -1
  32. data/docs/ScreenshotMarkerCreateParameters.md +1 -1
  33. data/docs/ScreenshotMarkerUpdateParameters.md +1 -1
  34. data/docs/ScreenshotUpdateParameters.md +1 -1
  35. data/docs/SearchApi.md +1 -1
  36. data/docs/TagsApi.md +2 -0
  37. data/docs/TranslationCreateParameters.md +1 -1
  38. data/docs/TranslationKey.md +2 -0
  39. data/docs/TranslationKeyDetails.md +2 -0
  40. data/docs/TranslationUpdateParameters.md +1 -1
  41. data/docs/TranslationsApi.md +13 -13
  42. data/docs/TranslationsExcludeParameters.md +1 -1
  43. data/docs/TranslationsIncludeParameters.md +1 -1
  44. data/docs/TranslationsReviewParameters.md +1 -1
  45. data/docs/TranslationsSearchParameters.md +1 -1
  46. data/docs/TranslationsUnreviewParameters.md +1 -1
  47. data/docs/TranslationsUnverifyParameters.md +1 -1
  48. data/docs/TranslationsVerifyParameters.md +1 -1
  49. data/lib/phrase/api/branches_api.rb +6 -6
  50. data/lib/phrase/api/invitations_api.rb +14 -14
  51. data/lib/phrase/api/jobs_api.rb +4 -4
  52. data/lib/phrase/api/keys_api.rb +4 -4
  53. data/lib/phrase/api/locale_downloads_api.rb +8 -8
  54. data/lib/phrase/api/locales_api.rb +17 -14
  55. data/lib/phrase/api/members_api.rb +10 -10
  56. data/lib/phrase/api/orders_api.rb +2 -2
  57. data/lib/phrase/api/release_triggers_api.rb +2 -2
  58. data/lib/phrase/api/search_api.rb +2 -2
  59. data/lib/phrase/api/tags_api.rb +3 -0
  60. data/lib/phrase/api/translations_api.rb +16 -16
  61. data/lib/phrase/models/distribution_create_parameters.rb +1 -1
  62. data/lib/phrase/models/distribution_update_parameters.rb +1 -1
  63. data/lib/phrase/models/invitation_create_parameters.rb +2 -2
  64. data/lib/phrase/models/key_create_parameters.rb +11 -1
  65. data/lib/phrase/models/key_preview.rb +13 -4
  66. data/lib/phrase/models/key_update_parameters.rb +11 -1
  67. data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
  68. data/lib/phrase/models/keys_include_parameters.rb +1 -1
  69. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  70. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  71. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  72. data/lib/phrase/models/locale.rb +12 -1
  73. data/lib/phrase/models/locale_create_parameters.rb +3 -3
  74. data/lib/phrase/models/locale_details.rb +12 -1
  75. data/lib/phrase/models/locale_download_create_parameters.rb +18 -8
  76. data/lib/phrase/models/locale_update_parameters.rb +3 -3
  77. data/lib/phrase/models/member_update_parameters.rb +1 -1
  78. data/lib/phrase/models/project_create_parameters.rb +4 -4
  79. data/lib/phrase/models/project_update_parameters.rb +5 -5
  80. data/lib/phrase/models/screenshot_marker_create_parameters.rb +1 -1
  81. data/lib/phrase/models/screenshot_marker_update_parameters.rb +1 -1
  82. data/lib/phrase/models/translation_create_parameters.rb +1 -1
  83. data/lib/phrase/models/translation_key.rb +10 -1
  84. data/lib/phrase/models/translation_key_details.rb +10 -1
  85. data/lib/phrase/models/translation_update_parameters.rb +1 -1
  86. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  87. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  88. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  89. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  90. data/lib/phrase/models/translations_unreview_parameters.rb +1 -1
  91. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  92. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  93. data/lib/phrase/version.rb +1 -1
  94. data/spec/api/branches_api_spec.rb +3 -3
  95. data/spec/api/invitations_api_spec.rb +7 -7
  96. data/spec/api/jobs_api_spec.rb +2 -2
  97. data/spec/api/keys_api_spec.rb +2 -2
  98. data/spec/api/locale_downloads_api_spec.rb +4 -4
  99. data/spec/api/members_api_spec.rb +5 -5
  100. data/spec/api/orders_api_spec.rb +1 -1
  101. data/spec/api/release_triggers_api_spec.rb +1 -1
  102. data/spec/api/search_api_spec.rb +1 -1
  103. data/spec/api/tags_api_spec.rb +1 -0
  104. data/spec/api/translations_api_spec.rb +8 -8
  105. data/spec/models/key_create_parameters_spec.rb +6 -0
  106. data/spec/models/key_preview_spec.rb +6 -0
  107. data/spec/models/key_update_parameters_spec.rb +6 -0
  108. data/spec/models/locale_details_spec.rb +6 -0
  109. data/spec/models/locale_download_create_parameters_spec.rb +6 -0
  110. data/spec/models/locale_spec.rb +6 -0
  111. data/spec/models/translation_key_details_spec.rb +6 -0
  112. data/spec/models/translation_key_spec.rb +6 -0
  113. metadata +231 -231
@@ -727,7 +727,7 @@ module Phrase
727
727
  # @option opts [String] :branch specify the branch to use
728
728
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
729
729
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
730
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
730
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `unverified:{true|false}` for verification status * `tags:XYZ` for tags on the translation * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
731
731
  # @return [Array<Translation>]
732
732
  def translations_by_key(project_id, key_id, opts = {})
733
733
  data, _status_code, _headers = translations_by_key_with_http_info(project_id, key_id, opts)
@@ -745,7 +745,7 @@ module Phrase
745
745
  # @option opts [String] :branch specify the branch to use
746
746
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
747
747
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
748
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
748
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
749
749
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
750
750
  def translations_by_key_with_http_info(project_id, key_id, opts = {})
751
751
  if @api_client.config.debugging
@@ -807,7 +807,7 @@ module Phrase
807
807
  end
808
808
 
809
809
  # List translations by locale
810
- # List translations for a specific locale. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
810
+ # List translations for a specific locale. If you want to download all translations for one locale we recommend to use the `locales#download` endpoint.
811
811
  # @param project_id [String] Project ID
812
812
  # @param locale_id [String] Locale ID
813
813
  # @param [Hash] opts the optional parameters
@@ -817,7 +817,7 @@ module Phrase
817
817
  # @option opts [String] :branch specify the branch to use
818
818
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
819
819
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
820
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
820
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids - &#x60;unverified:{true|false}&#x60; for verification status - &#x60;tags:XYZ&#x60; for tags on the translation - &#x60;excluded:{true|false}&#x60; for exclusion status - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
821
821
  # @return [Array<Translation>]
822
822
  def translations_by_locale(project_id, locale_id, opts = {})
823
823
  data, _status_code, _headers = translations_by_locale_with_http_info(project_id, locale_id, opts)
@@ -825,7 +825,7 @@ module Phrase
825
825
  end
826
826
 
827
827
  # List translations by locale
828
- # List translations for a specific locale. If you want to download all translations for one locale we recommend to use the &lt;code&gt;locales#download&lt;/code&gt; endpoint.
828
+ # List translations for a specific locale. If you want to download all translations for one locale we recommend to use the &#x60;locales#download&#x60; endpoint.
829
829
  # @param project_id [String] Project ID
830
830
  # @param locale_id [String] Locale ID
831
831
  # @param [Hash] opts the optional parameters
@@ -835,7 +835,7 @@ module Phrase
835
835
  # @option opts [String] :branch specify the branch to use
836
836
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
837
837
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
838
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
838
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids - &#x60;unverified:{true|false}&#x60; for verification status - &#x60;tags:XYZ&#x60; for tags on the translation - &#x60;excluded:{true|false}&#x60; for exclusion status - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
839
839
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
840
840
  def translations_by_locale_with_http_info(project_id, locale_id, opts = {})
841
841
  if @api_client.config.debugging
@@ -1045,18 +1045,18 @@ module Phrase
1045
1045
  end
1046
1046
 
1047
1047
  # List all translations
1048
- # List translations for the given project. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
1048
+ # List translations for the given project. If you want to download all translations for one locale we recommend to use the `locales#download` endpoint.
1049
1049
  # @param project_id [String] Project ID
1050
1050
  # @param [Hash] opts the optional parameters
1051
1051
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
1052
- # @option opts [String] :if_modified_since Last modified condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
1053
- # @option opts [String] :if_none_match ETag condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
1052
+ # @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
1053
+ # @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
1054
1054
  # @option opts [Integer] :page Page number
1055
1055
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
1056
1056
  # @option opts [String] :branch specify the branch to use
1057
1057
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
1058
1058
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
1059
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;reviewed_after:2013-02-21T00:00:00Z&lt;/code&gt; for fetching translations that were reviewed after the given timestamp&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
1059
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
1060
1060
  # @return [Array<Translation>]
1061
1061
  def translations_list(project_id, opts = {})
1062
1062
  data, _status_code, _headers = translations_list_with_http_info(project_id, opts)
@@ -1064,18 +1064,18 @@ module Phrase
1064
1064
  end
1065
1065
 
1066
1066
  # List all translations
1067
- # List translations for the given project. If you want to download all translations for one locale we recommend to use the &lt;code&gt;locales#download&lt;/code&gt; endpoint.
1067
+ # List translations for the given project. If you want to download all translations for one locale we recommend to use the &#x60;locales#download&#x60; endpoint.
1068
1068
  # @param project_id [String] Project ID
1069
1069
  # @param [Hash] opts the optional parameters
1070
1070
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
1071
- # @option opts [String] :if_modified_since Last modified condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
1072
- # @option opts [String] :if_none_match ETag condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
1071
+ # @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
1072
+ # @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
1073
1073
  # @option opts [Integer] :page Page number
1074
1074
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
1075
1075
  # @option opts [String] :branch specify the branch to use
1076
1076
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
1077
1077
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
1078
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;reviewed_after:2013-02-21T00:00:00Z&lt;/code&gt; for fetching translations that were reviewed after the given timestamp&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
1078
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
1079
1079
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
1080
1080
  def translations_list_with_http_info(project_id, opts = {})
1081
1081
  if @api_client.config.debugging
@@ -1209,7 +1209,7 @@ module Phrase
1209
1209
  end
1210
1210
 
1211
1211
  # Search translations
1212
- # Search translations for the given project. Provides the same search interface as <code>translations#index</code> but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
1212
+ # Search translations for the given project. Provides the same search interface as `translations#index` but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the `locales#download` endpoint.
1213
1213
  # @param project_id [String] Project ID
1214
1214
  # @param translations_search_parameters [TranslationsSearchParameters]
1215
1215
  # @param [Hash] opts the optional parameters
@@ -1223,7 +1223,7 @@ module Phrase
1223
1223
  end
1224
1224
 
1225
1225
  # Search translations
1226
- # Search translations for the given project. Provides the same search interface as &lt;code&gt;translations#index&lt;/code&gt; but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the &lt;code&gt;locales#download&lt;/code&gt; endpoint.
1226
+ # Search translations for the given project. Provides the same search interface as &#x60;translations#index&#x60; but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the &#x60;locales#download&#x60; endpoint.
1227
1227
  # @param project_id [String] Project ID
1228
1228
  # @param translations_search_parameters [TranslationsSearchParameters]
1229
1229
  # @param [Hash] opts the optional parameters
@@ -14,7 +14,7 @@ module Phrase
14
14
  # List of locale ids that will be part of distribution releases
15
15
  attr_accessor :locale_ids
16
16
 
17
- # Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>.
17
+ # Additional formatting and render options. Only `enclose_in_cdata` is available for platform `android`.
18
18
  attr_accessor :format_options
19
19
 
20
20
  # Use fallback locale if there is no translation in the current locale.
@@ -14,7 +14,7 @@ module Phrase
14
14
  # List of locale ids that will be part of distribution releases
15
15
  attr_accessor :locale_ids
16
16
 
17
- # Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>.
17
+ # Additional formatting and render options. Only `enclose_in_cdata` is available for platform `android`.
18
18
  attr_accessor :format_options
19
19
 
20
20
  # Use fallback locale if there is no translation in the current locale.
@@ -2,7 +2,7 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class InvitationCreateParameters
5
- # The email of the invited user. The <code>email</code> can not be updated once created. Create a new invitation for each unique email.
5
+ # The email of the invited user. The `email` can not be updated once created. Create a new invitation for each unique email.
6
6
  attr_accessor :email
7
7
 
8
8
  # Invitiation role, can be any of Manager, Developer, Translator.
@@ -23,7 +23,7 @@ module Phrase
23
23
  # List of default locales for the user.
24
24
  attr_accessor :default_locale_codes
25
25
 
26
- # Additional permissions depending on invitation role. Available permissions are <code>create_upload</code> and <code>review_translations</code>
26
+ # Additional permissions depending on invitation role. Available permissions are `create_upload` and `review_translations`
27
27
  attr_accessor :permissions
28
28
 
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,6 +14,9 @@ module Phrase
14
14
  # Indicates whether key supports pluralization
15
15
  attr_accessor :plural
16
16
 
17
+ # Indicates whether key uses ordinal rules for pluralization
18
+ attr_accessor :use_ordinal_rules
19
+
17
20
  # Plural name for the key (used in some file formats, e.g. Gettext)
18
21
  attr_accessor :name_plural
19
22
 
@@ -63,6 +66,7 @@ module Phrase
63
66
  :'name' => :'name',
64
67
  :'description' => :'description',
65
68
  :'plural' => :'plural',
69
+ :'use_ordinal_rules' => :'use_ordinal_rules',
66
70
  :'name_plural' => :'name_plural',
67
71
  :'data_type' => :'data_type',
68
72
  :'tags' => :'tags',
@@ -87,6 +91,7 @@ module Phrase
87
91
  :'name' => :'String',
88
92
  :'description' => :'String',
89
93
  :'plural' => :'Boolean',
94
+ :'use_ordinal_rules' => :'Boolean',
90
95
  :'name_plural' => :'String',
91
96
  :'data_type' => :'String',
92
97
  :'tags' => :'String',
@@ -141,6 +146,10 @@ module Phrase
141
146
  self.plural = attributes[:'plural']
142
147
  end
143
148
 
149
+ if attributes.key?(:'use_ordinal_rules')
150
+ self.use_ordinal_rules = attributes[:'use_ordinal_rules']
151
+ end
152
+
144
153
  if attributes.key?(:'name_plural')
145
154
  self.name_plural = attributes[:'name_plural']
146
155
  end
@@ -225,6 +234,7 @@ module Phrase
225
234
  name == o.name &&
226
235
  description == o.description &&
227
236
  plural == o.plural &&
237
+ use_ordinal_rules == o.use_ordinal_rules &&
228
238
  name_plural == o.name_plural &&
229
239
  data_type == o.data_type &&
230
240
  tags == o.tags &&
@@ -250,7 +260,7 @@ module Phrase
250
260
  # Calculates hash code according to all attributes.
251
261
  # @return [Integer] Hash code
252
262
  def hash
253
- [branch, name, description, plural, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, default_translation_content, autotranslate, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
263
+ [branch, name, description, plural, use_ordinal_rules, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, default_translation_content, autotranslate, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
254
264
  end
255
265
 
256
266
  # Builds the object from hash
@@ -8,12 +8,15 @@ module Phrase
8
8
 
9
9
  attr_accessor :plural
10
10
 
11
+ attr_accessor :use_ordinal_rules
12
+
11
13
  # Attribute mapping from ruby-style variable name to JSON key.
12
14
  def self.attribute_map
13
15
  {
14
16
  :'id' => :'id',
15
17
  :'name' => :'name',
16
- :'plural' => :'plural'
18
+ :'plural' => :'plural',
19
+ :'use_ordinal_rules' => :'use_ordinal_rules'
17
20
  }
18
21
  end
19
22
 
@@ -22,7 +25,8 @@ module Phrase
22
25
  {
23
26
  :'id' => :'String',
24
27
  :'name' => :'String',
25
- :'plural' => :'Boolean'
28
+ :'plural' => :'Boolean',
29
+ :'use_ordinal_rules' => :'Boolean'
26
30
  }
27
31
  end
28
32
 
@@ -58,6 +62,10 @@ module Phrase
58
62
  if attributes.key?(:'plural')
59
63
  self.plural = attributes[:'plural']
60
64
  end
65
+
66
+ if attributes.key?(:'use_ordinal_rules')
67
+ self.use_ordinal_rules = attributes[:'use_ordinal_rules']
68
+ end
61
69
  end
62
70
 
63
71
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -80,7 +88,8 @@ module Phrase
80
88
  self.class == o.class &&
81
89
  id == o.id &&
82
90
  name == o.name &&
83
- plural == o.plural
91
+ plural == o.plural &&
92
+ use_ordinal_rules == o.use_ordinal_rules
84
93
  end
85
94
 
86
95
  # @see the `==` method
@@ -92,7 +101,7 @@ module Phrase
92
101
  # Calculates hash code according to all attributes.
93
102
  # @return [Integer] Hash code
94
103
  def hash
95
- [id, name, plural].hash
104
+ [id, name, plural, use_ordinal_rules].hash
96
105
  end
97
106
 
98
107
  # Builds the object from hash
@@ -14,6 +14,9 @@ module Phrase
14
14
  # Indicates whether key supports pluralization
15
15
  attr_accessor :plural
16
16
 
17
+ # Indicates whether key uses ordinal rules for pluralization
18
+ attr_accessor :use_ordinal_rules
19
+
17
20
  # Plural name for the key (used in some file formats, e.g. Gettext)
18
21
  attr_accessor :name_plural
19
22
 
@@ -57,6 +60,7 @@ module Phrase
57
60
  :'name' => :'name',
58
61
  :'description' => :'description',
59
62
  :'plural' => :'plural',
63
+ :'use_ordinal_rules' => :'use_ordinal_rules',
60
64
  :'name_plural' => :'name_plural',
61
65
  :'data_type' => :'data_type',
62
66
  :'tags' => :'tags',
@@ -79,6 +83,7 @@ module Phrase
79
83
  :'name' => :'String',
80
84
  :'description' => :'String',
81
85
  :'plural' => :'Boolean',
86
+ :'use_ordinal_rules' => :'Boolean',
82
87
  :'name_plural' => :'String',
83
88
  :'data_type' => :'String',
84
89
  :'tags' => :'String',
@@ -131,6 +136,10 @@ module Phrase
131
136
  self.plural = attributes[:'plural']
132
137
  end
133
138
 
139
+ if attributes.key?(:'use_ordinal_rules')
140
+ self.use_ordinal_rules = attributes[:'use_ordinal_rules']
141
+ end
142
+
134
143
  if attributes.key?(:'name_plural')
135
144
  self.name_plural = attributes[:'name_plural']
136
145
  end
@@ -202,6 +211,7 @@ module Phrase
202
211
  name == o.name &&
203
212
  description == o.description &&
204
213
  plural == o.plural &&
214
+ use_ordinal_rules == o.use_ordinal_rules &&
205
215
  name_plural == o.name_plural &&
206
216
  data_type == o.data_type &&
207
217
  tags == o.tags &&
@@ -225,7 +235,7 @@ module Phrase
225
235
  # Calculates hash code according to all attributes.
226
236
  # @return [Integer] Hash code
227
237
  def hash
228
- [branch, name, description, plural, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
238
+ [branch, name, description, plural, use_ordinal_rules, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
229
239
  end
230
240
 
231
241
  # Builds the object from hash
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Locale used to exlcude or include keys.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: * `ids:key_id,...` for queries on a comma-separated list of ids * `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes * `tags:tag_name` to filter for keys with certain tags * `translated:{true|false}` for translation status (also requires `locale_id` to be specified) * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Locale used to exlcude or include keys.
@@ -11,7 +11,7 @@ module Phrase
11
11
  # Order direction. Can be one of: asc, desc.
12
12
  attr_accessor :order
13
13
 
14
- # Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name,...</code> for text queries on a comma-seperated list of exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name,...</code> to filter for keys with certain comma-seperated list of tags</li> <li><code>uploads:upload_id,...</code> to filter for keys with certain comma-seperated list of uploads</li> <li><code>job:{true|false}</code> to filter for keys mentioned in an active job</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{&gt;=|&lt;=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>. Please note: If <code>tags</code> are added to filter the search, the search will be limited to a maximum of 65,536 tagged keys.
14
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: * `ids:key_id,...` for queries on a comma-separated list of ids * `name:key_name,...` for text queries on a comma-seperated list of exact key names - spaces, commas, and colons need to be escaped with double backslashes * `tags:tag_name,...` to filter for keys with certain comma-seperated list of tags * `uploads:upload_id,...` to filter for keys with certain comma-seperated list of uploads * `job:{true|false}` to filter for keys mentioned in an active job * `translated:{true|false}` for translation status (also requires `locale_id` to be specified) * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples). Please note: If `tags` are added to filter the search, the search will be limited to a maximum of 65,536 tagged keys.
15
15
  attr_accessor :q
16
16
 
17
17
  # Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: * `ids:key_id,...` for queries on a comma-separated list of ids * `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes * `tags:tag_name` to filter for keys with certain tags * `translated:{true|false}` for translation status (also requires `locale_id` to be specified) * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: * `ids:key_id,...` for queries on a comma-separated list of ids * `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes * `tags:tag_name` to filter for keys with certain tags * `translated:{true|false}` for translation status (also requires `locale_id` to be specified) * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
@@ -16,6 +16,8 @@ module Phrase
16
16
 
17
17
  attr_accessor :plural_forms
18
18
 
19
+ attr_accessor :ordinal_plural_forms
20
+
19
21
  attr_accessor :source_locale
20
22
 
21
23
  attr_accessor :fallback_locale
@@ -34,6 +36,7 @@ module Phrase
34
36
  :'main' => :'main',
35
37
  :'rtl' => :'rtl',
36
38
  :'plural_forms' => :'plural_forms',
39
+ :'ordinal_plural_forms' => :'ordinal_plural_forms',
37
40
  :'source_locale' => :'source_locale',
38
41
  :'fallback_locale' => :'fallback_locale',
39
42
  :'created_at' => :'created_at',
@@ -51,6 +54,7 @@ module Phrase
51
54
  :'main' => :'Boolean',
52
55
  :'rtl' => :'Boolean',
53
56
  :'plural_forms' => :'Array<String>',
57
+ :'ordinal_plural_forms' => :'Array<String>',
54
58
  :'source_locale' => :'LocalePreview',
55
59
  :'fallback_locale' => :'LocalePreview',
56
60
  :'created_at' => :'DateTime',
@@ -109,6 +113,12 @@ module Phrase
109
113
  end
110
114
  end
111
115
 
116
+ if attributes.key?(:'ordinal_plural_forms')
117
+ if (value = attributes[:'ordinal_plural_forms']).is_a?(Array)
118
+ self.ordinal_plural_forms = value
119
+ end
120
+ end
121
+
112
122
  if attributes.key?(:'source_locale')
113
123
  self.source_locale = attributes[:'source_locale']
114
124
  end
@@ -151,6 +161,7 @@ module Phrase
151
161
  main == o.main &&
152
162
  rtl == o.rtl &&
153
163
  plural_forms == o.plural_forms &&
164
+ ordinal_plural_forms == o.ordinal_plural_forms &&
154
165
  source_locale == o.source_locale &&
155
166
  fallback_locale == o.fallback_locale &&
156
167
  created_at == o.created_at &&
@@ -166,7 +177,7 @@ module Phrase
166
177
  # Calculates hash code according to all attributes.
167
178
  # @return [Integer] Hash code
168
179
  def hash
169
- [id, name, code, default, main, rtl, plural_forms, source_locale, fallback_locale, created_at, updated_at].hash
180
+ [id, name, code, default, main, rtl, plural_forms, ordinal_plural_forms, source_locale, fallback_locale, created_at, updated_at].hash
170
181
  end
171
182
 
172
183
  # Builds the object from hash
@@ -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://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Verification System</a> feature.
17
+ # Indicates whether locale is a main locale. Main locales are part of the [Verification System](https://support.phrase.com/hc/en-us/articles/5784094755484) 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://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature.
29
+ # Indicates that new translations for this locale should be marked as unverified. Part of the [Advanced Workflows](https://support.phrase.com/hc/en-us/articles/5784094755484) 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://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature.
32
+ # Indicates that updated translations for this locale should be marked as unverified. Part of the [Advanced Workflows](https://support.phrase.com/hc/en-us/articles/5784094755484) 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.
@@ -16,6 +16,8 @@ module Phrase
16
16
 
17
17
  attr_accessor :plural_forms
18
18
 
19
+ attr_accessor :ordinal_plural_forms
20
+
19
21
  attr_accessor :source_locale
20
22
 
21
23
  attr_accessor :fallback_locale
@@ -36,6 +38,7 @@ module Phrase
36
38
  :'main' => :'main',
37
39
  :'rtl' => :'rtl',
38
40
  :'plural_forms' => :'plural_forms',
41
+ :'ordinal_plural_forms' => :'ordinal_plural_forms',
39
42
  :'source_locale' => :'source_locale',
40
43
  :'fallback_locale' => :'fallback_locale',
41
44
  :'created_at' => :'created_at',
@@ -54,6 +57,7 @@ module Phrase
54
57
  :'main' => :'Boolean',
55
58
  :'rtl' => :'Boolean',
56
59
  :'plural_forms' => :'Array<String>',
60
+ :'ordinal_plural_forms' => :'Array<String>',
57
61
  :'source_locale' => :'LocalePreview',
58
62
  :'fallback_locale' => :'LocalePreview',
59
63
  :'created_at' => :'DateTime',
@@ -120,6 +124,12 @@ module Phrase
120
124
  end
121
125
  end
122
126
 
127
+ if attributes.key?(:'ordinal_plural_forms')
128
+ if (value = attributes[:'ordinal_plural_forms']).is_a?(Array)
129
+ self.ordinal_plural_forms = value
130
+ end
131
+ end
132
+
123
133
  if attributes.key?(:'source_locale')
124
134
  self.source_locale = attributes[:'source_locale']
125
135
  end
@@ -166,6 +176,7 @@ module Phrase
166
176
  main == o.main &&
167
177
  rtl == o.rtl &&
168
178
  plural_forms == o.plural_forms &&
179
+ ordinal_plural_forms == o.ordinal_plural_forms &&
169
180
  source_locale == o.source_locale &&
170
181
  fallback_locale == o.fallback_locale &&
171
182
  created_at == o.created_at &&
@@ -182,7 +193,7 @@ module Phrase
182
193
  # Calculates hash code according to all attributes.
183
194
  # @return [Integer] Hash code
184
195
  def hash
185
- [id, name, code, default, main, rtl, plural_forms, source_locale, fallback_locale, created_at, updated_at, statistics].hash
196
+ [id, name, code, default, main, rtl, plural_forms, ordinal_plural_forms, source_locale, fallback_locale, created_at, updated_at, statistics].hash
186
197
  end
187
198
 
188
199
  # Builds the object from hash