Class: Language
Represents a set of utility methods for working with languages.
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
The LanguageEnum value corresponding to the provided string, or English if the string is invalid or undefined.