Show / Hide Table of Contents

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").

Inheritance
object
Languages
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Zaya.Primitives
Assembly: Zaya.Primitives.dll
Syntax
public static class Languages

Properties

| Edit this page View Source

All

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 Source

Find(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 null if not found.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX