# Class: Language

Represents a set of utility methods for working with languages.

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new Language()

# Methods

# parseLang

Static parseLang(lang?): LanguageEnum

Parses a language string into its corresponding LanguageEnum value.

# Parameters

Name Type Description
lang? 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.

# Defined in

src/language/language.ts:17 (opens new window)