class PhraseApp::RequestParams::LocaleParams
Parameters:¶ ↑
- autotranslate
-
If set, translations for this locale will be fetched automatically, right after creation.
- branch
-
specify the branch to use
- code
-
Locale ISO code
- default
-
Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale.
- main
-
Indicates whether locale is a main locale. Main locales are part of the <a href=“help.phraseapp.com/translate-website-and-app-content/verify-and-proofread-translations/verification-and-proofreading” target=“_blank”>Verification System</a> feature.
- name
-
Locale name
- rtl
-
Indicates whether locale is a RTL (Right-to-Left) locale.
- source_locale_id
-
Source locale. Can be the name or public id of the locale. Preferred is the public id.
- unverify_new_translations
-
Indicates that new translations for this locale should be marked as unverified. Part of the <a href=“help.phraseapp.com/translate-website-and-app-content/verify-and-proofread-translations/verification-and-proofreading” target=“_blank”>Advanced Workflows</a> feature.
- unverify_updated_translations
-
Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=“help.phraseapp.com/translate-website-and-app-content/verify-and-proofread-translations/verification-and-proofreading” target=“_blank”>Advanced Workflows</a> feature.
Public Instance Methods
# File lib/phraseapp-ruby.rb, line 1020 def autotranslate=(val) if val.is_a?(TrueClass) super(true) elsif val.is_a?(FalseClass) return else PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}") end end
# File lib/phraseapp-ruby.rb, line 1030 def branch=(val) super(val) end
# File lib/phraseapp-ruby.rb, line 1034 def code=(val) super(val) end
# File lib/phraseapp-ruby.rb, line 1038 def default=(val) if val.is_a?(TrueClass) super(true) elsif val.is_a?(FalseClass) return else PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}") end end
# File lib/phraseapp-ruby.rb, line 1048 def main=(val) if val.is_a?(TrueClass) super(true) elsif val.is_a?(FalseClass) return else PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}") end end
# File lib/phraseapp-ruby.rb, line 1058 def name=(val) super(val) end
# File lib/phraseapp-ruby.rb, line 1062 def rtl=(val) if val.is_a?(TrueClass) super(true) elsif val.is_a?(FalseClass) return else PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}") end end
# File lib/phraseapp-ruby.rb, line 1072 def source_locale_id=(val) super(val) end
# File lib/phraseapp-ruby.rb, line 1076 def unverify_new_translations=(val) if val.is_a?(TrueClass) super(true) elsif val.is_a?(FalseClass) return else PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}") end end
# File lib/phraseapp-ruby.rb, line 1086 def unverify_updated_translations=(val) if val.is_a?(TrueClass) super(true) elsif val.is_a?(FalseClass) return else PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}") end end
# File lib/phraseapp-ruby.rb, line 1096 def validate if code == nil || code == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"code\" of \"LocaleParams\" not set") end if name == nil || name == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"name\" of \"LocaleParams\" not set") end end