lib/phrase/models/locale_update_parameters.rb in phrase-2.7.1 vs lib/phrase/models/locale_update_parameters.rb in phrase-2.7.2
- old
+ new
@@ -21,10 +21,13 @@
attr_accessor :rtl
# Source locale. Can be the name or public id of the locale. Preferred is the public id.
attr_accessor :source_locale_id
+ # Fallback locale for empty translations. Can be a locale name or id.
+ attr_accessor :fallback_locale_id
+
# Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Advanced Workflows</a> feature.
attr_accessor :unverify_new_translations
# Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Advanced Workflows</a> feature.
attr_accessor :unverify_updated_translations
@@ -40,10 +43,11 @@
:'code' => :'code',
:'default' => :'default',
:'main' => :'main',
:'rtl' => :'rtl',
:'source_locale_id' => :'source_locale_id',
+ :'fallback_locale_id' => :'fallback_locale_id',
:'unverify_new_translations' => :'unverify_new_translations',
:'unverify_updated_translations' => :'unverify_updated_translations',
:'autotranslate' => :'autotranslate'
}
end
@@ -56,10 +60,11 @@
:'code' => :'String',
:'default' => :'Boolean',
:'main' => :'Boolean',
:'rtl' => :'Boolean',
:'source_locale_id' => :'String',
+ :'fallback_locale_id' => :'String',
:'unverify_new_translations' => :'Boolean',
:'unverify_updated_translations' => :'Boolean',
:'autotranslate' => :'Boolean'
}
end
@@ -111,10 +116,14 @@
if attributes.key?(:'source_locale_id')
self.source_locale_id = attributes[:'source_locale_id']
end
+ if attributes.key?(:'fallback_locale_id')
+ self.fallback_locale_id = attributes[:'fallback_locale_id']
+ end
+
if attributes.key?(:'unverify_new_translations')
self.unverify_new_translations = attributes[:'unverify_new_translations']
end
if attributes.key?(:'unverify_updated_translations')
@@ -149,10 +158,11 @@
code == o.code &&
default == o.default &&
main == o.main &&
rtl == o.rtl &&
source_locale_id == o.source_locale_id &&
+ fallback_locale_id == o.fallback_locale_id &&
unverify_new_translations == o.unverify_new_translations &&
unverify_updated_translations == o.unverify_updated_translations &&
autotranslate == o.autotranslate
end
@@ -163,10 +173,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [branch, name, code, default, main, rtl, source_locale_id, unverify_new_translations, unverify_updated_translations, autotranslate].hash
+ [branch, name, code, default, main, rtl, source_locale_id, fallback_locale_id, unverify_new_translations, unverify_updated_translations, autotranslate].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself