Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 2.53 KB

LocaleUpdateParameters.md

File metadata and controls

37 lines (30 loc) · 2.53 KB

Phrase::LocaleUpdateParameters

Properties

Name Type Description Notes
branch String specify the branch to use [optional]
name String Locale name [optional]
code String Locale ISO code [optional]
default Boolean Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale. [optional]
main Boolean Indicates whether locale is a main locale. Main locales are part of the <a href=&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\" target=&quot;_blank&quot;>Verification System</a> feature. [optional]
rtl Boolean Indicates whether locale is a RTL (Right-to-Left) locale. [optional]
source_locale_id String Source locale. Can be the name or id of the locale. Preferred is id. [optional]
fallback_locale_id String Fallback locale for empty translations. Can be a locale name or id. [optional]
unverify_new_translations Boolean Indicates that new translations for this locale should be marked as unverified. Part of the <a href=&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\" target=&quot;_blank&quot;>Advanced Workflows</a> feature. [optional]
unverify_updated_translations Boolean Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\" target=&quot;_blank&quot;>Advanced Workflows</a> feature. [optional]
autotranslate Boolean If set, translations for this locale will be fetched automatically, right after creation. [optional]

Code Sample

require 'Phrase'

instance = Phrase::LocaleUpdateParameters.new(branch: my-feature-branch,
                                 name: de,
                                 code: de-DE,
                                 default: null,
                                 main: null,
                                 rtl: null,
                                 source_locale_id: abcd1234abcd1234abcd1234abcd1234,
                                 fallback_locale_id: abcd1234abcd1234abcd1234abcd1234,
                                 unverify_new_translations: null,
                                 unverify_updated_translations: null,
                                 autotranslate: null)