# Class Translation OptimaJet.Workflow.Core.Model.Translation Represents a translation entry that maps a scheme object's internal name and [LocalizeType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/LocalizeType/) to culture-specific text. Namespace: [OptimaJet.Workflow.Core.Model](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/) ```csharp public sealed class Translation ``` ## Constructors `public Translation()` Initializes a new translation entry with default property values. `public Translation(string name, string value, LocalizeType type, string culture, bool isDefault = false)` Initializes a translation entry for a scheme object. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | The internal name to assign to [Translation.ObjectName](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `value` | `String` | The culture-specific text to assign to [Translation.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `type` | `LocalizeType` | The [LocalizeType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/LocalizeType/) to assign to [Translation.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `culture` | `String` | The culture name to assign to [Translation.Culture](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `isDefault` | `Boolean` | The value to assign to [Translation.IsDefault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). Use [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) to make the entry a fallback when no culture-specific entry matches. | ## Properties `public string ObjectName { get; set; }` Gets or sets the internal name of the scheme object being translated. `public string Value { get; set; }` Gets or sets the culture-specific text for the scheme object. `[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(SystemStringEnumConverter))] public LocalizeType Type { get; set; }` Gets or sets the [LocalizeType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/LocalizeType/) that identifies the kind of scheme object. `public string Culture { get; set; }` Gets or sets the culture name used for this translation entry. `public bool IsDefault { get; set; }` Gets or sets a value indicating whether this entry is the fallback when no entry matches the requested culture. ## Methods `public static Translation Create(string name, string type, string culture, string value, string isDefault)` Creates a [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) by parsing `type` and `isDefault`. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | The internal name to assign to [Translation.ObjectName](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `type` | `String` | The case-insensitive name of the [LocalizeType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/LocalizeType/) value to assign to [Translation.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `culture` | `String` | The culture name to assign to [Translation.Culture](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `value` | `String` | The culture-specific text to assign to [Translation.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `isDefault` | `String` | A string indicating whether [Translation.IsDefault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) should be [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). | ### Returns | Type | Description | | --- | --- | | `Translation` | A [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) initialized from the supplied values. | ### Remarks If `type` cannot be parsed, [LocalizeType.Command](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/LocalizeType/) is used. If `isDefault` cannot be parsed, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) is used. `public static Translation Create(string name, LocalizeType type, string culture, string value, bool isDefault = false)` Creates a [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) for the culture named by `culture`. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | The internal name to assign to [Translation.ObjectName](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `type` | `LocalizeType` | The [LocalizeType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/LocalizeType/) to assign to [Translation.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `culture` | `String` | The culture name to assign to [Translation.Culture](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `value` | `String` | The culture-specific text to assign to [Translation.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `isDefault` | `Boolean` | The value to assign to [Translation.IsDefault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). Use [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) to make the entry a fallback when no culture-specific entry matches. | ### Returns | Type | Description | | --- | --- | | `Translation` | A [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) initialized from the supplied values. | `public static Translation Create(string name, LocalizeType type, CultureInfo culture, string value, bool isDefault = false)` Creates a [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) for `culture`. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | The internal name to assign to [Translation.ObjectName](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `type` | `LocalizeType` | The [LocalizeType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/LocalizeType/) to assign to [Translation.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `culture` | `CultureInfo` | The culture whose [CultureInfo.Name](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.name) is assigned to [Translation.Culture](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `value` | `String` | The culture-specific text to assign to [Translation.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | | `isDefault` | `Boolean` | The value to assign to [Translation.IsDefault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). Use [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) to make the entry a fallback when no culture-specific entry matches. | ### Returns | Type | Description | | --- | --- | | `Translation` | A [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) initialized from the supplied values. | `public Translation Clone()` Creates a shallow copy of this translation entry. ### Returns | Type | Description | | --- | --- | | `Translation` | A shallow copy of this [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/). | [Previous TransitionForkType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TransitionForkType/) [Next TriggerDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TriggerDefinition/)