/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 */
export const LangEnum = {
    Af: "af",
    Ar: "ar",
    ArDz: "ar-dz",
    Ast: "ast",
    Az: "az",
    Be: "be",
    Bg: "bg",
    Bn: "bn",
    Br: "br",
    Bs: "bs",
    Ca: "ca",
    Ckb: "ckb",
    Cs: "cs",
    Cy: "cy",
    Da: "da",
    De: "de",
    Dsb: "dsb",
    El: "el",
    En: "en",
    EnAu: "en-au",
    EnGb: "en-gb",
    Eo: "eo",
    Es: "es",
    EsAr: "es-ar",
    EsCo: "es-co",
    EsMx: "es-mx",
    EsNi: "es-ni",
    EsVe: "es-ve",
    Et: "et",
    Eu: "eu",
    Fa: "fa",
    Fi: "fi",
    Fr: "fr",
    Fy: "fy",
    Ga: "ga",
    Gd: "gd",
    Gl: "gl",
    He: "he",
    Hi: "hi",
    Hr: "hr",
    Hsb: "hsb",
    Hu: "hu",
    Hy: "hy",
    Ia: "ia",
    Id: "id",
    Ig: "ig",
    Io: "io",
    Is: "is",
    It: "it",
    Ja: "ja",
    Ka: "ka",
    Kab: "kab",
    Kk: "kk",
    Km: "km",
    Kn: "kn",
    Ko: "ko",
    Ky: "ky",
    Lb: "lb",
    Lt: "lt",
    Lv: "lv",
    Mk: "mk",
    Ml: "ml",
    Mn: "mn",
    Mr: "mr",
    Ms: "ms",
    My: "my",
    Nb: "nb",
    Ne: "ne",
    Nl: "nl",
    Nn: "nn",
    Os: "os",
    Pa: "pa",
    Pl: "pl",
    Pt: "pt",
    PtBr: "pt-br",
    Ro: "ro",
    Ru: "ru",
    Sk: "sk",
    Sl: "sl",
    Sq: "sq",
    Sr: "sr",
    SrLatn: "sr-latn",
    Sv: "sv",
    Sw: "sw",
    Ta: "ta",
    Te: "te",
    Tg: "tg",
    Th: "th",
    Tk: "tk",
    Tr: "tr",
    Tt: "tt",
    Udm: "udm",
    Ug: "ug",
    Uk: "uk",
    Ur: "ur",
    Uz: "uz",
    Vi: "vi",
    ZhHans: "zh-hans",
    ZhHant: "zh-hant",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type LangEnum = (typeof LangEnum)[keyof typeof LangEnum];

export function instanceOfLangEnum(value: any): boolean {
    for (const key in LangEnum) {
        if (Object.prototype.hasOwnProperty.call(LangEnum, key)) {
            if (LangEnum[key as keyof typeof LangEnum] === value) {
                return true;
            }
        }
    }
    return false;
}

export function LangEnumFromJSON(json: any): LangEnum {
    return LangEnumFromJSONTyped(json, false);
}

export function LangEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LangEnum {
    return json as LangEnum;
}

export function LangEnumToJSON(value?: LangEnum | null): any {
    return value as any;
}

export function LangEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): LangEnum {
    return value as LangEnum;
}
