Class Languages
Provides a static list of common languages as EnumOption values. OCR, translation, and other engines reference All in their Options to present a language dropdown in the host UI. Each option's Value is a BCP-47 tag (e.g. "ru", "zh-Hans").
Inherited Members
Namespace: Zaya.Primitives
Assembly: Zaya.Primitives.dll
Syntax
public static class Languages
Properties
| Edit this page View SourceAll
Gets the list of 15 common languages as EnumOption values with BCP-47 codes and localized display names.
Declaration
public static IReadOnlyList<EnumOption> All { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<EnumOption> |
Methods
| Edit this page View SourceFind(string)
Finds a language by its BCP-47 code (case-insensitive).
Declaration
public static EnumOption? Find(string bcp47)
Parameters
| Type | Name | Description |
|---|---|---|
| string | bcp47 | The BCP-47 tag, e.g. "ru" or "zh-Hans". |
Returns
| Type | Description |
|---|---|
| EnumOption | The matching EnumOption, or |