Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 2.12 KB

File metadata and controls

35 lines (28 loc) · 2.12 KB

Phrase::TranslationCreateParameters

Properties

Name Type Description Notes
branch String specify the branch to use [optional]
locale_id String Locale. Can be the name or id of the locale. Preferred is id [optional]
key_id String Key [optional]
content String Translation content [optional]
plural_suffix String Plural suffix. Can be one of: zero, one, two, few, many, other. Must be specified if the key associated to the translation is pluralized. [optional]
unverified Boolean Indicates whether translation is unverified. Part of the Advanced Workflows feature. [optional]
excluded Boolean Indicates whether translation is excluded. [optional]
autotranslate Boolean Indicates whether the translation should be auto-translated. Responses with status 422 if provided for translation within a non-default locale or the project does not have the Autopilot feature enabled. [optional]
minor_change Boolean When `true`, the translation is marked as a minor edit and does not trigger downstream re-verification on the linked locales' translations. [optional]
reviewed Boolean When `true` and the project's review workflow is enabled, the translation is created in the `reviewed` state. [optional]

Code Sample

require 'Phrase'

instance = Phrase::TranslationCreateParameters.new(branch: my-feature-branch,
                                 locale_id: abcd1234cdef1234abcd1234cdef1234,
                                 key_id: abcd1234cdef1234abcd1234cdef1234,
                                 content: My translation,
                                 plural_suffix: null,
                                 unverified: null,
                                 excluded: null,
                                 autotranslate: null,
                                 minor_change: false,
                                 reviewed: false)