# Class Localization OptimaJet.Workflow.Core.Model.Localization Represents a collection of [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) entries that can be stored in [ProcessDefinition.Localization](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessDefinition/) or used as an [ILocalizationProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/ILocalizationProvider/). Namespace: [OptimaJet.Workflow.Core.Model](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/) ```csharp public class Localization : List, IList, ICollection, IReadOnlyList, IReadOnlyCollection, IEnumerable, IList, ICollection, IEnumerable, ILocalizationProvider ``` ## Type Hierarchy - [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1) - Localization Current type - Implemented interfaces - [ICollection](https://learn.microsoft.com/dotnet/api/system.collections.icollection) - [ICollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1) - [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable) - [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) - [IList](https://learn.microsoft.com/dotnet/api/system.collections.ilist) - [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) - [ILocalizationProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/ILocalizationProvider/) - [IReadOnlyCollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1) - [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1) ## Constructors `public Localization()` Initializes an empty collection of [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) entries. `public Localization(IEnumerable collection)` Initializes a collection that contains the specified [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) entries. ### Parameters | Name | Type | Description | | --- | --- | --- | | `collection` | `IEnumerable` | The [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) entries to copy into the collection. | ## Methods `public List GetAll(string schemeCode = "")` Returns the [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) entries exposed as predefined translations in the Workflow Designer. ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemeCode` | `String` | The scheme code. This collection is not scoped by scheme code, so the value is ignored. | ### Returns | Type | Description | | --- | --- | | `List` | The current [Localization](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Localization/) instance containing every [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) entry. | `public Translation? Get(string name, LocalizeType type, CultureInfo culture)` Gets a [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) for the specified [Translation.ObjectName](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) and [Translation.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/), preferring an entry whose [Translation.Culture](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) matches [CultureInfo.Name](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.name) over the first entry whose [Translation.IsDefault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) is [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | The internal object name to match case-sensitively against [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 match against [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 matched against [Translation.Culture](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) without regard to case. | ### Returns | Type | Description | | --- | --- | | `Translation` | The first matching [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) whose [Translation.Culture](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) matches [CultureInfo.Name](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.name); otherwise, the first matching [Translation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) whose [Translation.IsDefault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/Translation/) is [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool); otherwise, [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null). | [Previous IOrdinaryActivity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/IOrdinaryActivity/) [Next LocalizeType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/LocalizeType/)