interface Request {
    dal?: DalContext;
    isAPI?: boolean;
    language?: LocaleCodeWithUndetermined;
    locale: string;
    localeChange?: {
        new: LocaleCodeWithUndetermined;
        old: LocaleCodeWithUndetermined;
    };
    permissions?: Record<string, boolean>;
    csrfToken(): string;
    flash(key: string, value?: string | string[]): string[];
    flashError(error: unknown): void;
    flashHas(key: string): boolean;
}

Hierarchy

  • i18nAPI
    • Request

Properties

isAPI?: boolean
language?: LocaleCodeWithUndetermined
locale: string
localeChange?: {
    new: LocaleCodeWithUndetermined;
    old: LocaleCodeWithUndetermined;
}
permissions?: Record<string, boolean>

Methods

  • Parameters

    • key: string
    • Optionalvalue: string | string[]

    Returns string[]