Class LanguageInternal

Represents a set of utility methods for working with languages.

Constructors

Methods

Constructors

Methods

  • Parses a language string into its corresponding LanguageEnum value.

    Parameters

    • Optionallang: null | string

      The language string to parse, or null/undefined to default to English.

    Returns LanguageEnum

    The LanguageEnum value corresponding to the provided string, or English if the string is invalid or undefined.