View as Markdown

API reference: @salmonui/chat/inline-assist

InlineAssistLocaleTextinterface

import type { InlineAssistLocaleText } from '@salmonui/chat/inline-assist';
interface InlineAssistLocaleText {
    readonly label?: string;
    readonly prompt?: string;
    readonly placeholder?: string;
    readonly send?: string;
    readonly stop?: string;
    readonly accept?: string;
    readonly discard?: string;
    readonly retry?: string;
    readonly commands?: string;
    readonly responseActions?: string;
    readonly pending?: string;
    readonly error?: string;
    readonly dictation?: string;
}

User-visible strings.

InlineAssistLocaleText members (13)
NameSignatureDescription
labeloptionalreadonly label?: string;

Accessible name of the dialog. Default "AI assistant".

promptoptionalreadonly prompt?: string;

Accessible name of the prompt. Default "Prompt".

placeholderoptionalreadonly placeholder?: string;

Default "Ask AI, or type / for commands".

sendoptionalreadonly send?: string;
stopoptionalreadonly stop?: string;
acceptoptionalreadonly accept?: string;
discardoptionalreadonly discard?: string;
retryoptionalreadonly retry?: string;
commandsoptionalreadonly commands?: string;

Accessible name of the command menu. Default "Commands".

responseActionsoptionalreadonly responseActions?: string;

Accessible name of the response actions. Default "Response actions".

pendingoptionalreadonly pending?: string;

Shown while the response is pending. Default "Thinking…".

erroroptionalreadonly error?: string;

Shown when the adapter failed.

dictationoptionalreadonly dictation?: string;

Accessible name of the dictation button. Default "Dictate".