Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Function getLanguageInfoFromFlag

  • Get the language info from a language flag (e.g. "name:en"). This is also handy to check is a given language flag is a supported language. By default, the language dictionary to look into is the one defined in this library, but another one could be provided Returns null if not found.

    Parameters

    • languageFlag: string
    • OptionallanguageDictionary: { [k: string]: LanguageInfo }

    Returns LanguageInfo | null

Was this helpful?